This is an example of using projecter as a base for new javascript projects to save time.
Includes npm scripts/dependencies, config files, and a basic example app.
Meant to be a starting point - just remove/change as needed.
npm startwebpack hotloading dev servernpm run karmalinting using standard then karma hotloading test runnernpm testused by travis for integration testingnpm run buildwebpack minifies and bundles project into static filesnpm run deploystatic files deployed using surge
- webpack webpack.config.js using hjs-webpack for easy configuration
- standard options in package.json
- karma karma.conf.js
- travis .travis.yml
- Accounts are required for travis (free for open source) and surge (free).
- Get surge token with
./node_modules/.bin/surge tokenin terminal - Log into travis and add your project repo
- Add
SURGE_LOGINandSURGE_TOKENenvironment variables to project settings
This project is mostly based on hjs-webpack by @HenrikJoreteg who has a course building a native web app from scratch using ampersand and react that I found incredibly helpful.
MIT. Copyright (c) Steve Mathews.