generator-js-module
Advanced tools
Comparing version 1.0.3 to 1.0.4
const Generator = require('yeoman-generator') | ||
module.exports = class extends Generator { | ||
constructor (args, opts) { | ||
super(args, opts) | ||
} | ||
setup () { | ||
return this.prompt([{ | ||
name: 'name', | ||
message: 'What is the module name?', | ||
default: this.appname.replace(/ /g, '-') | ||
},{ | ||
name: 'description', | ||
message: 'What is the module description?', | ||
},{ | ||
name: 'author', | ||
message: 'What is the name of the author?', | ||
name: 'name', | ||
message: 'What is the module name?', | ||
default: this.appname.replace(/ /g, '-') | ||
}, { | ||
name: 'description', | ||
message: 'What is the module description?' | ||
}, { | ||
name: 'author', | ||
message: 'What is the name of the author?', | ||
store: true | ||
},{ | ||
name: 'email', | ||
message: 'What is the email of the author?', | ||
store: true | ||
},{ | ||
name: 'url', | ||
message: 'What is the authors website?', | ||
store: true | ||
},{ | ||
name: 'repo', | ||
message: 'What is the module repo?', | ||
}]).then(props => { | ||
}, { | ||
name: 'email', | ||
message: 'What is the email of the author?', | ||
store: true | ||
}, { | ||
name: 'url', | ||
message: 'What is the authors website?', | ||
store: true | ||
}, { | ||
name: 'repo', | ||
message: 'What is the module repo?' | ||
}]).then(props => { | ||
this.fs.copyTpl( | ||
@@ -34,0 +29,0 @@ [ |
{ | ||
"name": "generator-js-module", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Yeoman generator for JavaScript Modules", | ||
@@ -9,3 +9,6 @@ "files": [ | ||
"scripts": { | ||
"test": "exit 0" | ||
"test": "npm run lint && jest", | ||
"test:watch": "jest --watch", | ||
"lint": "standard | snazzy", | ||
"lint:fix": "standard --fix | snazzy" | ||
}, | ||
@@ -18,2 +21,9 @@ "keywords": [ | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/kvartborg/generator-js-module.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/kvartborg/generator-js-module/issues" | ||
}, | ||
"author": "Frederik Kvartborg Albertsen", | ||
@@ -25,5 +35,16 @@ "license": "MIT", | ||
"devDependencies": { | ||
"babel-jest": "^20.0.3", | ||
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.0", | ||
"jest": "^20.0.4", | ||
"snazzy": "^7.0.0", | ||
"standard": "^10.0.3" | ||
"standard": "^10.0.3", | ||
"yeoman-assert": "^3.0.0", | ||
"yeoman-test": "^1.7.0" | ||
}, | ||
"jest": { | ||
"testPathIgnorePatterns": [ | ||
"/node_modules/", | ||
"/app/" | ||
] | ||
} | ||
} |
# generator-js-module | ||
[![Build Status](https://travis-ci.org/kvartborg/generator-js-module.svg?branch=master)](https://travis-ci.org/kvartborg/generator-js-module) | ||
Scaffold JavaScript ESNext modules with ease. | ||
@@ -3,0 +5,0 @@ |
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
6652
1
15
0
7
55