diff --git a/docs/Build.md b/docs/Build.md index 6d9af87..acb0a09 100644 --- a/docs/Build.md +++ b/docs/Build.md @@ -4,22 +4,18 @@ First you have to install the following dependencies: - `node` [Node.js](http://nodejs.org) v0.10 or later - `npm` [Node Packaged Modules](https://www.npmjs.org) -- `gulp` [Gulp.js](http://gulpjs.com) -After [installing Node.js](http://nodejs.org) you can use the included `npm` package manager to install the global requirements and Lychee-dependencies with the following command: +After [installing Node.js](http://nodejs.org) you can use the included `npm` package manager to download all dependencies: cd src/ - npm install -g gulp npm install ### Build -The Gulpfile is located in `src/` and can be easily executed using the `gulp` command. +The Gulpfile is located in `src/` and can be executed using the `npm start` command. ### Watch for changes -While developing, you might want to use the following command to watch for changes: +While developing, you might want to use the following command to automatically build Lychee everytime you save a file: - gulp watch - -`gulp watch` will automatically build Lychee everytime you save a file. + npm run watch diff --git a/src/package.json b/src/package.json index fa9ea25..fecdb82 100644 --- a/src/package.json +++ b/src/package.json @@ -9,6 +9,10 @@ "type": "git", "url": "https://github.com/electerious/Lychee.git" }, + "scripts": { + "start": "gulp", + "watch": "gulp watch" + }, "devDependencies": { "babel-preset-es2015": "^6.3.13", "basiccontext": "^3.5.1",