Installation¶
Note
The following dependencies should be installed on your system in order to work with this Boilerplate.
- Sass: http://sass-lang.com/
- Bootstrap: https://github.com/twbs/bootstrap-sass
- Node JS: http://nodejs.org/
- Gulp: http://gulpjs.com/
You can find most installation steps within osx-bootstrap but in short:
- run
brew install nodewhen using Homebrew - run
curl -L https://npmjs.org/install.sh | sh - run
npm install -g bower - run
npm install -g gulp
At last make sure you correctly configured your paths.
Setup¶
Run the following commands to install all requirements from within the root of the package:
npm installto install the requirements frompackage.jsonbower installto install the requirements frombower.jsonvia.bowerrc
Gulp Commands¶
Warning
Please mind that gulp browser starts browserSync which tries to
connect to a server. A Django server can be started from within
tools/server. Refer the General section for
additional information.
All front-end related tasks are handled via the Gulp task runner:
gulpruns the gulp defaultsgulp browserconnects to a given server (django) and runs live reload on a separate IPgulp lintstarts all linting services using.eslintrc.jsonandscss-lint.jsongulp preprocessoptimises images within/static/imgand compiles YUIDoc intostatic/docsgulp sassto compile the stylesheetsgulp testsruns the test suitegulp watchruns the gulp watch defaults
We also offer some standalone commands:
gulp bowerto install the bower dependenciesgulp imagesoptimises images within/static/imggulp iconsto create a custom icon webfontgulp docscompiles YUIDoc intostatic/docsgulp lint:javascriptruns JavaScript lintinggulp lint:sassruns Sass lintinggulp tests:unitruns unit testsgulp tests:integrationruns integration testsgulp tests:watchruns tests in debugging mode
We love code over configuration.