ui-lib-starter 0.0.5 → 0.0.6

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-lib-starter",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "A blank schematics",
5
5
  "keywords": [
6
6
  "schematics"
@@ -5,16 +5,12 @@ const schematics_1 = require("@angular-devkit/schematics");
5
5
  // You don't have to export the function as default. You can also have more than one rule factory
6
6
  // per file.
7
7
  function cvaComponent(options) {
8
- return () => {
8
+ return (_tree, _context) => {
9
9
  const templateSource = (0, schematics_1.apply)((0, schematics_1.url)('./files'), [
10
- (0, schematics_1.applyTemplates)({
11
- classify: schematics_1.strings.classify,
12
- dasherize: schematics_1.strings.dasherize,
13
- name: options.name,
14
- }),
10
+ (0, schematics_1.applyTemplates)(Object.assign(Object.assign({}, schematics_1.strings), options)),
15
11
  (0, schematics_1.move)(`/${options.path}/${schematics_1.strings.dasherize(options.name)}`),
16
12
  ]);
17
- return (0, schematics_1.chain)([(0, schematics_1.mergeWith)(templateSource)]);
13
+ return (0, schematics_1.mergeWith)(templateSource);
18
14
  };
19
15
  }
20
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../projects/ui-lib/schematics/cva-component/index.ts"],"names":[],"mappings":";;AAcA,oCAaC;AA3BD,2DASoC;AAGpC,iGAAiG;AACjG,YAAY;AACZ,SAAgB,YAAY,CAAC,OAA2B;IACtD,OAAO,GAAG,EAAE;QACV,MAAM,cAAc,GAAG,IAAA,kBAAK,EAAC,IAAA,gBAAG,EAAC,SAAS,CAAC,EAAE;YAC3C,IAAA,2BAAc,EAAC;gBACb,QAAQ,EAAE,oBAAO,CAAC,QAAQ;gBAC1B,SAAS,EAAE,oBAAO,CAAC,SAAS;gBAC5B,IAAI,EAAE,OAAO,CAAC,IAAI;aACnB,CAAC;YACF,IAAA,iBAAI,EAAC,IAAI,OAAO,CAAC,IAAI,IAAI,oBAAO,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;SAC5D,CAAC,CAAC;QAEH,OAAO,IAAA,kBAAK,EAAC,CAAC,IAAA,sBAAS,EAAC,cAAc,CAAC,CAAC,CAAC,CAAC;IAC5C,CAAC,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../projects/ui-lib/schematics/cva-component/index.ts"],"names":[],"mappings":";;AAaA,oCAYC;AAzBD,2DAQoC;AAGpC,iGAAiG;AACjG,YAAY;AACZ,SAAgB,YAAY,CAAC,OAA2B;IACtD,OAAO,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE;QACzB,MAAM,cAAc,GAAG,IAAA,kBAAK,EAAC,IAAA,gBAAG,EAAC,SAAS,CAAC,EAAE;YAC3C,IAAA,2BAAc,kCACT,oBAAO,GACP,OAAO,EACV;YACF,IAAA,iBAAI,EAAC,IAAI,OAAO,CAAC,IAAI,IAAI,oBAAO,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;SAC5D,CAAC,CAAC;QAEH,OAAO,IAAA,sBAAS,EAAC,cAAc,CAAC,CAAC;IACnC,CAAC,CAAC;AACJ,CAAC"}