Skip to content

Commit

Permalink
New build with script task to allow travis successfully build app
Browse files Browse the repository at this point in the history
  • Loading branch information
Enngage committed Jan 9, 2018
1 parent d227fcb commit edbe3d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ deliveryClient.items()
- Use `npm test` to run all tests.
- Use `npm run dev-test` to run developer tests created in `dev-test` folder. Use this for your testing purposes.
- Use `npm run build` to generate definitions & dist from the contents of `lib` folder.
- Use `build-with-scripts` to build library and run prebuild scripts. This is here because travis CI cannot update files which prebuild scripts do.
- Use `npm run coveralls` to push coverage data directly to [https://coveralls.io](https://coveralls.io). Can be executed only after running`npm test`.
- Use `npm run prepublish-test` to run all tests required before publishing new version without actually increasing version.
- Use `prebuild-scripts` to run pre-build scripts
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@
"test": "karma start karma.conf.js",
"dev-test": "karma start karma-dev.conf.js",
"travis-test": "karma start karma-travis.conf.js",
"build": "npm run prebuild-scripts && gulp build",
"build": "gulp build",
"build-with-scripts": "npm run prebuild-scripts && gulp build",
"coveralls": "cat ./coverage/lcov/lcov.info | node ./node_modules/coveralls/bin/coveralls.js",
"prepublish-test": "gulp build && npm run coveralls && npm run travis-test && node test/test-completed",
"prepublish-test": "npm run build-with-scripts && npm run coveralls && npm run travis-test && node test/test-completed",
"publish-patch": "npm run prepublish-test && npm version patch && npm publish",
"publish-minor": "npm run prepublish-test && npm version minor && npm publish",
"publish-major": "npm run prepublish-test && npm version major && npm publish",
Expand Down

0 comments on commit edbe3d2

Please sign in to comment.