Skip to content
Permalink
Browse files

Use npm script to call gulp

  • Loading branch information...
Vincent Prouillet
Vincent Prouillet committed Mar 13, 2015
1 parent 49a339c commit ef30315f43580e8b3c1ba85d4536c7fe0d69365d
Showing with 7 additions and 3 deletions.
  1. +1 −0 .gitignore
  2. +3 −3 .travis.yml
  3. +3 −0 package.json
@@ -9,3 +9,4 @@ vendor/
*.iml
.idea/

npm-debug.log
@@ -6,11 +6,11 @@ before_install:
- sh -e /etc/init.d/xvfb start
- sleep 3 # give xvfb some time to start
install:
- npm install -g bower gulp
- npm install -g bower
- npm install
- bower install
- gulp webdriver_update
- gulp build
- npm run gulp webdriver_update
- npm run gulp build
- cd build && python -m SimpleHTTPServer 8001 > /dev/null 2>&1 &
script:
- ./node_modules/karma/bin/karma start --single-run && ./node_modules/protractor/bin/protractor
@@ -3,6 +3,9 @@
"name": "ng-boilerplate",
"version": "1.1.0",
"homepage": "http://vincent.is",
"scripts": {
"gulp": "./node_modules/gulp/bin/gulp.js"

This comment has been minimized.

@joezimjs

joezimjs Oct 9, 2015

You can just type "gulp" instead of "./node_modules/gulp/bin/gulp.js" because npm scripts will automatically look in "./node_modules/.bin" first and because gulp has a bin entry in their package.json, it will throw it's bin file into "./node_modules/.bin" when it is installed locally.

http://www.joezimjs.com/javascript/no-more-global-npm-packages/

This comment has been minimized.

@Keats

Keats Oct 12, 2015

Owner

Yeah I'm using it in my current repos, never got around to updating this one as I don't use angular anymore

Thanks though!

This comment has been minimized.

@joezimjs

joezimjs Oct 13, 2015

Sure thing. Have a good one.

},
"devDependencies": {
"browser-sync": "^2.2.3",
"chai": "^2.1.1",

0 comments on commit ef30315

Please sign in to comment.
You can’t perform that action at this time.