To simplify deployment of JS and CSS, Known makes use of Grunt.
A Gruntfile is provided which will perform minification of js and css for you, as well as execute other useful tasks.
To get going, install grunt:
npm install -g grunt-cli
You will then need to install the following helper tasks:
npm install grunt-contrib-sass --save-dev
npm install grunt-contrib-uglify --save-dev
npm install grunt-contrib-cssmin --save-dev
npm install grunt-contrib-jshint --save-dev
npm install grunt-contrib-watch --save-dev
npm install grunt-contrib-csslint --save-dev
Testing your changes
If you've made JS changes, you can check your code using
grunt test to run linting, etc
Minify your changes
As a developer, you may find it helpful to set up a virtual machine to see your code running. A Vagrant configuration for Known can be found on Github.