Verified Commit 752a904b authored by Elias Häußler's avatar Elias Häußler 🐛

[TASK] Remove gulp-cli as dependency and rename "server" task to "serve"

parent 5aa2aa43
......@@ -13,7 +13,6 @@ The project is based on the [D3](https://github.com/d3/d3) library and developed
## Requirements
* `yarn` or `npm` to install the required packages
* [`gulp-cli`](https://github.com/gulpjs/gulp-cli) to build and run the project
* [Python 3.5](https://www.python.org/) in case you want to download the latest data
......@@ -73,7 +72,7 @@ for changes.
| NPM script | Gulp task | Description |
| ---------- | --------- | ----------- |
| `sources` | `default --production` | Build only the source files and does not start the server |
| `server` | `server` | Run the server without creating any source files |
| `serve` | `serve` | Run the server without creating any source files |
| `watch` | `server watch` | Run the server without creating source files and watch for changes |
All NPM scripts need to be executed using `yarn run <command>` or `npm run-script <command>`.
......
......@@ -187,7 +187,7 @@ gulp.task('default', !PRODUCTION
);
// Server Task
gulp.task('server', server);
gulp.task('serve', server);
// Watch Task
gulp.task('watch', watch);
......@@ -4,11 +4,11 @@
"description": "Visualization about student growth in Germany",
"main": "gulpfile.js",
"scripts": {
"start": "gulp",
"build": "gulp --production && gulp server",
"sources": "gulp --production",
"server": "gulp server",
"watch": "gulp server && gulp watch"
"start": "./node_modules/.bin/gulp",
"build": "./node_modules/.bin/gulp --production && ./node_modules/.bin/gulp serve",
"sources": "./node_modules/.bin/gulp --production",
"serve": "./node_modules/.bin/gulp serve",
"watch": "./node_modules/.bin/gulp serve && ./node_modules/.bin/gulp watch"
},
"repository": "https://github.com/eliashaeussler/student-growth",
"author": "Elias Häußler <mail@elias-haeussler.de>",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment