@oscar6echo/sample-umd-package

1.0.3 • Public • Published

Bootstrap

# init
yarn init

# to setup vscode env
yarn add -D \
    @babel/cli \
    @babel/core \
    @babel/node \
    @babel/preset-env \
    @babel/runtime \
    @babel/loader \
    eslint \
    eslint-config-airbnb-base \
    eslint-config-prettier \
    eslint-plugin-import \
    eslint-plugin-prettier \
    prettier

# to build package
yarn add -D \
    webpack \
    webpack-cli \
    webpack-merge

yarn build-prd
yarn build-dev

# to publish
npm login
npm publish --access public

# to unpulish
# only in 24h after publish
# cannot overwrite same name/version later
npm unpublish @oscar6echo/sample-umd-package -f

Test

Node

yarn test-node

Browser

yarn test-browser
# visit localhost:5000/test/
# open console

Readme

Keywords

none

Package Sidebar

Install

npm i @oscar6echo/sample-umd-package

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

19.8 kB

Total Files

12

Last publish

Collaborators

  • oscar6echo