README fixes, bugfixes for windows

This commit is contained in:
Javi Gallego 2018-02-02 09:51:38 +01:00
parent a7f4736c12
commit ac8db83582
4 changed files with 399 additions and 127 deletions

View File

@ -8,16 +8,13 @@ Salix is also the scientific name of a beautifull tree! :)
Required applications.
* Node.js >= 8.9.4
* Node.js = 8.9.4
* NGINX
* Docker
You will need to install globally the following items.
```
$ npm install -g karma-cli
$ npm install -g gulp
$ npm install -g webpack
$ npm install -g nodemon
$ npm install -g karma-cli gulp webpack nodemon
```
## Getting Started // Installing

View File

@ -13,6 +13,7 @@ var fs = require('fs');
var webpack = require('webpack');
var WebpackDevServer = require('webpack-dev-server');
var exec = require('child_process').exec;
var path = require('path');
// Configuration
@ -47,7 +48,7 @@ gulp.task('services', callback => {
});
});
gulp.task('services-run', ['nginx'], () => {
gulp.task('services-run', () => {
const servicesPath = './services/';
const services = fs.readdirSync(servicesPath);
services.splice(services.indexOf('loopback'), 1);
@ -97,9 +98,9 @@ gulp.task('build', ['clean'], () => {
gulp.task('nginx', callback => {
let isWindows = /^win/.test(process.platform);
let command = isWindows ? 'start.cmd' : 'start.sh';
command = `./services/nginx/${command}`;
command = path.join(`./services/nginx/${command}`);
exec(command, (err, stdout, stderr) => {
console.log(stdout);
console.log(stderr);
callback(err);
});
});

509
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -7,8 +7,7 @@
"start": "node .",
"posttest": "npm run lint && nsp check"
},
"dependencies": {
},
"dependencies": {},
"repository": {
"type": "git",
"url": "https://git.verdnatura.es/salix"