🚨 This repository is deprecated 🚨
It basically still works but there are a lot of new frontend tools and even newer versions regarding the build steps (e.g. gulp
).
Lightweight starter kit for frontend/website projects.
- Lightweight / no boilerplate code
- SASS/SCSS support
- Minified / concatenated Javascript and CSS
- Linted Javascript with ESLint
- Basic editorconfig and JavascriptCodeStyle config
- Bower support (see gulp tasks)
- Up to date dev-dependencies thanks to @greenkeeperio
- Synchronised browser testing by BrowserSync
git clone https://github.com/themihel/frontend-starter-kit.git
cd frontend-starter-kit
npm install
Just run gulp serve
and start coding 🎉
Your browser will automatically reload on each saved action!
gulp styles
: Compile/concat sass files (minify for dist)gulp scripts
: Concat js files ((minify for dist))gulp lint
: Lint js files with ESLintgulp images
: Optimize images from images foldergulp html
: Copy and minify html files into dist foldergulp bower
: Copy bower files into dist foldergulp clean
: Remove tmp and dist foldergulp dist
: Compiles/concats/lint/minifies code for production/uploadgulp serve
: Serve files for local testing (code unminified)gulp serve:dist
: Serve files from dist folder for final testinggulp watch
: Compiles sass / Lint and concat js files (see: styles, lint, scripts)
Note: gulp watch
, gulp serve
and gulp serve:dist
automatically run on code changes
Run gulp dist
and upload all files from dist
directory to your server. That's it 😊
frontend-starter-kit
│ .editorconfig
│ .eslintrc
│ .gitignore
│ .jscsrc
│ gulpfile.js
│ LICENSE
│ package.json
│ README.md
│
└───app
│ index.html
│ ...
│
├───scripts
│ │ app.js
│ │ ...
│
├───images
│ ...
│
└───styles
│
│ app.scss
│
├───core
│ │ _core.scss
│ │ _vars.scss
│ │ ...
│
├───mixins
│ │ _normalizeBoxSize.scss
│ │ ...
│
├───modules
│ │ ...
│
└───views
│ ...