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 // Exludes
// TODO: remove this (for now we still get warnings from the lib folder) // TODO: remove this (for now we still get warnings from the lib folder)
'!src/js/**/lib/**/*.js' '!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", "postversion": "git push && git push --tags && npm publish",
"release": "grunt && node ./bin/copy-to-piskel-website", "release": "grunt && node ./bin/copy-to-piskel-website",
"build": "grunt desktop", "build": "grunt desktop",
"build:mac": "grunt desktop-mac" "build:mac": "grunt desktop-mac",
"format": "grunt eslint --fix"
}, },
"devDependencies": { "devDependencies": {
"dateformat": "2.0.0", "dateformat": "2.0.0",