Skip to content

Commit

Permalink
feat(stark-ui): add Prettier and use it for all the supported types o…
Browse files Browse the repository at this point in the history
…f data

ISSUES CLOSED: #500
  • Loading branch information
RobbyDeLaet committed Jul 27, 2018
1 parent 5384917 commit 5b06aef
Show file tree
Hide file tree
Showing 5 changed files with 310 additions and 153 deletions.
5 changes: 5 additions & 0 deletions packages/rollup.config.common-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ const globals = {
ibantools: "ibantools",
moment: "moment",
nouislider: "nouislider",
"prettier/standalone": "prettier.standalone",
"prettier/parser-babylon": "prettier.parserBabylon",
"prettier/parser-postcss": "prettier.parserPostcss",
"prettier/parser-typescript": "prettier.parserTypescript",
"pretty-data": "prettyData",
prismjs: "Prism",
"prismjs/components/prism-typescript.min.js": "Prism.languages.typescript",
"prismjs/components/prism-sql.min.js": "Prism.languages.sql",
Expand Down
3 changes: 2 additions & 1 deletion packages/stark-build/config/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ module.exports = options => {
/\.ngfactory\.js$/,
/\.ngstyle\.js$/,
helpers.root("node_modules/rxjs-compat"),
helpers.root("node_modules/@ng-idle")
helpers.root("node_modules/@ng-idle"),
helpers.root("node_modules/prettier")
]
},

Expand Down
1 change: 1 addition & 0 deletions packages/stark-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"@types/nouislider": "9.0.4",
"@types/prismjs": "1.9.0",
"nouislider": "11.1.0",
"prettier": "1.13.7",
"pretty-data": "0.40.0",
"prismjs": "1.15.0"
},
Expand Down
Loading

0 comments on commit 5b06aef

Please sign in to comment.