1
0
mirror of https://github.com/til-schneider/slim-wiki.git synced 2025-09-01 04:11:51 +02:00

Added grunt task for creating a release zip

This commit is contained in:
til-schneider
2016-02-02 19:47:26 +01:00
parent 3264add61b
commit 0f32db992b
3 changed files with 60 additions and 10 deletions

View File

@@ -16,28 +16,48 @@ Check out the **[demo website](http://slim-wiki.murfman.de/)** for more details
Want to develop slim wiki?
--------------------------
### Set up build environment
1. Install [node.js](https://nodejs.org/en/) (this includes `npm`)
2. Install grunt globally:
sudo npm install -g grunt-cli
3. Install grunt dependencies in project:
cd src
npm install
### Build instructions
Install grunt globally:
sudo npm install -g grunt-cli
Install grunt dependencies in project:
cd src
npm install
Build client:
cd src
grunt
Now link the project directory to a locally installed Apache Webserver with PHP and `mod_rewrite` enabled.
Go to the browser and open one of:
- `http:localhost/path/to/src/` - for the development version using the source JavaScript files.
- `http:localhost/path/to/dist/` - for the production version using compressed CSS and JavaScript.
### Other build options
Build automatically on source changes (watch mode):
cd src
grunt watch
Build a release zip:
cd src
grunt release
### Installation instructions