Commit ffe2f2bc authored by Vadym Gidulian's avatar Vadym Gidulian

Added npm scripts for auto installing of dependencies

parent 95015689
...@@ -6,7 +6,6 @@ test: ...@@ -6,7 +6,6 @@ test:
script: script:
- node -v - node -v
- npm -v - npm -v
- npm install
- npm start - npm start
- rm -rf .git .gitignore .gitlab-ci.yml - rm -rf .git .gitignore .gitlab-ci.yml
- rm -rf node_modules bs-config.json gulpfile.js package.json - rm -rf node_modules bs-config.json gulpfile.js package.json
...@@ -20,7 +19,6 @@ demo: ...@@ -20,7 +19,6 @@ demo:
script: script:
- node -v - node -v
- npm -v - npm -v
- npm install
- npm start - npm start
- rm -rf .git .gitignore .gitlab-ci.yml - rm -rf .git .gitignore .gitlab-ci.yml
- rm -rf node_modules bs-config.json gulpfile.js package.json - rm -rf node_modules bs-config.json gulpfile.js package.json
......
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
"name": "project", "name": "project",
"version": "version", "version": "version",
"scripts": { "scripts": {
"pretest": "npm install",
"test": "gulp test && concurrently \"gulp watch\" \"lite-server\"", "test": "gulp test && concurrently \"gulp watch\" \"lite-server\"",
"prestart": "npm install",
"start": "gulp" "start": "gulp"
}, },
"devDependencies": { "devDependencies": {
......
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