node >= 12.0.0
/npm >= 6.9.0
git clone --depth 1 [email protected]:dmellstrom/angularjs-gulp-starter
cd angularjs-gulp-starter/
npm install
npm start
The default gulp task will serve the application to localhost:8888
, watch source files for changes, and livereload any recompiled assets.
npm test
Karma will launch configured web browsers (Chrome by default), watch the source, and re-run Jasmine specs on any change.
The end-to-end testing setup uses Protractor, which relies on Selenium, and thus requires JDK to be installed. As another one-time prerequisite, install the latest WebDriver.
npm run update-webdriver
With the default serve task running in the background, start Protractor to execute the test scenarios from the e2e
directory against the served application.
npm run e2e
It's also possible to run e2e tests against a distribution build. See 'Previewing the Build' below.
npm run build
The build
script triggers minification and versioning of the JavaScript and CSS, outputting the results to the dist
directory along with all other necessary assets.
The resulting build may be deployed as any routed AngularJS application -- by copying the contents of dist/
to a serveable directory with index.html
configured as the fallback.
npm run preview
The preview
script serves the distribution build to localhost:8888
so it may be examined before deployment.