#Frontend Skeleton
Skeleton app for building frontend apps.
Incudes karma, browserify, watchify, lessify and gulp.
npm run setup
will install gulp and install all dependencies.
npm start
spins up a dummy page loaded with dist.js
.
Navigate to the build
directory and run gulp
to run karma tests and build.
Output file, dist.js
, will be under the dist
directory.
-
gulp
: runs tests and builds -
gulp build
: builds -
gulp server
: starts a test server that loads up a dummy page, which loads the built scriptdist.js
(underdist
dir) -
gulp test
: runs tests -
gulp test -w
: runs tests and watches for any changes to re-run tests (no rebuild) -
gulp watch
: spins up a test server, builds and watches for any changes; if changes, runs tests, rebuilds and reloads webpage. this is whatnpm start
runs