@ng-doc/add 15.0.0-beta.19 → 15.0.0-beta.21

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": "@ng-doc/add",
3
- "version": "15.0.0-beta.19",
3
+ "version": "15.0.0-beta.21",
4
4
  "type": "commonjs",
5
5
  "schematics": "./schematics/collection.json",
6
6
  "ng-add": {
@@ -1,4 +1,9 @@
1
- export declare const NG_DOC_ASSETS: Array<{
1
+ import { Schema } from '../schema';
2
+ /**
3
+ *
4
+ * @param options
5
+ */
6
+ export declare function getNgDocAssets(options: Schema): Array<{
2
7
  output: string;
3
8
  input: string;
4
9
  glob: string;
@@ -1,21 +1,28 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NG_DOC_ASSETS = void 0;
4
- exports.NG_DOC_ASSETS = [
5
- {
6
- glob: '**/*',
7
- input: 'node_modules/@ng-doc/ui-kit/assets',
8
- output: 'assets',
9
- },
10
- {
11
- glob: '**/*',
12
- input: 'node_modules/@ng-doc/app/assets',
13
- output: 'assets',
14
- },
15
- {
16
- glob: '**/*',
17
- input: 'node_modules/@ng-doc/builder/generated/assets',
18
- output: 'assets',
19
- },
20
- ];
3
+ exports.getNgDocAssets = void 0;
4
+ /**
5
+ *
6
+ * @param options
7
+ */
8
+ function getNgDocAssets(options) {
9
+ return [
10
+ {
11
+ glob: '**/*',
12
+ input: 'node_modules/@ng-doc/app/assets',
13
+ output: 'assets/ng-doc/app',
14
+ },
15
+ {
16
+ glob: '**/*',
17
+ input: 'node_modules/@ng-doc/ui-kit/assets',
18
+ output: 'assets/ng-doc/ui-kit',
19
+ },
20
+ {
21
+ glob: '**/*',
22
+ input: `.ng-doc/${options.project}/assets`,
23
+ output: 'assets/ng-doc',
24
+ },
25
+ ];
26
+ }
27
+ exports.getNgDocAssets = getNgDocAssets;
21
28
  //# sourceMappingURL=assets.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"assets.js","sourceRoot":"","sources":["../../../../../../libs/add/schematics/ng-add/constants/assets.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAyD;IAClF;QACC,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,oCAAoC;QAC3C,MAAM,EAAE,QAAQ;KAChB;IACD;QACC,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,iCAAiC;QACxC,MAAM,EAAE,QAAQ;KAChB;IACD;QACC,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,+CAA+C;QACtD,MAAM,EAAE,QAAQ;KAChB;CACD,CAAC"}
1
+ {"version":3,"file":"assets.js","sourceRoot":"","sources":["../../../../../../libs/add/schematics/ng-add/constants/assets.ts"],"names":[],"mappings":";;;AAEA;;;GAGG;AACH,SAAgB,cAAc,CAAC,OAAe;IAC7C,OAAO;QACN;YACC,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,iCAAiC;YACxC,MAAM,EAAE,mBAAmB;SAC3B;QACD;YACC,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,oCAAoC;YAC3C,MAAM,EAAE,sBAAsB;SAC9B;QACD;YACC,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,WAAW,OAAO,CAAC,OAAO,SAAS;YAC1C,MAAM,EAAE,eAAe;SACvB;KACD,CAAC;AACH,CAAC;AAlBD,wCAkBC"}
@@ -22,10 +22,10 @@ function addAssets(options) {
22
22
  const targetOptions = (0, schematics_1.getProjectTargetOptions)(project, 'build');
23
23
  const assets = targetOptions['assets'];
24
24
  if (!assets) {
25
- targetOptions['assets'] = assets_1.NG_DOC_ASSETS;
25
+ targetOptions['assets'] = (0, assets_1.getNgDocAssets)(options);
26
26
  return;
27
27
  }
28
- targetOptions['assets'] = Array.from(new Set([...assets_1.NG_DOC_ASSETS, ...assets]));
28
+ targetOptions['assets'] = Array.from(new Set([...(0, assets_1.getNgDocAssets)(options), ...assets]));
29
29
  });
30
30
  };
31
31
  }
@@ -1 +1 @@
1
- {"version":3,"file":"add-assets.js","sourceRoot":"","sources":["../../../../../../libs/add/schematics/ng-add/steps/add-assets.ts"],"names":[],"mappings":";;;AAAA,wDAAgE;AAGhE,qEAA8G;AAE9G,gDAAkD;AAElD,sDAAgD;AAEhD;;;;GAIG;AACH,SAAgB,SAAS,CAAC,OAAe;IACxC,OAAO,KAAK,EAAE,IAAU,EAAE,OAAyB,EAAE,EAAE;QACtD,OAAO,IAAA,2BAAe,EAAC,CAAC,SAA8B,EAAE,EAAE;YACzD,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC;YAEvD,MAAM,OAAO,GAAkC,IAAA,wBAAU,EAAC,OAAO,EAAE,SAAS,CAAC,CAAC;YAE9E,IAAI,CAAC,OAAO,EAAE;gBACb,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,sCAAsC,CAAC,CAAC;gBAC5D,OAAO;aACP;YAED,MAAM,aAAa,GAA8B,IAAA,oCAAuB,EAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YAE3F,MAAM,MAAM,GAA0B,aAAa,CAAC,QAAQ,CAA0B,CAAC;YAEvF,IAAI,CAAC,MAAM,EAAE;gBACZ,aAAa,CAAC,QAAQ,CAAC,GAAG,sBAAa,CAAC;gBACxC,OAAO;aACP;YAED,aAAa,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,sBAAa,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;QAC9E,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC;AACH,CAAC;AAxBD,8BAwBC"}
1
+ {"version":3,"file":"add-assets.js","sourceRoot":"","sources":["../../../../../../libs/add/schematics/ng-add/steps/add-assets.ts"],"names":[],"mappings":";;;AAAA,wDAAgE;AAGhE,qEAA8G;AAE9G,gDAAmD;AAEnD,sDAAgD;AAEhD;;;;GAIG;AACH,SAAgB,SAAS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