@ngxs/store 3.8.2-dev.master-0fd1fe5 → 3.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (273) hide show
  1. package/bundles/ngxs-store-internals-testing.umd.js +684 -0
  2. package/bundles/ngxs-store-internals-testing.umd.js.map +1 -0
  3. package/bundles/ngxs-store-internals.umd.js +141 -0
  4. package/bundles/ngxs-store-internals.umd.js.map +1 -0
  5. package/bundles/ngxs-store-operators.umd.js +224 -0
  6. package/bundles/ngxs-store-operators.umd.js.map +1 -0
  7. package/bundles/ngxs-store.umd.js +3076 -0
  8. package/bundles/ngxs-store.umd.js.map +1 -0
  9. package/esm2015/internals/index.js +5 -0
  10. package/esm2015/internals/initial-state.js +17 -0
  11. package/esm2015/internals/internal-tokens.js +5 -0
  12. package/{esm2020/internals/ngxs-bootstrapper.mjs → esm2015/internals/ngxs-bootstrapper.js} +4 -4
  13. package/esm2015/internals/src/symbols.js +2 -0
  14. package/esm2015/internals/symbols.js +2 -0
  15. package/esm2015/internals/testing/fresh-platform.js +70 -0
  16. package/{esm2020/internals/testing/helpers/ngxs-test.component.mjs → esm2015/internals/testing/helpers/ngxs-test.component.js} +4 -4
  17. package/esm2015/internals/testing/helpers/ngxs-test.module.js +21 -0
  18. package/{esm2020/internals/testing/ngxs.setup.mjs → esm2015/internals/testing/ngxs.setup.js} +2 -4
  19. package/esm2015/internals/testing/symbol.js +2 -0
  20. package/esm2015/operators/patch.js +21 -0
  21. package/{esm2020/src/actions-stream.mjs → esm2015/src/actions-stream.js} +7 -7
  22. package/esm2015/src/configs/messages.config.js +36 -0
  23. package/{esm2020/src/decorators/select/select-factory.mjs → esm2015/src/decorators/select/select-factory.js} +4 -4
  24. package/esm2015/src/decorators/selector/selector.js +32 -0
  25. package/esm2015/src/decorators/state.js +36 -0
  26. package/{esm2020/src/dev-features/ngxs-development.module.mjs → esm2015/src/dev-features/ngxs-development.module.js} +5 -5
  27. package/{esm2020/src/dev-features/ngxs-unhandled-actions-logger.mjs → esm2015/src/dev-features/ngxs-unhandled-actions-logger.js} +4 -4
  28. package/{esm2020/src/execution/dispatch-outside-zone-ngxs-execution-strategy.mjs → esm2015/src/execution/dispatch-outside-zone-ngxs-execution-strategy.js} +4 -4
  29. package/{esm2020/src/execution/internal-ngxs-execution-strategy.mjs → esm2015/src/execution/internal-ngxs-execution-strategy.js} +4 -4
  30. package/{esm2020/src/execution/noop-ngxs-execution-strategy.mjs → esm2015/src/execution/noop-ngxs-execution-strategy.js} +4 -4
  31. package/esm2015/src/execution/symbols.js +23 -0
  32. package/{esm2020/src/internal/dispatcher.mjs → esm2015/src/internal/dispatcher.js} +11 -11
  33. package/{esm2020/src/internal/error-handler.mjs → esm2015/src/internal/error-handler.js} +5 -5
  34. package/esm2015/src/internal/internals.js +248 -0
  35. package/esm2015/src/internal/lifecycle-state-manager.js +79 -0
  36. package/{esm2020/src/internal/state-context-factory.mjs → esm2015/src/internal/state-context-factory.js} +4 -4
  37. package/esm2015/src/internal/state-factory.js +288 -0
  38. package/{esm2020/src/internal/state-operations.mjs → esm2015/src/internal/state-operations.js} +5 -5
  39. package/esm2015/src/internal/state-operators.js +20 -0
  40. package/esm2015/src/internal/state-stream.js +25 -0
  41. package/{esm2020/src/ivy/ivy-enabled-in-dev-mode.mjs → esm2015/src/ivy/ivy-enabled-in-dev-mode.js} +2 -2
  42. package/esm2015/src/module.js +88 -0
  43. package/esm2015/src/modules/ngxs-feature.module.js +45 -0
  44. package/esm2015/src/modules/ngxs-root.module.js +41 -0
  45. package/{esm2020/src/operators/of-action.mjs → esm2015/src/operators/of-action.js} +10 -10
  46. package/{esm2020/src/plugin-manager.mjs → esm2015/src/plugin-manager.js} +4 -4
  47. package/esm2015/src/public_api.js +27 -0
  48. package/esm2015/src/selectors/create-property-selectors.js +20 -0
  49. package/esm2015/src/selectors/selector-metadata.js +30 -0
  50. package/esm2015/src/selectors/selector-types.util.js +2 -0
  51. package/{esm2020/src/store.mjs → esm2015/src/store.js} +5 -6
  52. package/esm2015/src/symbols.js +58 -0
  53. package/esm2015/src/utils/utils.js +92 -0
  54. package/fesm2015/{ngxs-store-internals-testing.mjs → ngxs-store-internals-testing.js} +13 -19
  55. package/fesm2015/ngxs-store-internals-testing.js.map +1 -0
  56. package/{fesm2020/ngxs-store-internals.mjs → fesm2015/ngxs-store-internals.js} +8 -21
  57. package/fesm2015/ngxs-store-internals.js.map +1 -0
  58. package/fesm2015/{ngxs-store-operators.mjs → ngxs-store-operators.js} +1 -1
  59. package/fesm2015/ngxs-store-operators.js.map +1 -0
  60. package/{fesm2020/ngxs-store.mjs → fesm2015/ngxs-store.js} +1029 -1192
  61. package/fesm2015/ngxs-store.js.map +1 -0
  62. package/internals/index.d.ts +1 -1
  63. package/internals/initial-state.d.ts +1 -1
  64. package/internals/ngxs-store-internals.d.ts +5 -0
  65. package/internals/package.json +10 -0
  66. package/internals/src/symbols.d.ts +1 -4
  67. package/internals/symbols.d.ts +1 -4
  68. package/internals/testing/helpers/ngxs-test.component.d.ts +1 -1
  69. package/internals/testing/ngxs-store-internals-testing.d.ts +5 -0
  70. package/internals/testing/package.json +10 -0
  71. package/internals/testing/symbol.d.ts +2 -2
  72. package/ngxs-store.d.ts +5 -0
  73. package/operators/ngxs-store-operators.d.ts +5 -0
  74. package/operators/package.json +10 -0
  75. package/package.json +11 -48
  76. package/src/configs/messages.config.d.ts +0 -2
  77. package/src/decorators/state.d.ts +2 -2
  78. package/src/execution/symbols.d.ts +2 -8
  79. package/src/internal/internals.d.ts +5 -5
  80. package/src/internal/lifecycle-state-manager.d.ts +1 -3
  81. package/src/module.d.ts +14 -3
  82. package/src/modules/ngxs-feature.module.d.ts +9 -2
  83. package/src/modules/ngxs-root.module.d.ts +9 -2
  84. package/src/public_api.d.ts +4 -5
  85. package/src/selectors/selector-types.util.d.ts +3 -3
  86. package/src/symbols.d.ts +8 -5
  87. package/esm2020/internals/index.mjs +0 -6
  88. package/esm2020/internals/initial-state.mjs +0 -18
  89. package/esm2020/internals/internal-tokens.mjs +0 -6
  90. package/esm2020/internals/src/symbols.mjs +0 -11
  91. package/esm2020/internals/symbols.mjs +0 -11
  92. package/esm2020/internals/testing/fresh-platform.mjs +0 -72
  93. package/esm2020/internals/testing/helpers/ngxs-test.module.mjs +0 -20
  94. package/esm2020/internals/testing/symbol.mjs +0 -2
  95. package/esm2020/operators/patch.mjs +0 -21
  96. package/esm2020/src/configs/messages.config.mjs +0 -48
  97. package/esm2020/src/decorators/selector/selector.mjs +0 -32
  98. package/esm2020/src/decorators/state.mjs +0 -36
  99. package/esm2020/src/execution/symbols.mjs +0 -27
  100. package/esm2020/src/internal/internals.mjs +0 -248
  101. package/esm2020/src/internal/lifecycle-state-manager.mjs +0 -97
  102. package/esm2020/src/internal/state-factory.mjs +0 -292
  103. package/esm2020/src/internal/state-operators.mjs +0 -20
  104. package/esm2020/src/internal/state-stream.mjs +0 -27
  105. package/esm2020/src/module.mjs +0 -27
  106. package/esm2020/src/modules/ngxs-feature.module.mjs +0 -18
  107. package/esm2020/src/modules/ngxs-root.module.mjs +0 -18
  108. package/esm2020/src/public_api.mjs +0 -28
  109. package/esm2020/src/selectors/create-property-selectors.mjs +0 -20
  110. package/esm2020/src/selectors/selector-metadata.mjs +0 -35
  111. package/esm2020/src/selectors/selector-types.util.mjs +0 -2
  112. package/esm2020/src/standalone-features/feature-providers.mjs +0 -20
  113. package/esm2020/src/standalone-features/index.mjs +0 -4
  114. package/esm2020/src/standalone-features/initializers.mjs +0 -86
  115. package/esm2020/src/standalone-features/plugin.mjs +0 -20
  116. package/esm2020/src/standalone-features/provide-states.mjs +0 -26
  117. package/esm2020/src/standalone-features/provide-store.mjs +0 -26
  118. package/esm2020/src/standalone-features/root-providers.mjs +0 -47
  119. package/esm2020/src/symbols.mjs +0 -65
  120. package/esm2020/src/utils/utils.mjs +0 -92
  121. package/fesm2015/ngxs-store-internals-testing.mjs.map +0 -1
  122. package/fesm2015/ngxs-store-internals.mjs +0 -114
  123. package/fesm2015/ngxs-store-internals.mjs.map +0 -1
  124. package/fesm2015/ngxs-store-operators.mjs.map +0 -1
  125. package/fesm2015/ngxs-store.mjs +0 -2454
  126. package/fesm2015/ngxs-store.mjs.map +0 -1
  127. package/fesm2020/ngxs-store-internals-testing.mjs +0 -180
  128. package/fesm2020/ngxs-store-internals-testing.mjs.map +0 -1
  129. package/fesm2020/ngxs-store-internals.mjs.map +0 -1
  130. package/fesm2020/ngxs-store-operators.mjs +0 -202
  131. package/fesm2020/ngxs-store-operators.mjs.map +0 -1
  132. package/fesm2020/ngxs-store.mjs.map +0 -1
  133. package/schematics/collection.json +0 -36
  134. package/schematics/src/actions/actions.factory.d.ts +0 -3
  135. package/schematics/src/actions/actions.factory.js +0 -22
  136. package/schematics/src/actions/actions.factory.js.map +0 -1
  137. package/schematics/src/actions/files/__name__.actions.ts__template__ +0 -4
  138. package/schematics/src/actions/schema.json +0 -28
  139. package/schematics/src/ng-add/add-declaration.d.ts +0 -4
  140. package/schematics/src/ng-add/add-declaration.js +0 -109
  141. package/schematics/src/ng-add/add-declaration.js.map +0 -1
  142. package/schematics/src/ng-add/ng-add.factory.d.ts +0 -9
  143. package/schematics/src/ng-add/ng-add.factory.js +0 -86
  144. package/schematics/src/ng-add/ng-add.factory.js.map +0 -1
  145. package/schematics/src/ng-add/schema.json +0 -72
  146. package/schematics/src/starter-kit/files/store/auth/auth.actions.ts__template__ +0 -7
  147. package/schematics/src/starter-kit/files/store/auth/auth.state.spec.ts__template__ +0 -46
  148. package/schematics/src/starter-kit/files/store/auth/auth.state.ts__template__ +0 -45
  149. package/schematics/src/starter-kit/files/store/dashboard/index.ts__template__ +0 -11
  150. package/schematics/src/starter-kit/files/store/dashboard/states/dictionary/dictionary.actions.ts__template__ +0 -13
  151. package/schematics/src/starter-kit/files/store/dashboard/states/dictionary/dictionary.state.spec.ts__template__ +0 -77
  152. package/schematics/src/starter-kit/files/store/dashboard/states/dictionary/dictionary.state.ts__template__ +0 -60
  153. package/schematics/src/starter-kit/files/store/dashboard/states/user/user.actions.ts__template__ +0 -6
  154. package/schematics/src/starter-kit/files/store/dashboard/states/user/user.state.spec.ts__template__ +0 -54
  155. package/schematics/src/starter-kit/files/store/dashboard/states/user/user.state.ts__template__ +0 -40
  156. package/schematics/src/starter-kit/files/store/store.config.ts__template__ +0 -38
  157. package/schematics/src/starter-kit/files/store/store.module.ts__template__ +0 -22
  158. package/schematics/src/starter-kit/schema.json +0 -18
  159. package/schematics/src/starter-kit/starter-kit.factory.d.ts +0 -3
  160. package/schematics/src/starter-kit/starter-kit.factory.js +0 -12
  161. package/schematics/src/starter-kit/starter-kit.factory.js.map +0 -1
  162. package/schematics/src/state/files/__name__.state.spec.ts__template__ +0 -22
  163. package/schematics/src/state/files/__name__.state.ts__template__ +0 -20
  164. package/schematics/src/state/schema.json +0 -33
  165. package/schematics/src/state/state.factory.d.ts +0 -3
  166. package/schematics/src/state/state.factory.js +0 -20
  167. package/schematics/src/state/state.factory.js.map +0 -1
  168. package/schematics/src/store/files/__name__.actions.ts__template__ +0 -4
  169. package/schematics/src/store/files/__name__.state.spec.ts__template__ +0 -24
  170. package/schematics/src/store/files/__name__.state.ts__template__ +0 -27
  171. package/schematics/src/store/schema.json +0 -33
  172. package/schematics/src/store/store.factory.d.ts +0 -3
  173. package/schematics/src/store/store.factory.js +0 -20
  174. package/schematics/src/store/store.factory.js.map +0 -1
  175. package/schematics/src/utils/common/lib.config.d.ts +0 -10
  176. package/schematics/src/utils/common/lib.config.js +0 -15
  177. package/schematics/src/utils/common/lib.config.js.map +0 -1
  178. package/schematics/src/utils/common/project-files.config.d.ts +0 -3
  179. package/schematics/src/utils/common/project-files.config.js +0 -7
  180. package/schematics/src/utils/common/project-files.config.js.map +0 -1
  181. package/schematics/src/utils/common/properties.d.ts +0 -1
  182. package/schematics/src/utils/common/properties.js +0 -8
  183. package/schematics/src/utils/common/properties.js.map +0 -1
  184. package/schematics/src/utils/config.d.ts +0 -119
  185. package/schematics/src/utils/config.js +0 -21
  186. package/schematics/src/utils/config.js.map +0 -1
  187. package/schematics/src/utils/generate-utils.d.ts +0 -4
  188. package/schematics/src/utils/generate-utils.js +0 -14
  189. package/schematics/src/utils/generate-utils.js.map +0 -1
  190. package/schematics/src/utils/interfaces/package.interface.d.ts +0 -7
  191. package/schematics/src/utils/interfaces/package.interface.js +0 -3
  192. package/schematics/src/utils/interfaces/package.interface.js.map +0 -1
  193. package/schematics/src/utils/ng-utils/README.md +0 -1
  194. package/schematics/src/utils/ng-utils/ast-utils.d.ts +0 -99
  195. package/schematics/src/utils/ng-utils/ast-utils.js +0 -517
  196. package/schematics/src/utils/ng-utils/ast-utils.js.map +0 -1
  197. package/schematics/src/utils/ng-utils/ng-ast-utils.d.ts +0 -5
  198. package/schematics/src/utils/ng-utils/ng-ast-utils.js +0 -67
  199. package/schematics/src/utils/ng-utils/ng-ast-utils.js.map +0 -1
  200. package/schematics/src/utils/ng-utils/project.d.ts +0 -2
  201. package/schematics/src/utils/ng-utils/project.js +0 -21
  202. package/schematics/src/utils/ng-utils/project.js.map +0 -1
  203. package/schematics/src/utils/ng-utils/standalone/app_config.d.ts +0 -16
  204. package/schematics/src/utils/ng-utils/standalone/app_config.js +0 -84
  205. package/schematics/src/utils/ng-utils/standalone/app_config.js.map +0 -1
  206. package/schematics/src/utils/ng-utils/standalone/code_block.d.ts +0 -46
  207. package/schematics/src/utils/ng-utils/standalone/code_block.js +0 -73
  208. package/schematics/src/utils/ng-utils/standalone/code_block.js.map +0 -1
  209. package/schematics/src/utils/ng-utils/standalone/index.d.ts +0 -1
  210. package/schematics/src/utils/ng-utils/standalone/index.js +0 -7
  211. package/schematics/src/utils/ng-utils/standalone/index.js.map +0 -1
  212. package/schematics/src/utils/ng-utils/standalone/rules.d.ts +0 -38
  213. package/schematics/src/utils/ng-utils/standalone/rules.js +0 -195
  214. package/schematics/src/utils/ng-utils/standalone/rules.js.map +0 -1
  215. package/schematics/src/utils/ng-utils/standalone/util.d.ts +0 -28
  216. package/schematics/src/utils/ng-utils/standalone/util.js +0 -138
  217. package/schematics/src/utils/ng-utils/standalone/util.js.map +0 -1
  218. package/schematics/src/utils/normalize-options.d.ts +0 -9
  219. package/schematics/src/utils/normalize-options.js +0 -24
  220. package/schematics/src/utils/normalize-options.js.map +0 -1
  221. package/schematics/src/utils/project.d.ts +0 -16
  222. package/schematics/src/utils/project.js +0 -40
  223. package/schematics/src/utils/project.js.map +0 -1
  224. package/schematics/src/utils/versions.json +0 -3
  225. package/src/standalone-features/feature-providers.d.ts +0 -7
  226. package/src/standalone-features/index.d.ts +0 -3
  227. package/src/standalone-features/initializers.d.ts +0 -29
  228. package/src/standalone-features/plugin.d.ts +0 -17
  229. package/src/standalone-features/provide-states.d.ts +0 -18
  230. package/src/standalone-features/provide-store.d.ts +0 -22
  231. package/src/standalone-features/root-providers.d.ts +0 -8
  232. /package/{esm2020/index.mjs → esm2015/index.js} +0 -0
  233. /package/{esm2020/internals/memoize.mjs → esm2015/internals/memoize.js} +0 -0
  234. /package/{esm2020/internals/ngxs-store-internals.mjs → esm2015/internals/ngxs-store-internals.js} +0 -0
  235. /package/{esm2020/internals/testing/index.mjs → esm2015/internals/testing/index.js} +0 -0
  236. /package/{esm2020/internals/testing/ngxs-store-internals-testing.mjs → esm2015/internals/testing/ngxs-store-internals-testing.js} +0 -0
  237. /package/{esm2020/internals/testing/skip-console-logging.mjs → esm2015/internals/testing/skip-console-logging.js} +0 -0
  238. /package/{esm2020/ngxs-store.mjs → esm2015/ngxs-store.js} +0 -0
  239. /package/{esm2020/operators/append.mjs → esm2015/operators/append.js} +0 -0
  240. /package/{esm2020/operators/compose.mjs → esm2015/operators/compose.js} +0 -0
  241. /package/{esm2020/operators/iif.mjs → esm2015/operators/iif.js} +0 -0
  242. /package/{esm2020/operators/index.mjs → esm2015/operators/index.js} +0 -0
  243. /package/{esm2020/operators/insert-item.mjs → esm2015/operators/insert-item.js} +0 -0
  244. /package/{esm2020/operators/ngxs-store-operators.mjs → esm2015/operators/ngxs-store-operators.js} +0 -0
  245. /package/{esm2020/operators/remove-item.mjs → esm2015/operators/remove-item.js} +0 -0
  246. /package/{esm2020/operators/types.mjs → esm2015/operators/types.js} +0 -0
  247. /package/{esm2020/operators/update-item.mjs → esm2015/operators/update-item.js} +0 -0
  248. /package/{esm2020/operators/utils.mjs → esm2015/operators/utils.js} +0 -0
  249. /package/{esm2020/src/actions/actions.mjs → esm2015/src/actions/actions.js} +0 -0
  250. /package/{esm2020/src/actions/symbols.mjs → esm2015/src/actions/symbols.js} +0 -0
  251. /package/{esm2020/src/decorators/action.mjs → esm2015/src/decorators/action.js} +0 -0
  252. /package/{esm2020/src/decorators/select/select.mjs → esm2015/src/decorators/select/select.js} +0 -0
  253. /package/{esm2020/src/decorators/select/symbols.mjs → esm2015/src/decorators/select/symbols.js} +0 -0
  254. /package/{esm2020/src/decorators/selector/symbols.mjs → esm2015/src/decorators/selector/symbols.js} +0 -0
  255. /package/{esm2020/src/decorators/selector-options.mjs → esm2015/src/decorators/selector-options.js} +0 -0
  256. /package/{esm2020/src/dev-features/symbols.mjs → esm2015/src/dev-features/symbols.js} +0 -0
  257. /package/{esm2020/src/internal/custom-rxjs-subjects.mjs → esm2015/src/internal/custom-rxjs-subjects.js} +0 -0
  258. /package/{esm2020/src/operators/leave-ngxs.mjs → esm2015/src/operators/leave-ngxs.js} +0 -0
  259. /package/{esm2020/src/plugin_api.mjs → esm2015/src/plugin_api.js} +0 -0
  260. /package/{esm2020/src/private_api.mjs → esm2015/src/private_api.js} +0 -0
  261. /package/{esm2020/src/public_to_deprecate.mjs → esm2015/src/public_to_deprecate.js} +0 -0
  262. /package/{esm2020/src/selectors/create-model-selector.mjs → esm2015/src/selectors/create-model-selector.js} +0 -0
  263. /package/{esm2020/src/selectors/create-pick-selector.mjs → esm2015/src/selectors/create-pick-selector.js} +0 -0
  264. /package/{esm2020/src/selectors/create-selector.mjs → esm2015/src/selectors/create-selector.js} +0 -0
  265. /package/{esm2020/src/selectors/index.mjs → esm2015/src/selectors/index.js} +0 -0
  266. /package/{esm2020/src/selectors/selector-checks.util.mjs → esm2015/src/selectors/selector-checks.util.js} +0 -0
  267. /package/{esm2020/src/selectors/selector-models.mjs → esm2015/src/selectors/selector-models.js} +0 -0
  268. /package/{esm2020/src/selectors/selector-utils.mjs → esm2015/src/selectors/selector-utils.js} +0 -0
  269. /package/{esm2020/src/state-token/state-token.mjs → esm2015/src/state-token/state-token.js} +0 -0
  270. /package/{esm2020/src/state-token/symbols.mjs → esm2015/src/state-token/symbols.js} +0 -0
  271. /package/{esm2020/src/utils/compose.mjs → esm2015/src/utils/compose.js} +0 -0
  272. /package/{esm2020/src/utils/freeze.mjs → esm2015/src/utils/freeze.js} +0 -0
  273. /package/{esm2020/src/utils/store-validators.mjs → esm2015/src/utils/store-validators.js} +0 -0
@@ -1,38 +0,0 @@
1
- import { AuthState } from './auth/auth.state';
2
- import { DashboardStates, DashboardState } from './dashboard';
3
- import { NgxsConfig } from '@ngxs/store/src/symbols';
4
- import { NgxsDevtoolsOptions } from '@ngxs/devtools-plugin/src/symbols';
5
- import { NgxsLoggerPluginOptions } from '@ngxs/logger-plugin/src/symbols';
6
-
7
- export const STATES_MODULES = [AuthState, DashboardState, ...DashboardStates];
8
-
9
- export const OPTIONS_CONFIG: Partial<NgxsConfig> = {
10
- /**
11
- * Run in development mode. This will add additional debugging features:
12
- * - Object.freeze on the state and actions to guarantee immutability
13
- * todo: you need set production mode
14
- * import { environment } from '@env';
15
- * developmentMode: !environment.production
16
- */
17
- developmentMode: true
18
- };
19
-
20
- export const DEVTOOLS_REDUX_CONFIG: NgxsDevtoolsOptions = {
21
- /**
22
- * Whether the dev tools is enabled or note. Useful for setting during production.
23
- * todo: you need set production mode
24
- * import { environment } from '@env';
25
- * disabled: environment.production
26
- */
27
- disabled: false
28
- };
29
-
30
- export const LOGGER_CONFIG: NgxsLoggerPluginOptions = {
31
- /**
32
- * Disable the logger. Useful for prod mode..
33
- * todo: you need set production mode
34
- * import { environment } from '@env';
35
- * disabled: environment.production
36
- */
37
- disabled: false
38
- };
@@ -1,22 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { NgxsModule } from '@ngxs/store';
4
- import { NgxsLoggerPluginModule } from '@ngxs/logger-plugin';
5
- import { NgxsReduxDevtoolsPluginModule } from '@ngxs/devtools-plugin';
6
- import {
7
- DEVTOOLS_REDUX_CONFIG,
8
- LOGGER_CONFIG,
9
- OPTIONS_CONFIG,
10
- STATES_MODULES
11
- } from './store.config';
12
-
13
- @NgModule({
14
- imports: [
15
- CommonModule,
16
- NgxsModule.forRoot(STATES_MODULES, OPTIONS_CONFIG),
17
- NgxsReduxDevtoolsPluginModule.forRoot(DEVTOOLS_REDUX_CONFIG),
18
- NgxsLoggerPluginModule.forRoot(LOGGER_CONFIG)
19
- ],
20
- exports: [NgxsModule]
21
- })
22
- export class NgxsStoreModule {}
@@ -1,18 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "$id": "SchematicsNgxsStarterKit",
4
- "title": "Ngxs Starter Kit Options Schema",
5
- "type": "object",
6
- "properties": {
7
- "path": {
8
- "type": "string",
9
- "description": "The path to create the starter kit."
10
- },
11
- "spec": {
12
- "type": "boolean",
13
- "description": "Specifies if a spec file is generated.",
14
- "default": true
15
- }
16
- },
17
- "required": ["path"]
18
- }
@@ -1,3 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- import { StarterKitSchema } from './starter-kit.schema';
3
- export declare function starterKit(options: StarterKitSchema): Rule;
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.starterKit = void 0;
4
- const schematics_1 = require("@angular-devkit/schematics");
5
- const normalize_options_1 = require("../utils/normalize-options");
6
- const generate_utils_1 = require("../utils/generate-utils");
7
- function starterKit(options) {
8
- const normalizedPath = (0, normalize_options_1.normalizePath)(options.path);
9
- return (0, generate_utils_1.generateFiles)((0, schematics_1.url)('./files'), normalizedPath, options, options.spec);
10
- }
11
- exports.starterKit = starterKit;
12
- //# sourceMappingURL=starter-kit.factory.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"starter-kit.factory.js","sourceRoot":"","sources":["../../../../../packages/store/schematics/src/starter-kit/starter-kit.factory.ts"],"names":[],"mappings":";;;AAAA,2DAAuD;AAEvD,kEAA2D;AAC3D,4DAAwD;AAExD,SAAgB,UAAU,CAAC,OAAyB;IAClD,MAAM,cAAc,GAAG,IAAA,iCAAa,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnD,OAAO,IAAA,8BAAa,EAAC,IAAA,gBAAG,EAAC,SAAS,CAAC,EAAE,cAAc,EAAE,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;AAC9E,CAAC;AAJD,gCAIC"}
@@ -1,22 +0,0 @@
1
- import { TestBed, async } from '@angular/core/testing';
2
- import { NgxsModule, Store } from '@ngxs/store';
3
- import { <%= classify(name) %>State, <%= classify(name) %>StateModel } from './<%= dasherize(name) %>.state';
4
-
5
- describe('<%= classify(name) %> state', () => {
6
- let store: Store;
7
- beforeEach(async(() => {
8
- TestBed.configureTestingModule({
9
- imports: [NgxsModule.forRoot([<%= classify(name) %>State])]
10
- }).compileComponents();
11
- store = TestBed.get(Store);
12
- }));
13
-
14
- it('should create an empty state', () => {
15
- const actual = store.selectSnapshot(<%= classify(name) %>State.getState);
16
- const expected: <%= classify(name) %>StateModel = {
17
- items: []
18
- };
19
- expect(actual).toEqual(expected);
20
- });
21
-
22
- });
@@ -1,20 +0,0 @@
1
- import { State, Selector } from '@ngxs/store';
2
-
3
- export interface <%= classify(name) %>StateModel {
4
- items: string[];
5
- }
6
-
7
- @State<<%= classify(name) %>StateModel>({
8
- name: '<%= camelize(name) %>',
9
- defaults: {
10
- items: []
11
- }
12
- })
13
- export class <%= classify(name) %>State {
14
-
15
- @Selector()
16
- public static getState(state: <%= classify(name) %>StateModel) {
17
- return state;
18
- }
19
-
20
- }
@@ -1,33 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "$id": "SchematicsNgxsState",
4
- "title": "Ngxs State Options Schema",
5
- "type": "object",
6
- "properties": {
7
- "name": {
8
- "description": "The name of the state.",
9
- "type": "string",
10
- "$default": {
11
- "$source": "argv",
12
- "index": 0
13
- },
14
- "x-prompt": "What name would you like to use for the state?"
15
- },
16
- "path": {
17
- "type": "string",
18
- "format": "path",
19
- "description": "The path to create the state."
20
- },
21
- "spec": {
22
- "type": "boolean",
23
- "description": "Specifies if a spec file is generated.",
24
- "default": true
25
- },
26
- "flat": {
27
- "type": "boolean",
28
- "default": false,
29
- "description": "Flag to indicate if a dir is created."
30
- }
31
- },
32
- "required": ["name"]
33
- }
@@ -1,3 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- import { StateSchema } from './state.schema';
3
- export declare function state(options: StateSchema): Rule;
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.state = void 0;
4
- const schematics_1 = require("@angular-devkit/schematics");
5
- const properties_1 = require("../utils/common/properties");
6
- const normalize_options_1 = require("../utils/normalize-options");
7
- const generate_utils_1 = require("../utils/generate-utils");
8
- const path_1 = require("path");
9
- function state(options) {
10
- if ((0, properties_1.isEmpty)(options.name)) {
11
- throw new schematics_1.SchematicsException('Invalid options, "name" is required.');
12
- }
13
- const normalizedOptions = (0, normalize_options_1.normalizeBaseOptions)(options);
14
- const path = options.flat
15
- ? normalizedOptions.path
16
- : (0, path_1.join)(normalizedOptions.path, normalizedOptions.name);
17
- return (0, generate_utils_1.generateFiles)((0, schematics_1.url)('./files'), path, options, options.spec);
18
- }
19
- exports.state = state;
20
- //# sourceMappingURL=state.factory.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"state.factory.js","sourceRoot":"","sources":["../../../../../packages/store/schematics/src/state/state.factory.ts"],"names":[],"mappings":";;;AAAA,2DAA4E;AAE5E,2DAAqD;AACrD,kEAAkE;AAClE,4DAAwD;AACxD,+BAA4B;AAE5B,SAAgB,KAAK,CAAC,OAAoB;IACxC,IAAI,IAAA,oBAAO,EAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACzB,MAAM,IAAI,gCAAmB,CAAC,sCAAsC,CAAC,CAAC;KACvE;IAED,MAAM,iBAAiB,GAAG,IAAA,wCAAoB,EAAC,OAAO,CAAC,CAAC;IACxD,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI;QACvB,CAAC,CAAC,iBAAiB,CAAC,IAAI;QACxB,CAAC,CAAC,IAAA,WAAI,EAAC,iBAAiB,CAAC,IAAI,EAAE,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAEzD,OAAO,IAAA,8BAAa,EAAC,IAAA,gBAAG,EAAC,SAAS,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;AACpE,CAAC;AAXD,sBAWC"}
@@ -1,4 +0,0 @@
1
- export class <%= classify(name) %>Action {
2
- public static readonly type = '[<%= classify(name) %>] Add item';
3
- constructor(public payload: string) { }
4
- }
@@ -1,24 +0,0 @@
1
- import { TestBed, async } from '@angular/core/testing';
2
- import { NgxsModule, Store } from '@ngxs/store';
3
- import { <%= classify(name) %>State, <%= classify(name) %>StateModel } from './<%= dasherize(name) %>.state';
4
- import { <%= classify(name) %>Action } from './<%= dasherize(name) %>.actions';
5
-
6
- describe('<%= classify(name) %> store', () => {
7
- let store: Store;
8
- beforeEach(async(() => {
9
- TestBed.configureTestingModule({
10
- imports: [NgxsModule.forRoot([<%= classify(name) %>State])]
11
- }).compileComponents();
12
- store = TestBed.get(Store);
13
- }));
14
-
15
- it('should create an action and add an item', () => {
16
- const expected: <%= classify(name) %>StateModel = {
17
- items: ['item-1']
18
- };
19
- store.dispatch(new <%= classify(name) %>Action('item-1'));
20
- const actual = store.selectSnapshot(<%= classify(name) %>State.getState);
21
- expect(actual).toEqual(expected);
22
- });
23
-
24
- });
@@ -1,27 +0,0 @@
1
- import { State, Action, Selector, StateContext } from '@ngxs/store';
2
- import { <%= classify(name) %>Action } from './<%= dasherize(name) %>.actions';
3
-
4
- export interface <%= classify(name) %>StateModel {
5
- items: string[];
6
- }
7
-
8
- @State<<%= classify(name) %>StateModel>({
9
- name: '<%= camelize(name) %>',
10
- defaults: {
11
- items: []
12
- }
13
- })
14
- export class <%= classify(name) %>State {
15
-
16
- @Selector()
17
- public static getState(state: <%= classify(name) %>StateModel) {
18
- return state;
19
- }
20
-
21
- @Action(<%= classify(name) %>Action)
22
- public add(ctx: StateContext<<%= classify(name) %>StateModel>, { payload }: <%= classify(name) %>Action) {
23
- const stateModel = ctx.getState();
24
- stateModel.items = [...stateModel.items, payload];
25
- ctx.setState(stateModel);
26
- }
27
- }
@@ -1,33 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "$id": "SchematicsNgxsStore",
4
- "title": "Ngxs Store Options Schema",
5
- "type": "object",
6
- "properties": {
7
- "name": {
8
- "description": "The name of the store.",
9
- "type": "string",
10
- "$default": {
11
- "$source": "argv",
12
- "index": 0
13
- },
14
- "x-prompt": "What name would you like to use for the store?"
15
- },
16
- "path": {
17
- "type": "string",
18
- "format": "path",
19
- "description": "The path to create the store."
20
- },
21
- "spec": {
22
- "type": "boolean",
23
- "description": "Specifies if a spec file is generated.",
24
- "default": true
25
- },
26
- "flat": {
27
- "type": "boolean",
28
- "default": false,
29
- "description": "Flag to indicate if a dir is created."
30
- }
31
- },
32
- "required": ["name"]
33
- }
@@ -1,3 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- import { StoreSchema } from './store.schema';
3
- export declare function store(options: StoreSchema): Rule;
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.store = void 0;
4
- const schematics_1 = require("@angular-devkit/schematics");
5
- const properties_1 = require("../utils/common/properties");
6
- const normalize_options_1 = require("../utils/normalize-options");
7
- const generate_utils_1 = require("../utils/generate-utils");
8
- const path_1 = require("path");
9
- function store(options) {
10
- if ((0, properties_1.isEmpty)(options.name)) {
11
- throw new schematics_1.SchematicsException('Invalid options, "name" is required.');
12
- }
13
- const normalizedOptions = (0, normalize_options_1.normalizeBaseOptions)(options);
14
- const path = options.flat
15
- ? normalizedOptions.path
16
- : (0, path_1.join)(normalizedOptions.path, normalizedOptions.name);
17
- return (0, generate_utils_1.generateFiles)((0, schematics_1.url)('./files'), path, options, options.spec);
18
- }
19
- exports.store = store;
20
- //# sourceMappingURL=store.factory.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"store.factory.js","sourceRoot":"","sources":["../../../../../packages/store/schematics/src/store/store.factory.ts"],"names":[],"mappings":";;;AAAA,2DAA4E;AAE5E,2DAAqD;AACrD,kEAAkE;AAClE,4DAAwD;AACxD,+BAA4B;AAE5B,SAAgB,KAAK,CAAC,OAAoB;IACxC,IAAI,IAAA,oBAAO,EAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACzB,MAAM,IAAI,gCAAmB,CAAC,sCAAsC,CAAC,CAAC;KACvE;IAED,MAAM,iBAAiB,GAAG,IAAA,wCAAoB,EAAC,OAAO,CAAC,CAAC;IACxD,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI;QACvB,CAAC,CAAC,iBAAiB,CAAC,IAAI;QACxB,CAAC,CAAC,IAAA,WAAI,EAAC,iBAAiB,CAAC,IAAI,EAAE,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAEzD,OAAO,IAAA,8BAAa,EAAC,IAAA,gBAAG,EAAC,SAAS,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;AACpE,CAAC;AAXD,sBAWC"}
@@ -1,10 +0,0 @@
1
- export declare enum LIBRARIES {
2
- DEVTOOLS = "@ngxs/devtools-plugin",
3
- FORM = "@ngxs/form-plugin",
4
- HMR = "@ngxs/hmr-plugin",
5
- LOGGER = "@ngxs/logger-plugin",
6
- ROUTER = "@ngxs/router-plugin",
7
- STORAGE = "@ngxs/storage-plugin",
8
- STORE = "@ngxs/store",
9
- WEBSOCKET = "@ngxs/websocket-plugin"
10
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LIBRARIES = void 0;
4
- var LIBRARIES;
5
- (function (LIBRARIES) {
6
- LIBRARIES["DEVTOOLS"] = "@ngxs/devtools-plugin";
7
- LIBRARIES["FORM"] = "@ngxs/form-plugin";
8
- LIBRARIES["HMR"] = "@ngxs/hmr-plugin";
9
- LIBRARIES["LOGGER"] = "@ngxs/logger-plugin";
10
- LIBRARIES["ROUTER"] = "@ngxs/router-plugin";
11
- LIBRARIES["STORAGE"] = "@ngxs/storage-plugin";
12
- LIBRARIES["STORE"] = "@ngxs/store";
13
- LIBRARIES["WEBSOCKET"] = "@ngxs/websocket-plugin";
14
- })(LIBRARIES = exports.LIBRARIES || (exports.LIBRARIES = {}));
15
- //# sourceMappingURL=lib.config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lib.config.js","sourceRoot":"","sources":["../../../../../../packages/store/schematics/src/utils/common/lib.config.ts"],"names":[],"mappings":";;;AAAA,IAAY,SASX;AATD,WAAY,SAAS;IACnB,+CAAkC,CAAA;IAClC,uCAA0B,CAAA;IAC1B,qCAAwB,CAAA;IACxB,2CAA8B,CAAA;IAC9B,2CAA8B,CAAA;IAC9B,6CAAgC,CAAA;IAChC,kCAAqB,CAAA;IACrB,iDAAoC,CAAA;AACtC,CAAC,EATW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QASpB"}
@@ -1,3 +0,0 @@
1
- export declare const PACKAGE_JSON = "package.json";
2
- export declare const ANGULAR_JSON = "angular.json";
3
- export declare const TSCONFIG_SPEC_JSON = "src/tsconfig.spec.json";
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TSCONFIG_SPEC_JSON = exports.ANGULAR_JSON = exports.PACKAGE_JSON = void 0;
4
- exports.PACKAGE_JSON = 'package.json';
5
- exports.ANGULAR_JSON = 'angular.json';
6
- exports.TSCONFIG_SPEC_JSON = 'src/tsconfig.spec.json';
7
- //# sourceMappingURL=project-files.config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"project-files.config.js","sourceRoot":"","sources":["../../../../../../packages/store/schematics/src/utils/common/project-files.config.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG,cAAc,CAAC;AAC9B,QAAA,YAAY,GAAG,cAAc,CAAC;AAC9B,QAAA,kBAAkB,GAAG,wBAAwB,CAAC"}
@@ -1 +0,0 @@
1
- export declare function isEmpty(value: string | undefined): boolean;
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isEmpty = void 0;
4
- function isEmpty(value) {
5
- return typeof value !== 'undefined' && !value.trim().length;
6
- }
7
- exports.isEmpty = isEmpty;
8
- //# sourceMappingURL=properties.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../../../../packages/store/schematics/src/utils/common/properties.ts"],"names":[],"mappings":";;;AAAA,SAAgB,OAAO,CAAC,KAAyB;IAC/C,OAAO,OAAO,KAAK,KAAK,WAAW,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC;AAC9D,CAAC;AAFD,0BAEC"}
@@ -1,119 +0,0 @@
1
- import { Tree } from '@angular-devkit/schematics';
2
- export interface AppConfig {
3
- /**
4
- * Name of the app.
5
- */
6
- name?: string;
7
- /**
8
- * Directory where app files are placed.
9
- */
10
- appRoot?: string;
11
- /**
12
- * The root directory of the app.
13
- */
14
- root?: string;
15
- /**
16
- * The output directory for build results.
17
- */
18
- outDir?: string;
19
- /**
20
- * List of application assets.
21
- */
22
- assets?: (string | {
23
- /**
24
- * The pattern to match.
25
- */
26
- glob?: string;
27
- /**
28
- * The dir to search within.
29
- */
30
- input?: string;
31
- /**
32
- * The output path (relative to the outDir).
33
- */
34
- output?: string;
35
- })[];
36
- /**
37
- * URL where files will be deployed.
38
- */
39
- deployUrl?: string;
40
- /**
41
- * Base url for the application being built.
42
- */
43
- baseHref?: string;
44
- /**
45
- * The runtime platform of the app.
46
- */
47
- platform?: 'browser' | 'server';
48
- /**
49
- * The name of the start HTML file.
50
- */
51
- index?: string;
52
- /**
53
- * The name of the main entry-point file.
54
- */
55
- main?: string;
56
- /**
57
- * The name of the polyfills file.
58
- */
59
- polyfills?: string;
60
- /**
61
- * The name of the test entry-point file.
62
- */
63
- test?: string;
64
- /**
65
- * The name of the TypeScript configuration file.
66
- */
67
- tsconfig?: string;
68
- /**
69
- * The name of the TypeScript configuration file for unit tests.
70
- */
71
- testTsconfig?: string;
72
- /**
73
- * The prefix to apply to generated selectors.
74
- */
75
- prefix?: string;
76
- /**
77
- * Experimental support for a service worker from @angular/service-worker.
78
- */
79
- serviceWorker?: boolean;
80
- /**
81
- * Global styles to be included in the build.
82
- */
83
- styles?: (string | {
84
- input?: string;
85
- [name: string]: any;
86
- })[];
87
- /**
88
- * Options to pass to style preprocessors
89
- */
90
- stylePreprocessorOptions?: {
91
- /**
92
- * Paths to include. Paths will be resolved to project root.
93
- */
94
- includePaths?: string[];
95
- };
96
- /**
97
- * Global scripts to be included in the build.
98
- */
99
- scripts?: (string | {
100
- input: string;
101
- [name: string]: any;
102
- })[];
103
- /**
104
- * Source file for environment config.
105
- */
106
- environmentSource?: string;
107
- /**
108
- * Name and corresponding file for environment config.
109
- */
110
- environments?: {
111
- [name: string]: any;
112
- };
113
- appShell?: {
114
- app: string;
115
- route: string;
116
- };
117
- }
118
- export declare function getWorkspacePath(host: Tree): string | undefined;
119
- export declare function getWorkspace(host: Tree): any;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getWorkspace = exports.getWorkspacePath = void 0;
4
- const schematics_1 = require("@angular-devkit/schematics");
5
- function getWorkspacePath(host) {
6
- const possibleFiles = ['/angular.json', '/.angular.json', '/workspace.json'];
7
- const path = possibleFiles.find(path => host.exists(path));
8
- return path;
9
- }
10
- exports.getWorkspacePath = getWorkspacePath;
11
- function getWorkspace(host) {
12
- const path = getWorkspacePath(host);
13
- const configBuffer = path ? host.read(path) : null;
14
- if (configBuffer === null) {
15
- throw new schematics_1.SchematicsException(`Could not find (${path})`);
16
- }
17
- const config = configBuffer.toString();
18
- return JSON.parse(config);
19
- }
20
- exports.getWorkspace = getWorkspace;
21
- //# sourceMappingURL=config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../packages/store/schematics/src/utils/config.ts"],"names":[],"mappings":";;;AAAA,2DAAuE;AAkIvE,SAAgB,gBAAgB,CAAC,IAAU;IACzC,MAAM,aAAa,GAAG,CAAC,eAAe,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;IAC7E,MAAM,IAAI,GAAG,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;IAE3D,OAAO,IAAI,CAAC;AACd,CAAC;AALD,4CAKC;AAED,SAAgB,YAAY,CAAC,IAAU;IACrC,MAAM,IAAI,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;IACpC,MAAM,YAAY,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACnD,IAAI,YAAY,KAAK,IAAI,EAAE;QACzB,MAAM,IAAI,gCAAmB,CAAC,mBAAmB,IAAI,GAAG,CAAC,CAAC;KAC3D;IACD,MAAM,MAAM,GAAG,YAAY,CAAC,QAAQ,EAAE,CAAC;IAEvC,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AAC5B,CAAC;AATD,oCASC"}
@@ -1,4 +0,0 @@
1
- import { Rule, Source } from '@angular-devkit/schematics';
2
- export declare function generateFiles(srcFolder: Source, target: string, substitutions: {
3
- [k: string]: any;
4
- }, generateSpecs?: boolean): Rule;
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generateFiles = void 0;
4
- const core_1 = require("@angular-devkit/core");
5
- const schematics_1 = require("@angular-devkit/schematics");
6
- function generateFiles(srcFolder, target, substitutions, generateSpecs) {
7
- return (0, schematics_1.mergeWith)((0, schematics_1.apply)(srcFolder, [
8
- generateSpecs ? (0, schematics_1.noop)() : (0, schematics_1.filter)(path => !path.includes('.spec')),
9
- (0, schematics_1.template)(Object.assign(Object.assign({ template: '' }, core_1.strings), substitutions)),
10
- (0, schematics_1.move)(target)
11
- ]));
12
- }
13
- exports.generateFiles = generateFiles;
14
- //# sourceMappingURL=generate-utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generate-utils.js","sourceRoot":"","sources":["../../../../../packages/store/schematics/src/utils/generate-utils.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,2DASoC;AAEpC,SAAgB,aAAa,CAC3B,SAAiB,EACjB,MAAc,EACd,aAEC,EACD,aAAuB;IAEvB,OAAO,IAAA,sBAAS,EACd,IAAA,kBAAK,EAAC,SAAS,EAAE;QACf,aAAa,CAAC,CAAC,CAAC,IAAA,iBAAI,GAAE,CAAC,CAAC,CAAC,IAAA,mBAAM,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAChE,IAAA,qBAAQ,gCACN,QAAQ,EAAE,EAAE,IACT,cAAO,GACP,aAAa,EAChB;QACF,IAAA,iBAAI,EAAC,MAAM,CAAC;KACb,CAAC,CACH,CAAC;AACJ,CAAC;AAnBD,sCAmBC"}
@@ -1,7 +0,0 @@
1
- import { Tree } from '@angular-devkit/schematics';
2
- export interface PackageToJsonInterface {
3
- host: Tree;
4
- type: string;
5
- pkg: string;
6
- version: string;
7
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=package.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"package.interface.js","sourceRoot":"","sources":["../../../../../../packages/store/schematics/src/utils/interfaces/package.interface.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- The ng-utils folder represents a set of files copied from the @schematics/angular package's latest version. These utilities can be removed once @ngxs supports @angular >=16 as the minimum required version.