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, and the other developer dependencies:
Testing your changes
If you've made JS changes, you can check your code using
npm run grunt -- test to run linting, etc
Minify your changes
npm run grunt
Known now uses SCSS to define the main style sheets, and as such you will need to build a new minified stylesheet using the same
npm run grunt build task.
Watching for changes
If you're doing a lot of editing, you're probably going to forget to refresh your changes. Start your development session by running
See Languages for more detail, but in short
npm run grunt -- build-lang
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.