add npm run formt command

This commit is contained in:
blurymind 2019-11-16 15:38:02 +00:00 committed by Julian Descottes
parent 3e926ff093
commit 24b28504a1
2 changed files with 6 additions and 2 deletions

View File

@ -87,7 +87,10 @@ module.exports = function(grunt) {
// Exludes
// TODO: remove this (for now we still get warnings from the lib folder)
'!src/js/**/lib/**/*.js'
]
],
options: {
fix: grunt.option('fix') // this will get params from the flags
}
},
/**

View File

@ -29,7 +29,8 @@
"postversion": "git push && git push --tags && npm publish",
"release": "grunt && node ./bin/copy-to-piskel-website",
"build": "grunt desktop",
"build:mac": "grunt desktop-mac"
"build:mac": "grunt desktop-mac",
"format": "grunt eslint --fix"
},
"devDependencies": {
"dateformat": "2.0.0",