Add prettier + style command
This commit is contained in:
9
.gitignore
vendored
9
.gitignore
vendored
@ -36,8 +36,13 @@ node_modules
|
||||
build
|
||||
build-tests
|
||||
|
||||
# vscode
|
||||
.vscode
|
||||
# VSCode
|
||||
.vscode/*
|
||||
!.vscode/settings.json
|
||||
!.vscode/tasks.json
|
||||
!.vscode/launch.json
|
||||
!.vscode/extensions.json
|
||||
.history
|
||||
|
||||
# Lock files
|
||||
package-lock.json
|
@ -6,6 +6,7 @@ install:
|
||||
script:
|
||||
- npm run lint
|
||||
- npm test
|
||||
- npm run style
|
||||
after_failure:
|
||||
- "cat /home/travis/builds/dolanmiu/docx/npm-debug.log"
|
||||
after_success:
|
||||
|
16
.vscode/settings.json
vendored
Normal file
16
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"cSpell.words": [
|
||||
"clippy",
|
||||
"docx",
|
||||
"dolan",
|
||||
"miu",
|
||||
"officegen",
|
||||
"typedoc"
|
||||
],
|
||||
"prettier.trailingComma": "all",
|
||||
"prettier.printWidth": 140,
|
||||
"editor.formatOnSave": false,
|
||||
"prettier.tabWidth": 4,
|
||||
"prettier.arrowParens": "always",
|
||||
"prettier.bracketSpacing": true,
|
||||
}
|
@ -12,7 +12,8 @@
|
||||
"tsc": "rimraf ./build && tsc -p .",
|
||||
"webpack": "rimraf ./build && webpack",
|
||||
"demo": "npm run build && node ./demo",
|
||||
"typedoc": "npm run build && typedoc --out docs/ src/ --module commonjs --target ES6 --disableOutputCheck"
|
||||
"typedoc": "npm run build && typedoc --out docs/ src/ --module commonjs --target ES6 --disableOutputCheck",
|
||||
"style": "prettier -l --trailing-comma all --print-width 140 --arrow-parens always \"src/**/*.ts\""
|
||||
},
|
||||
"files": [
|
||||
"src",
|
||||
@ -61,6 +62,7 @@
|
||||
"chai": "^3.5.0",
|
||||
"mocha": "^3.2.0",
|
||||
"mocha-webpack": "^1.0.1",
|
||||
"prettier": "^1.10.2",
|
||||
"prompt": "^1.0.0",
|
||||
"rimraf": "^2.5.2",
|
||||
"shelljs": "^0.7.7",
|
||||
|
Reference in New Issue
Block a user