Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

generator-js-module

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-js-module - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

47

app/index.js
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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc