parser-combinator
Version:
Parser combinators
49 lines (34 loc) • 1.32 kB
Markdown
This document is for contributors who want to publish. You must have
correct ssh key
`npm run dist` will create the distributed file. This file
is referred in package.json :
"main": "dist/parser-combinator.min.js",
### Make a pre-release to test stuff
then level-up the version number in package.json
"version": "0.4.0-prerelease",
then publish
npm publish --tag beta
Check then with integration-npm
cd integration-npm
# change the dependencie in package.json
npm install
# it must load the new published parsec
node integrate.js
# >>> should write 'true'
# and: === Post publish Integration SUCCESS ! :) ===
If fail :
# go back to main parsec project
cd ..
npm unpublish --force # oups !
# change what is wrong
# change version to 0.4.0-prerelease2
npm publish
# test again integration
If work :
# careful, especially for major release
# YOU CANNOT UNPUBLISH easily !!!!
npm unpublish --force # it would remove a beta, no big deal
# go back to main parsec project
cd ..
# change version to to 0.4.0
npm publish