Use this to start other web projects. It gives you a good base to start from including
- has an .editorconfig to enforce typographic style like tabs instead of spaces and no trailing whitespace
- uses eslint to enforce javascript coding conventions such as no
var
s perfer arrow functions, etc - compiles es6 using babel and webpack (includes sourcemaps)
- compiles pug -> html or strings (.tpl)
- compiles sass -> css adding browser specific prefixes where necessary
First create a new repository on github
git clone [email protected]:c-dante/browser-base.git newrepos
cd newrepos
git remote rename origin upstream
git remote add origin [email protected]:[my-github-name]/newrepos
git push -u origin master
Update the package.json name and repository. Update the readme. Your good to go!
npm install
npm test // run tests
npm run linter // lint and auto fix formatting errors
npm run server // run webpack-dev-server with hot module reloading
open localhost:8080