add npm run formt command
This commit is contained in:
parent
3e926ff093
commit
24b28504a1
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue