@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
Browser
yarn test-browser
# visit localhost:5000/test/
# open console
Package Sidebar
Install
npm i @oscar6echo/sample-umd-package
Weekly Downloads