Skip to content

Commit

Permalink
feat(build): add lodash es imports and lodash types
Browse files Browse the repository at this point in the history
  - added used modules to rollup globals (TODO: #1129)
  - blacklisted `lodash-es` (use submodules instead)
  - added `karma-typescript-es6-transform` for transforming es6 dependencies
    - added workaround for monounity/karma-typescript#320 in `base.spec.ts` (stark-core, stark-ui, showcase, starter)
    - aliased all used lodash modules in karma.conf.js (TODO #1145)
  - minor refactors

ISSUES CLOSED: #150
  • Loading branch information
carlo-nomes committed Feb 28, 2019
1 parent 60ea76a commit e0a3afb
Show file tree
Hide file tree
Showing 28 changed files with 8,754 additions and 5,690 deletions.
10 changes: 10 additions & 0 deletions packages/rollup.config.common-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ const globals = {
cerialize: "cerialize",
ibantools: "ibantools",
moment: "moment",
"lodash-es/cloneDeep": "lodash-es.cloneDeep",
"lodash-es/findIndex": "lodash-es.findIndex",
"lodash-es/floor": "lodash-es.floor",
"lodash-es/get": "lodash-es.get",
"lodash-es/isEmpty": "lodash-es.isEmpty",
"lodash-es/isEqual": "lodash-es.isEqual",
"lodash-es/merge": "lodash-es.merge",
"lodash-es/noop": "lodash-es.noop",
"lodash-es/sortBy": "lodash-es.sortBy",
"lodash-es/uniqueId": "lodash-es.uniqueId",
nouislider: "nouislider",
"prettier/standalone": "prettier.standalone",
"prettier/parser-babylon": "prettier.parserBabylon",
Expand Down
2 changes: 1 addition & 1 deletion packages/stark-build/config/tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
}
],
"no-magic-numbers": false,
"import-blacklist": [true, "@angular/material", "lodash", "rxjs/internal", "rxjs/index", "rxjs/Rx"],
"import-blacklist": [true, "@angular/material", "lodash", "rxjs/internal", "rxjs/index", "rxjs/Rx", "lodash-es"],
"ordered-imports": false,
"max-classes-per-file": false, // [true, 1],
"prefer-for-of": true,
Expand Down
Loading

0 comments on commit e0a3afb

Please sign in to comment.