README fixes, bugfixes for windows
This commit is contained in:
parent
a7f4736c12
commit
ac8db83582
|
@ -8,16 +8,13 @@ Salix is also the scientific name of a beautifull tree! :)
|
||||||
|
|
||||||
Required applications.
|
Required applications.
|
||||||
|
|
||||||
* Node.js >= 8.9.4
|
* Node.js = 8.9.4
|
||||||
* NGINX
|
* NGINX
|
||||||
* Docker
|
* Docker
|
||||||
|
|
||||||
You will need to install globally the following items.
|
You will need to install globally the following items.
|
||||||
```
|
```
|
||||||
$ npm install -g karma-cli
|
$ npm install -g karma-cli gulp webpack nodemon
|
||||||
$ npm install -g gulp
|
|
||||||
$ npm install -g webpack
|
|
||||||
$ npm install -g nodemon
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Getting Started // Installing
|
## Getting Started // Installing
|
||||||
|
|
|
@ -13,6 +13,7 @@ var fs = require('fs');
|
||||||
var webpack = require('webpack');
|
var webpack = require('webpack');
|
||||||
var WebpackDevServer = require('webpack-dev-server');
|
var WebpackDevServer = require('webpack-dev-server');
|
||||||
var exec = require('child_process').exec;
|
var exec = require('child_process').exec;
|
||||||
|
var path = require('path');
|
||||||
|
|
||||||
// Configuration
|
// Configuration
|
||||||
|
|
||||||
|
@ -47,7 +48,7 @@ gulp.task('services', callback => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('services-run', ['nginx'], () => {
|
gulp.task('services-run', () => {
|
||||||
const servicesPath = './services/';
|
const servicesPath = './services/';
|
||||||
const services = fs.readdirSync(servicesPath);
|
const services = fs.readdirSync(servicesPath);
|
||||||
services.splice(services.indexOf('loopback'), 1);
|
services.splice(services.indexOf('loopback'), 1);
|
||||||
|
@ -97,9 +98,9 @@ gulp.task('build', ['clean'], () => {
|
||||||
gulp.task('nginx', callback => {
|
gulp.task('nginx', callback => {
|
||||||
let isWindows = /^win/.test(process.platform);
|
let isWindows = /^win/.test(process.platform);
|
||||||
let command = isWindows ? 'start.cmd' : 'start.sh';
|
let command = isWindows ? 'start.cmd' : 'start.sh';
|
||||||
command = `./services/nginx/${command}`;
|
command = path.join(`./services/nginx/${command}`);
|
||||||
exec(command, (err, stdout, stderr) => {
|
exec(command, (err, stdout, stderr) => {
|
||||||
console.log(stdout);
|
console.log(stderr);
|
||||||
callback(err);
|
callback(err);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -7,8 +7,7 @@
|
||||||
"start": "node .",
|
"start": "node .",
|
||||||
"posttest": "npm run lint && nsp check"
|
"posttest": "npm run lint && nsp check"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {},
|
||||||
},
|
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.verdnatura.es/salix"
|
"url": "https://git.verdnatura.es/salix"
|
||||||
|
|
Loading…
Reference in New Issue