-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
T/36 - Tools for project related task #40
Conversation
…d in plugin:create task.
…ification in package.json.
…m() method from getStatus function.
module.exports = ( grunt ) => { | ||
const packageJSON = grunt.config.data.pkg; | ||
|
||
grunt.registerTask( 'dev-init', function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use arrow fn.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm using grunt async()
and options()
methods that are available in function's scope.
name: 'pluginName', | ||
message: 'Enter plugin name without ' + DEFAULT_PLUGIN_NAME_PREFIX + ' prefix:', | ||
validate: ( input ) => { | ||
var regexp = /^[a-zA-Z0-9-_]+$/; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds like /[\w-]+$/
.
…itory initialization.
OK, there are couple of followups like:
But this is a good start. |
T/36 - Tools for project related task.
Added grunt tasks: