Updated Build.md
This commit is contained in:
parent
0b28559fce
commit
2eed519fb1
@ -2,19 +2,23 @@
|
|||||||
|
|
||||||
First you have to install the following dependencies:
|
First you have to install the following dependencies:
|
||||||
|
|
||||||
- [CSS Optimizer](https://github.com/css/csso) `csso`
|
- `node` [Node.js](http://nodejs.org) v0.10 or later
|
||||||
- [UglifyJS](https://github.com/mishoo/UglifyJS2) `uglifyjs`
|
- `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
|
### 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:
|
The Gruntfile is located in `build/` and can be easily executed using the `grunt` command.
|
||||||
|
|
||||||
make -f etc/Makefile
|
|
||||||
|
|
||||||
### Use uncompressed files
|
### Watch for changes
|
||||||
|
|
||||||
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.
|
While developing, you might want to use the following command to watch for changes in `assets/js/` and `assets/css/`:
|
||||||
|
|
||||||
|
grunt watch
|
||||||
|
|
||||||
|
`grunt` will automatically build Lychee, everytime you save a file.
|
Loading…
Reference in New Issue
Block a user