From 2eed519fb1c2ce87157bf59f1069bed1f2125f4a Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Tue, 1 Apr 2014 22:03:43 +0200 Subject: [PATCH] Updated Build.md --- docs/Build.md | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/docs/Build.md b/docs/Build.md index 652ab85..7088453 100644 --- a/docs/Build.md +++ b/docs/Build.md @@ -2,19 +2,23 @@ First you have to install the following dependencies: -- [CSS Optimizer](https://github.com/css/csso) `csso` -- [UglifyJS](https://github.com/mishoo/UglifyJS2) `uglifyjs` +- `node` [Node.js](http://nodejs.org) v0.10 or later +- `npm` [Node Packaged Modules](https://www.npmjs.org) +- `bower` [Bower](http://bower.io) +- `grunt` [Grunt](http://gruntjs.com) -These dependencies can be installed using `npm`: +After [installing Node.js](http://nodejs.org) you can use the included `npm` package manager to install the global requirements with the following command: - npm install csso uglify-js -g; + npm install -g bower grunt-cli ### Build -The Makefile is located in `etc/` and can be easily executed, using the following command. Make sure your run this from the root of Lychee: - - make -f etc/Makefile +The Gruntfile is located in `build/` and can be easily executed using the `grunt` command. -### Use uncompressed files +### Watch for changes + +While developing, you might want to use the following command to watch for changes in `assets/js/` and `assets/css/`: -While developing, you might want to use the uncompressed files. This is possible by editing the `index.html`. Simply change the linked CSS and JS files. There are already out-commented link-tags for development and production. \ No newline at end of file + grunt watch + +`grunt` will automatically build Lychee, everytime you save a file. \ No newline at end of file