generator-itp-node-express-project
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -81,7 +81,2 @@ const Generator = require('yeoman-generator'); | ||
type: 'confirm', | ||
name: 'includeCapistrano', | ||
message: 'Would you like to include Capistrano in your project? ', | ||
default: true, | ||
}, { | ||
type: 'confirm', | ||
name: 'dockerize', | ||
@@ -123,8 +118,4 @@ message: 'Would you like to use Docker for your development environment?', | ||
mkdirp(this.destinationPath('utils')); | ||
mkdirp(this.destinationPath('test')); | ||
mkdirp(this.destinationPath('tests')); | ||
if (this.props.includeCapistrano) { | ||
mkdirp(this.destinationPath('config/deploy')); | ||
} | ||
if (this.props.useMongoose) { | ||
@@ -151,12 +142,2 @@ mkdirp(this.destinationPath('schemas')); | ||
if (this.props.includeCapistrano) { | ||
this.copy('_Capfile', 'Capfile'); | ||
this.makeTemplate( | ||
['config/_deploy.rb', 'config/deploy.rb'], | ||
['config/deploy/_staging.rb', 'config/deploy/staging.rb'], | ||
['config/deploy/_test.rb', 'config/deploy/test.rb'], | ||
['config/deploy/_production.rb', 'config/deploy/production.rb']); | ||
} | ||
if (this.props.dockerize) { | ||
@@ -197,3 +178,3 @@ this.makeTemplate('Dockerfile', 'Dockerfile'); | ||
// Unit testing | ||
this.copy('test/_sample_test.js', 'test/sample_test.js'); | ||
this.copy('tests/_sample_test.js', 'tests/sample_test.js'); | ||
this.makeTemplate('_sonar-project.properties', 'sonar-project.properties'); | ||
@@ -200,0 +181,0 @@ |
@@ -8,8 +8,8 @@ { | ||
"scripts": { | ||
"apidoc": "./node_modules/.bin/apidoc -i controllers/ -o public/docs", | ||
"coverage": "./node_modules/.bin/istanbul cover _mocha -- -R spec", | ||
"lint": "./node_modules/.bin/eslint . || exit 0", | ||
"apidoc": "apidoc -i controllers/ -o public/docs", | ||
"coverage": "istanbul cover _mocha -- -R spec || exit 0", | ||
"lint": "eslint . || exit 0", | ||
"start": "node server.js", | ||
"test": "./node_modules/.bin/mocha", | ||
"watch": "./node_modules/.bin/nodemon --inspect server.js" | ||
"test": "mocha", | ||
"watch": "nodemon --inspect server.js" | ||
}, | ||
@@ -16,0 +16,0 @@ "apidoc": { |
{ | ||
"name": "generator-itp-node-express-project", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Yeoman generator for the ITP Express project", | ||
@@ -15,3 +15,3 @@ "license": "MIT", | ||
"test": "mocha", | ||
"lint": "./node_modules/.bin/eslint . || exit 0" | ||
"lint": "eslint . || exit 0" | ||
}, | ||
@@ -36,7 +36,7 @@ "files": [ | ||
"devDependencies": { | ||
"eslint": "~3.12.0", | ||
"eslint-config-airbnb-base": "~11.0.0", | ||
"eslint-plugin-import": "~2.2.0", | ||
"eslint": "3.15.0", | ||
"eslint-config-itp-base": "1.0.1", | ||
"eslint-plugin-import": "2.2.0", | ||
"mocha": "~2.4.5" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18329
27
381