generator-reveal
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -5,2 +5,3 @@ 'use strict'; | ||
var yeoman = require('yeoman-generator'); | ||
var semver = require('semver'); | ||
@@ -32,3 +33,10 @@ var RevealGenerator = module.exports = function RevealGenerator(args, options) { | ||
message: 'What version should we put in the package.json file?', | ||
default: '0.0.0' | ||
default: '0.0.0', | ||
validate: function (input) { | ||
if (!semver.valid(input)) { | ||
return 'Please enter a correct semver version, i.e. MAJOR.MINOR.PATCH.'; | ||
} else { | ||
return true; | ||
} | ||
} | ||
}]; | ||
@@ -35,0 +43,0 @@ |
@@ -10,3 +10,2 @@ { | ||
"grunt-contrib-jshint": "~0.6.4", | ||
"connect-livereload": "~0.3.0", | ||
"load-grunt-tasks": "~0.1.0", | ||
@@ -13,0 +12,0 @@ "grunt-coffeelint": "0.0.7" |
{ | ||
"name": "generator-reveal", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A Reveal.js generator for Yeoman", | ||
@@ -25,6 +25,6 @@ "keywords": [ | ||
"dependencies": { | ||
"yeoman-generator": "~0.13.4" | ||
"yeoman-generator": "~0.13.4", | ||
"semver": "~2.1.0" | ||
}, | ||
"devDependencies": { | ||
"yo": ">=1.0.4", | ||
"generator-mocha": "~0.1.1", | ||
@@ -31,0 +31,0 @@ "grunt": "~0.4.1", |
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
7
205
21362
2
+ Addedsemver@~2.1.0
+ Addedsemver@2.1.0(transitive)