Skip to content

Commit

Permalink
styling: add configs and standardize script
Browse files Browse the repository at this point in the history
  • Loading branch information
brendoncaulkins committed Jun 13, 2019
1 parent 271ee11 commit b3fb215
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .jsbeautifyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"indent_size": 2,
"wrap_line_length": 90
}
16 changes: 16 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@
},
"scripts": {
"ng": "ng",
"prestart": "npm run standardize",
"start": "ng serve",
"start:docker": "ng serve --host 0.0.0.0 --port 4200",
"prebuild": "npm run standardize",
"build": "ng build --prod",
"test": "ng test",
"test:prod": "ng test --prod --watch=false",
"lint": "ng lint",
"e2e": "ng e2e",
"standardize": "import-sort --write \"**/*.ts\" && prettier --write \"**/*.ts\" && js-beautify \"src/**/*.html\"",
"predocker:build": "npm run build",
"docker:build": "cross-conf-env docker image build -f prod.Dockerfile . -t $npm_package_config_imageRepo:$npm_package_version",
"postdocker:build": "npm run docker:tag",
Expand Down Expand Up @@ -79,5 +82,18 @@
"ts-node": "~7.0.0",
"tslint": "~5.15.0",
"typescript": "~3.4.3"
},
"importSort": {
".ts, .tsx": {
"parser": "typescript",
"style": "module",
"options": {}
}
},
"prettier": {
"printWidth": 90,
"semi": false,
"singleQuote": true,
"trailingComma": "es5"
}
}

0 comments on commit b3fb215

Please sign in to comment.