ng-packagr 5.2.0 → 5.3.0
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/CHANGELOG.md +97 -1
- package/README.md +0 -18
- package/lib/ng-v5/entry-point/resources/stylesheet-processor.js +4 -4
- package/lib/ng-v5/entry-point/resources/stylesheet-processor.js.map +1 -1
- package/lib/ng-v5/entry-point/ts/compile-ngc.transform.js +16 -18
- package/lib/ng-v5/entry-point/ts/compile-ngc.transform.js.map +1 -1
- package/lib/ng-v5/packagr.js +1 -1
- package/lib/ng-v5/packagr.js.map +1 -1
- package/lib/util/log.js +3 -1
- package/lib/util/log.js.map +1 -1
- package/package.json +6 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,37 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Changelog
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [5.3.0](https://github.com/ng-packagr/ng-packagr/compare/v5.2.0...v5.3.0) (2019-06-05)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* add quotes to less include-path ([af6816b](https://github.com/ng-packagr/ng-packagr/commit/af6816b))
|
|
11
|
+
* don't write stacktraces when there are errors ([42692b0](https://github.com/ng-packagr/ng-packagr/commit/42692b0))
|
|
12
|
+
* remove opencollective postinstall scripts ([123f39a](https://github.com/ng-packagr/ng-packagr/commit/123f39a))
|
|
13
|
+
* update @angular/cdk to version ~8.0.0 ([#1301](https://github.com/ng-packagr/ng-packagr/issues/1301)) ([f7a462a](https://github.com/ng-packagr/ng-packagr/commit/f7a462a))
|
|
14
|
+
* update terser to version ^4.0.0 ([dd28818](https://github.com/ng-packagr/ng-packagr/commit/dd28818))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Build System
|
|
18
|
+
|
|
19
|
+
* introduce support for minor beta releases ([a73a600](https://github.com/ng-packagr/ng-packagr/commit/a73a600))
|
|
20
|
+
* update @commitlint/cli to version ^8.0.0 ([5856506](https://github.com/ng-packagr/ng-packagr/commit/5856506))
|
|
21
|
+
* update angular and typescript ([c72d351](https://github.com/ng-packagr/ng-packagr/commit/c72d351))
|
|
22
|
+
* update codelyzer to version ~5.1.0 ([d612ca3](https://github.com/ng-packagr/ng-packagr/commit/d612ca3))
|
|
23
|
+
* update husky to version ^2.0.0 ([5398fe7](https://github.com/ng-packagr/ng-packagr/commit/5398fe7))
|
|
24
|
+
* update standard-version to version ^6.0.0 ([6c0c039](https://github.com/ng-packagr/ng-packagr/commit/6c0c039))
|
|
25
|
+
* update ts-node to version ~8.2.0 ([3e730fc](https://github.com/ng-packagr/ng-packagr/commit/3e730fc))
|
|
26
|
+
* update tslint to version ~5.17.0 ([58d4217](https://github.com/ng-packagr/ng-packagr/commit/58d4217))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Features
|
|
30
|
+
|
|
31
|
+
* support inline javascript in less ([#1300](https://github.com/ng-packagr/ng-packagr/issues/1300)) ([e0b4136](https://github.com/ng-packagr/ng-packagr/commit/e0b4136)), closes [#1298](https://github.com/ng-packagr/ng-packagr/issues/1298)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
5
35
|
# [5.2.0](https://github.com/ng-packagr/ng-packagr/compare/v5.1.0...v5.2.0) (2019-05-17)
|
|
6
36
|
|
|
7
37
|
|
|
@@ -20,6 +50,72 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
20
50
|
* update several rollup dependencies ([0772371](https://github.com/ng-packagr/ng-packagr/commit/0772371))
|
|
21
51
|
|
|
22
52
|
|
|
53
|
+
# [5.1.0](https://github.com/ng-packagr/ng-packagr/compare/v5.0.1...v5.1.0) (2019-04-15)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### Bug Fixes
|
|
57
|
+
|
|
58
|
+
* emit ts option diagnostic ([ed960b6](https://github.com/ng-packagr/ng-packagr/commit/ed960b6))
|
|
59
|
+
* error out gracefully when `package.json` is not found ([902dea2](https://github.com/ng-packagr/ng-packagr/commit/902dea2)), closes [#1255](https://github.com/ng-packagr/ng-packagr/issues/1255)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### Features
|
|
63
|
+
|
|
64
|
+
* add support for TypeScript 3.4 ([828065c](https://github.com/ng-packagr/ng-packagr/commit/828065c))
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
## [5.0.1](https://github.com/ng-packagr/ng-packagr/compare/v5.0.0...v5.0.1) (2019-03-27)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### Bug Fixes
|
|
71
|
+
|
|
72
|
+
* version command should not require tsickle ([6ac0dcf](https://github.com/ng-packagr/ng-packagr/commit/6ac0dcf))
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
# [5.0.0](https://github.com/ng-packagr/ng-packagr/compare/v4.7.1...v5.0.0) (2019-03-27)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
### Bug Fixes
|
|
79
|
+
|
|
80
|
+
* update core-js to version ^3.0.0 ([b985c49](https://github.com/ng-packagr/ng-packagr/commit/b985c49))
|
|
81
|
+
* update read-pkg-up to version ^5.0.0 ([cb172fa](https://github.com/ng-packagr/ng-packagr/commit/cb172fa))
|
|
82
|
+
* update rollup-plugin-json to version ^4.0.0 ([8d4d4a7](https://github.com/ng-packagr/ng-packagr/commit/8d4d4a7))
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
### Features
|
|
86
|
+
|
|
87
|
+
* add node-sass support with sass as default ([43a0be6](https://github.com/ng-packagr/ng-packagr/commit/43a0be6))
|
|
88
|
+
* add support for Angular 8 and TypeScript 3.3 ([dfe5a27](https://github.com/ng-packagr/ng-packagr/commit/dfe5a27))
|
|
89
|
+
* remove tsickle from direct peerDepedencies ([1555cf6](https://github.com/ng-packagr/ng-packagr/commit/1555cf6)), closes [#1202](https://github.com/ng-packagr/ng-packagr/issues/1202)
|
|
90
|
+
* replace `uglify-js` with `terser` ([a18d7ad](https://github.com/ng-packagr/ng-packagr/commit/a18d7ad))
|
|
91
|
+
* update rollup to version 1.6+ ([82f97e4](https://github.com/ng-packagr/ng-packagr/commit/82f97e4)), closes [#1227](https://github.com/ng-packagr/ng-packagr/issues/1227)
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
### Performance Improvements
|
|
95
|
+
|
|
96
|
+
* generate umd bundle directly from fesm5 instead of esm5 ([b25731b](https://github.com/ng-packagr/ng-packagr/commit/b25731b))
|
|
97
|
+
* reduce the amount of dependees that are removed ([408541e](https://github.com/ng-packagr/ng-packagr/commit/408541e))
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
### BREAKING CHANGES
|
|
101
|
+
|
|
102
|
+
* Users outside of Google don't usually need closure annotations hence `annotateForClosureCompiler` is turned off by default. In case users want to emit closure compatible code, they need to install `tsickle` and enable opt it this feature.
|
|
103
|
+
|
|
104
|
+
* We no longer use node-sass by default, instead we use sass (dart-sass).
|
|
105
|
+
|
|
106
|
+
While in most cases this should not have an impact the generated code, dart sass has some differences from Ruby Sass. See https://github.com/sass/dart-sass#behavioral-differences-from-ruby-sass for more details
|
|
107
|
+
|
|
108
|
+
If you wish to use node-sass instead of sass you need to install node-sass as a dev dependency.
|
|
109
|
+
|
|
110
|
+
npm users
|
|
111
|
+
```
|
|
112
|
+
npm install node-sass --save-dev
|
|
113
|
+
```
|
|
114
|
+
yarn users
|
|
115
|
+
```
|
|
116
|
+
yarn add node-sass --dev
|
|
117
|
+
```
|
|
118
|
+
|
|
23
119
|
|
|
24
120
|
<a name="4.7.1"></a>
|
|
25
121
|
## [4.7.1](https://github.com/ng-packagr/ng-packagr/compare/v4.7.0...v4.7.1) (2019-02-15)
|
package/README.md
CHANGED
|
@@ -8,8 +8,6 @@
|
|
|
8
8
|
[](https://conventionalcommits.org)
|
|
9
9
|
[](https://circleci.com/gh/ng-packagr/ng-packagr)
|
|
10
10
|
|
|
11
|
-
[](#backers)
|
|
12
|
-
[](#sponsors)
|
|
13
11
|
[](https://github.com/ng-packagr/ng-packagr)
|
|
14
12
|
[](https://github.com/ng-packagr/ng-packagr)
|
|
15
13
|
[](https://www.npmjs.com/package/ng-packagr)
|
|
@@ -23,22 +21,6 @@ This project exists thanks to all the people who contribute. [[Contribute](CONTR
|
|
|
23
21
|
|
|
24
22
|
<a href="https://github.com/ng-packagr/ng-packagr/graphs/contributors"><img src="https://opencollective.com/ng-packagr/contributors.svg?width=890&button=false" /></a>
|
|
25
23
|
|
|
26
|
-
### Backers
|
|
27
|
-
|
|
28
|
-
Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/ng-packagr#backer)]
|
|
29
|
-
|
|
30
|
-
<a href="https://opencollective.com/ng-packagr#backers" target="_blank"><img src="https://opencollective.com/ng-packagr/backers.svg?width=890"></a>
|
|
31
|
-
|
|
32
|
-
### Sponsors
|
|
33
|
-
|
|
34
|
-
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/ng-packagr#sponsor)]
|
|
35
|
-
|
|
36
|
-
<a href="https://opencollective.com/ng-packagr/sponsor/0/website" target="_blank"><img src="https://opencollective.com/ng-packagr/sponsor/0/avatar.svg"></a>
|
|
37
|
-
|
|
38
|
-
<a href="https://opencollective.com/ng-packagr/sponsor/1/website" target="_blank"><img src="https://opencollective.com/ng-packagr/sponsor/1/avatar.svg"></a>
|
|
39
|
-
|
|
40
|
-
<a href="https://opencollective.com/ng-packagr/sponsor/2/website" target="_blank"><img src="https://opencollective.com/ng-packagr/sponsor/2/avatar.svg"></a>
|
|
41
|
-
|
|
42
24
|
## Installation
|
|
43
25
|
|
|
44
26
|
```bash
|
|
@@ -64,9 +64,9 @@ class StylesheetProcessor {
|
|
|
64
64
|
.css.toString();
|
|
65
65
|
case '.less':
|
|
66
66
|
// this is the only way I found to make LESS sync
|
|
67
|
-
let cmd = `node "${require.resolve('less/bin/lessc')}" "${filePath}" --less-plugin-npm-import="prefix=~"`;
|
|
67
|
+
let cmd = `node "${require.resolve('less/bin/lessc')}" "${filePath}" --less-plugin-npm-import="prefix=~" --js`;
|
|
68
68
|
if (this.styleIncludePaths.length) {
|
|
69
|
-
cmd += ` --include-path
|
|
69
|
+
cmd += ` --include-path="${this.styleIncludePaths.join(':')}"`;
|
|
70
70
|
}
|
|
71
71
|
return child_process_1.execSync(cmd).toString();
|
|
72
72
|
case '.styl':
|
|
@@ -87,14 +87,14 @@ class StylesheetProcessor {
|
|
|
87
87
|
}
|
|
88
88
|
createPostCssProcessor(basePath, cssUrl) {
|
|
89
89
|
log.debug(`determine browserslist for ${basePath}`);
|
|
90
|
-
const
|
|
90
|
+
const overrideBrowserslist = browserslist(undefined, { path: basePath });
|
|
91
91
|
const postCssPlugins = [];
|
|
92
92
|
if (cssUrl !== shared_1.CssUrl.none) {
|
|
93
93
|
log.debug(`postcssUrl: ${cssUrl}`);
|
|
94
94
|
postCssPlugins.push(postcssUrl({ url: cssUrl }));
|
|
95
95
|
}
|
|
96
96
|
// this is important to be executed post running `postcssUrl`
|
|
97
|
-
postCssPlugins.push(autoprefixer({
|
|
97
|
+
postCssPlugins.push(autoprefixer({ overrideBrowserslist, grid: true }), postcss_clean_1.default({
|
|
98
98
|
level: {
|
|
99
99
|
2: {
|
|
100
100
|
specialComments: false
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stylesheet-processor.js","sourceRoot":"","sources":["../../../../../src/lib/ng-v5/entry-point/resources/stylesheet-processor.ts"],"names":[],"mappings":";;AAAA,6BAA6B;AAC7B,yCAAyC;AACzC,8DAA2D;AAC3D,iDAAyC;AAEzC,YAAY;AACZ,6CAA6C;AAC7C,6CAA6C;AAC7C,kEAAkE;AAClE,mCAAmC;AACnC,0CAA0C;AAC1C,mDAA2C;AAC3C,iCAAiC;AAEjC;;;;;;;;IAQI;AACJ,IAAI,YAA6B,CAAC;AAClC,IAAI;IACF,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,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AAQ;oBACd,IAAI,EAAE,OAAO;oBACb,cAAc,EAAE,OAAO,KAAK,GAAG;oBAC/B,QAAQ,EAAE,qBAAqB;oBAC/B,YAAY,EAAE,IAAI,CAAC,iBAAiB;iBACrC,CAAC;qBACD,GAAG,CAAC,QAAQ,EAAE,CAAC;YAEpB,KAAK,OAAO;gBACV,iDAAiD;gBACjD,IAAI,GAAG,GAAG,SAAS,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"stylesheet-processor.js","sourceRoot":"","sources":["../../../../../src/lib/ng-v5/entry-point/resources/stylesheet-processor.ts"],"names":[],"mappings":";;AAAA,6BAA6B;AAC7B,yCAAyC;AACzC,8DAA2D;AAC3D,iDAAyC;AAEzC,YAAY;AACZ,6CAA6C;AAC7C,6CAA6C;AAC7C,kEAAkE;AAClE,mCAAmC;AACnC,0CAA0C;AAC1C,mDAA2C;AAC3C,iCAAiC;AAEjC;;;;;;;;IAQI;AACJ,IAAI,YAA6B,CAAC;AAClC,IAAI;IACF,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,6CAA6C;CACnF;AAAC,WAAM;IACN,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAChC;AAED,MAAa,mBAAmB;IAG9B,YAAqB,QAAgB,EAAW,MAAe,EAAW,iBAA4B;QAAjF,aAAQ,GAAR,QAAQ,CAAQ;QAAW,WAAM,GAAN,MAAM,CAAS;QAAW,sBAAiB,GAAjB,iBAAiB,CAAW;QACpG,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,sBAAsB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IACxE,CAAC;IAED,OAAO,CAAC,QAAgB,EAAE,OAAe;QACvC,mDAAmD;QACnD,MAAM,WAAW,GAAW,IAAI,CAAC,kBAAkB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAEvE,6CAA6C;QAC7C,MAAM,MAAM,GAAG,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ACjC,CAAC;CACF;AA/FD,kDA+FC","sourcesContent":["import * as path from 'path';\nimport * as log from '../../../util/log';\nimport { CssUrl } from '../../../ng-package-format/shared';\nimport { execSync } from 'child_process';\n\n// CSS Tools\nimport * as autoprefixer from 'autoprefixer';\nimport * as browserslist from 'browserslist';\nimport * as nodeSassTildeImporter from 'node-sass-tilde-importer';\nimport * as postcss from 'postcss';\nimport * as postcssUrl from 'postcss-url';\nimport postcssClean from './postcss-clean';\nimport * as stylus from 'stylus';\n\n/*\n * Please be aware of the few differences in behaviour https://github.com/sass/dart-sass/blob/master/README.md#behavioral-differences-from-ruby-sass\n * By default `npm install` will install sass.\n * To use node-sass you need to use:\n * Npm:\n * `npm install node-sass --save-dev`\n * Yarn:\n * `yarn add node-sass --dev`\n */\nlet sassComplier: any | undefined;\ntry {\n sassComplier = require('node-sass'); // Check if node-sass is explicitly included.\n} catch {\n sassComplier = require('sass');\n}\n\nexport class StylesheetProcessor {\n private postCssProcessor: postcss.Processor;\n\n constructor(readonly basePath: string, readonly cssUrl?: CssUrl, readonly styleIncludePaths?: string[]) {\n this.postCssProcessor = this.createPostCssProcessor(basePath, cssUrl);\n }\n\n process(filePath: string, content: string) {\n // Render pre-processor language (sass, styl, less)\n const renderedCss: string = this.renderPreProcessor(filePath, content);\n\n // Render postcss (autoprefixing and friends)\n const result = this.postCssProcessor.process(renderedCss, {\n from: filePath,\n to: filePath.replace(path.extname(filePath), '.css')\n });\n\n // Log warnings from postcss\n result.warnings().forEach(msg => log.warn(msg.toString()));\n\n return result.css;\n }\n\n private renderPreProcessor(filePath: string, content: string): string {\n const ext = path.extname(filePath);\n\n log.debug(`rendering ${ext} from ${filePath}`);\n\n switch (ext) {\n case '.sass':\n case '.scss':\n return sassComplier\n .renderSync({\n file: filePath,\n data: content,\n indentedSyntax: '.sass' === ext,\n importer: nodeSassTildeImporter,\n includePaths: this.styleIncludePaths\n })\n .css.toString();\n\n case '.less':\n // this is the only way I found to make LESS sync\n let cmd = `node \"${require.resolve('less/bin/lessc')}\" \"${filePath}\" --less-plugin-npm-import=\"prefix=~\" --js`;\n if (this.styleIncludePaths.length) {\n cmd += ` --include-path=\"${this.styleIncludePaths.join(':')}\"`;\n }\n\n return execSync(cmd).toString();\n\n case '.styl':\n case '.stylus':\n return (\n stylus(content)\n // add paths for resolve\n .set('paths', [this.basePath, '.', ...this.styleIncludePaths, 'node_modules'])\n // add support for resolving plugins from node_modules\n .set('filename', filePath)\n // turn on url resolver in stylus, same as flag --resolve-url\n .set('resolve url', true)\n .define('url', stylus.resolver(undefined))\n .render()\n );\n\n case '.css':\n default:\n return content;\n }\n }\n\n private createPostCssProcessor(basePath: string, cssUrl?: CssUrl): postcss.Processor {\n log.debug(`determine browserslist for ${basePath}`);\n const overrideBrowserslist = browserslist(undefined, { path: basePath });\n\n const postCssPlugins = [];\n\n if (cssUrl !== CssUrl.none) {\n log.debug(`postcssUrl: ${cssUrl}`);\n postCssPlugins.push(postcssUrl({ url: cssUrl }));\n }\n\n // this is important to be executed post running `postcssUrl`\n postCssPlugins.push(\n autoprefixer({ overrideBrowserslist, grid: true }),\n postcssClean({\n level: {\n 2: {\n specialComments: false\n }\n }\n })\n );\n\n return postcss(postCssPlugins);\n }\n}\n"]}
|
|
@@ -27,24 +27,22 @@ exports.compileNgcTransform = transform_1.transformFromPromise((graph) => __awai
|
|
|
27
27
|
const { moduleResolutionCache } = entryPoint.cache;
|
|
28
28
|
const { basePath, cssUrl, styleIncludePaths } = entryPoint.data.entryPoint;
|
|
29
29
|
const stylesheetProcessor = new stylesheet_processor_1.StylesheetProcessor(basePath, cssUrl, styleIncludePaths);
|
|
30
|
-
yield
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
})
|
|
47
|
-
]);
|
|
30
|
+
yield compile_source_files_1.compileSourceFiles(graph, entryPoint, tsConfig, moduleResolutionCache, stylesheetProcessor, {
|
|
31
|
+
outDir: path.dirname(esm2015),
|
|
32
|
+
declaration: true,
|
|
33
|
+
target: ts.ScriptTarget.ES2015
|
|
34
|
+
}, path.dirname(declarations));
|
|
35
|
+
yield compile_source_files_1.compileSourceFiles(graph, entryPoint, tsConfig, moduleResolutionCache, stylesheetProcessor, {
|
|
36
|
+
outDir: path.dirname(esm5),
|
|
37
|
+
target: ts.ScriptTarget.ES5,
|
|
38
|
+
downlevelIteration: true,
|
|
39
|
+
// the options are here, to improve the build time
|
|
40
|
+
declaration: false,
|
|
41
|
+
declarationDir: undefined,
|
|
42
|
+
skipMetadataEmit: true,
|
|
43
|
+
skipTemplateCodegen: true,
|
|
44
|
+
strictMetadataEmit: false
|
|
45
|
+
});
|
|
48
46
|
return graph;
|
|
49
47
|
}));
|
|
50
48
|
//# sourceMappingURL=compile-ngc.transform.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compile-ngc.transform.js","sourceRoot":"","sources":["../../../../../src/lib/ng-v5/entry-point/ts/compile-ngc.transform.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,6BAA6B;AAC7B,iCAAiC;AACjC,wDAA2E;AAC3E,4EAAuE;AACvE,mDAAoE;AACpE,yCAAyC;AACzC,uCAAmF;AACnF,4EAAwE;AAE3D,QAAA,mBAAmB,GAAc,gCAAoB,CAAC,CAAM,KAAK,EAAC,EAAE;IAC/E,GAAG,CAAC,IAAI,CAAC,0CAA0C,CAAC,CAAC;IACrD,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,8BAAsB,EAAE,CAAmB,CAAC;IAC1E,MAAM,WAAW,GAAG,KAAK,CAAC,MAAM,CAAC,oBAAY,CAAqB,CAAC;IACnE,sCAAsC;IACtC,MAAM,QAAQ,GAAG,uCAA4B,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAE,WAAW,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iBAAiB,EAAE,GAAG,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC;IAC3E,MAAM,mBAAmB,GAAG,IAAI,0CAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,iBAAiB,CAAC,CAAC;IAEzF,MAAM,yCAAkB,CACtB,KAAK,EACL,UAAU,EACV,QAAQ,EACR,qBAAqB,EACrB,mBAAmB,EACnB;QACE,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;QAC7B,WAAW,EAAE,IAAI;QACjB,MAAM,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM;KAC/B,EACD,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAC3B,CAAC;IAEF,MAAM,yCAAkB,CAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,qBAAqB,EAAE,mBAAmB,EAAE;QAChG,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;QAC1B,MAAM,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG;QAC3B,kBAAkB,EAAE,IAAI;QACxB,kDAAkD;QAClD,WAAW,EAAE,KAAK;QAClB,cAAc,EAAE,SAAS;QACzB,gBAAgB,EAAE,IAAI;QACtB,mBAAmB,EAAE,IAAI;QACzB,kBAAkB,EAAE,KAAK;KAC1B,CAAC,CAAC;IAEH,OAAO,KAAK,CAAC;AACf,CAAC,CAAA,CAAC,CAAC","sourcesContent":["import * as path from 'path';\nimport * as ts from 'typescript';\nimport { Transform, transformFromPromise } from '../../../brocc/transform';\nimport { compileSourceFiles } from '../../../ngc/compile-source-files';\nimport { setDependenciesTsConfigPaths } from '../../../ts/tsconfig';\nimport * as log from '../../../util/log';\nimport { isEntryPointInProgress, EntryPointNode, isEntryPoint } from '../../nodes';\nimport { StylesheetProcessor } from '../resources/stylesheet-processor';\n\nexport const compileNgcTransform: Transform = transformFromPromise(async graph => {\n log.info(`Compiling TypeScript sources through ngc`);\n const entryPoint = graph.find(isEntryPointInProgress()) as EntryPointNode;\n const entryPoints = graph.filter(isEntryPoint) as EntryPointNode[];\n // Add paths mappings for dependencies\n const tsConfig = setDependenciesTsConfigPaths(entryPoint.data.tsConfig, entryPoints);\n\n // Compile TypeScript sources\n const { esm2015, esm5, declarations } = entryPoint.data.destinationFiles;\n const { moduleResolutionCache } = entryPoint.cache;\n const { basePath, cssUrl, styleIncludePaths } = entryPoint.data.entryPoint;\n const stylesheetProcessor = new StylesheetProcessor(basePath, cssUrl, styleIncludePaths);\n\n await compileSourceFiles(\n graph,\n entryPoint,\n tsConfig,\n moduleResolutionCache,\n stylesheetProcessor,\n {\n outDir: path.dirname(esm2015),\n declaration: true,\n target: ts.ScriptTarget.ES2015\n },\n path.dirname(declarations)\n );\n\n await compileSourceFiles(graph, entryPoint, tsConfig, moduleResolutionCache, stylesheetProcessor, {\n outDir: path.dirname(esm5),\n target: ts.ScriptTarget.ES5,\n downlevelIteration: true,\n // the options are here, to improve the build time\n declaration: false,\n declarationDir: undefined,\n skipMetadataEmit: true,\n skipTemplateCodegen: true,\n strictMetadataEmit: false\n });\n\n return graph;\n});\n"]}
|
package/lib/ng-v5/packagr.js
CHANGED
|
@@ -101,7 +101,7 @@ class NgPackagr {
|
|
|
101
101
|
return rxjs_1.of(new build_graph_1.BuildGraph()).pipe(buildTransformOperator, operators_1.catchError(err => {
|
|
102
102
|
// Report error and re-throw to subscribers
|
|
103
103
|
log.error(err);
|
|
104
|
-
|
|
104
|
+
return rxjs_1.throwError(err);
|
|
105
105
|
}), operators_1.map(() => undefined));
|
|
106
106
|
}
|
|
107
107
|
}
|
package/lib/ng-v5/packagr.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packagr.js","sourceRoot":"","sources":["../../../src/lib/ng-v5/packagr.ts"],"names":[],"mappings":";;AAAA,+CAA4E;AAE5E,+
|
|
1
|
+
{"version":3,"file":"packagr.js","sourceRoot":"","sources":["../../../src/lib/ng-v5/packagr.ts"],"names":[],"mappings":";;AAAA,+CAA4E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,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;QAErD,OAAO,IAAI,CAAC,iBAAiB,EAAE,CAAC;IAClC,CAAC;IAED;;;;OAIG;IACI,iBAAiB;QACtB,MAAM,QAAQ,GAAG,iCAAkB,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACrE,MAAM,sBAAsB,GAAG,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAEjE,OAAO,SAAY,CAAC,IAAI,wBAAU,EAAE,CAAC,CAAC,IAAI,CACxC,sBAAsB,EACtB,sBAAU,CAAC,GAAG,CAAC,EAAE;YACf,2CAA2C;YAC3C,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACf,OAAO,iBAAU,CAAC,GAAG,CAAC,CAAC;QACzB,CAAC,CAAC,EACF,eAAG,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CACrB,CAAC;IACJ,CAAC;CACF;AAzGD,8BAyGC;AAEY,QAAA,SAAS,GAAG,GAAc,EAAE,CACvC,IAAI,SAAS,CAAC;IACZ,sCAAsC;IACtC,GAAG,8BAAiB;IACpB,GAAG,sCAAqB;CACzB,CAAC,CAAC","sourcesContent":["import { InjectionToken, Provider, ReflectiveInjector } from 'injection-js';\nimport { ParsedConfiguration } from '@angular/compiler-cli';\nimport { of as observableOf, Observable, throwError } from 'rxjs';\nimport { map, catchError } from 'rxjs/operators';\nimport { BuildGraph } from '../brocc/build-graph';\nimport { Transform } from '../brocc/transform';\nimport * as log from '../util/log';\nimport { provideTsConfig } from './init/init-tsconfig.di';\nimport { ENTRY_POINT_PROVIDERS } from './entry-point.di';\nimport { PACKAGE_TRANSFORM, PACKAGE_PROVIDERS } from './package.di';\nimport { provideProject } from './project.di';\nimport { provideOptions, NgPackagrOptions } from './options.di';\n\n/**\n * The original ng-packagr implemented on top of a rxjs-ified and di-jectable transformation pipeline.\n *\n * See the `docs/transformations.md` for more prose description.\n *\n * @link https://github.com/dherges/ng-packagr/pull/572\n */\nexport class NgPackagr {\n private buildTransform: InjectionToken<Transform> = PACKAGE_TRANSFORM.provide;\n\n constructor(private providers: Provider[]) {}\n\n /**\n * Adds options to ng-packagr\n *\n * @param options Ng Packagr Options\n * @return Self instance for fluent API\n */\n public withOptions(options: NgPackagrOptions): NgPackagr {\n this.providers.push(provideOptions(options));\n\n return this;\n }\n\n /**\n * Sets the path to the user's \"ng-package\" file (either `package.json`, `ng-package.json`, or `ng-package.js`)\n *\n * @param project File path\n * @return Self instance for fluent API\n */\n public forProject(project: string): NgPackagr {\n this.providers.push(provideProject(project));\n\n return this;\n }\n\n /**\n * Adds dependency injection providers.\n *\n * @param providers\n * @return Self instance for fluent API\n * @link https://github.com/mgechev/injection-js\n */\n public withProviders(providers: Provider[]): NgPackagr {\n this.providers = [...this.providers, ...providers];\n\n return this;\n }\n\n /**\n * Overwrites the default TypeScript configuration.\n *\n * @param defaultValues A tsconfig providing default values to the compilation.\n * @return Self instance for fluent API\n */\n public withTsConfig(defaultValues: ParsedConfiguration | string): NgPackagr {\n this.providers.push(provideTsConfig(defaultValues));\n\n return this;\n }\n\n /**\n * Overwrites the 'build' transform.\n *\n * @param transform\n * @return Self intance for fluent API\n */\n public withBuildTransform(transform: InjectionToken<Transform>): NgPackagr {\n this.buildTransform = transform;\n\n return this;\n }\n\n /**\n * Builds the project by kick-starting the 'build' transform over an (initially) empty `BuildGraph``\n *\n * @return A promisified result of the transformation pipeline.\n */\n public build(): Promise<void> {\n return this.buildAsObservable().toPromise();\n }\n\n /**\n * Builds and watch for changes by kick-starting the 'watch' transform over an (initially) empty `BuildGraph``\n *\n * @return An observable result of the transformation pipeline.\n */\n public watch(): Observable<void> {\n this.providers.push(provideOptions({ watch: true }));\n\n return this.buildAsObservable();\n }\n\n /**\n * Builds the project by kick-starting the 'build' transform over an (initially) empty `BuildGraph``\n *\n * @return An observable result of the transformation pipeline.\n */\n public buildAsObservable(): Observable<void> {\n const injector = ReflectiveInjector.resolveAndCreate(this.providers);\n const buildTransformOperator = injector.get(this.buildTransform);\n\n return observableOf(new BuildGraph()).pipe(\n buildTransformOperator,\n catchError(err => {\n // Report error and re-throw to subscribers\n log.error(err);\n return throwError(err);\n }),\n map(() => undefined)\n );\n }\n}\n\nexport const ngPackagr = (): NgPackagr =>\n new NgPackagr([\n // Add default providers to this list.\n ...PACKAGE_PROVIDERS,\n ...ENTRY_POINT_PROVIDERS\n ]);\n"]}
|
package/lib/util/log.js
CHANGED
|
@@ -5,7 +5,9 @@ exports.error = (err) => {
|
|
|
5
5
|
if (err instanceof Error) {
|
|
6
6
|
console.error('\n' + chalk_1.default.red('BUILD ERROR'));
|
|
7
7
|
console.error(chalk_1.default.red(err.message));
|
|
8
|
-
|
|
8
|
+
if (process.env.DEBUG) {
|
|
9
|
+
console.error(chalk_1.default.red(err.stack) + '\n');
|
|
10
|
+
}
|
|
9
11
|
}
|
|
10
12
|
else {
|
|
11
13
|
console.error(chalk_1.default.red(err));
|
package/lib/util/log.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.js","sourceRoot":"","sources":["../../../src/lib/util/log.ts"],"names":[],"mappings":";;AAAA,iCAA0B;AAEb,QAAA,KAAK,GAAG,CAAC,GAAmB,EAAE,EAAE;IAC3C,IAAI,GAAG,YAAY,KAAK,EAAE;QACxB,OAAO,CAAC,KAAK,CAAC,IAAI,GAAG,eAAK,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC;QAC/C,OAAO,CAAC,KAAK,CAAC,eAAK,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"log.js","sourceRoot":"","sources":["../../../src/lib/util/log.ts"],"names":[],"mappings":";;AAAA,iCAA0B;AAEb,QAAA,KAAK,GAAG,CAAC,GAAmB,EAAE,EAAE;IAC3C,IAAI,GAAG,YAAY,KAAK,EAAE;QACxB,OAAO,CAAC,KAAK,CAAC,IAAI,GAA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alk';\n\nexport const error = (err: string | Error) => {\n if (err instanceof Error) {\n console.error('\\n' + chalk.red('BUILD ERROR'));\n console.error(chalk.red(err.message));\n\n if (process.env.DEBUG) {\n console.error(chalk.red(err.stack) + '\\n');\n }\n } else {\n console.error(chalk.red(err));\n }\n};\n\nexport const warn = (msg: string) => {\n console.warn(chalk.yellow(msg));\n};\n\nexport const success = (msg: string) => {\n console.log(chalk.green(msg));\n};\n\nexport const info = (msg: string) => {\n console.log(chalk.blue(msg));\n};\n\nexport const msg = (msg: string) => {\n console.log(chalk.white(msg));\n};\n\nexport const debug = (msg: string) => {\n if (process.env.DEBUG) {\n console.log(chalk.inverse.cyan(`[debug] ${msg}`));\n }\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ng-packagr",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "Compile and package a TypeScript library to Angular Package Format",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"typings": "./public_api.d.ts",
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@ngtools/json-schema": "^1.1.0",
|
|
31
|
-
"autoprefixer": "^9.
|
|
31
|
+
"autoprefixer": "^9.6.0",
|
|
32
32
|
"browserslist": "^4.0.0",
|
|
33
33
|
"chalk": "^2.3.1",
|
|
34
34
|
"chokidar": "^3.0.0",
|
|
@@ -40,7 +40,6 @@
|
|
|
40
40
|
"less": "^3.8.0",
|
|
41
41
|
"less-plugin-npm-import": "^2.1.0",
|
|
42
42
|
"node-sass-tilde-importer": "^1.0.0",
|
|
43
|
-
"opencollective-postinstall": "^2.0.1",
|
|
44
43
|
"postcss": "^7.0.0",
|
|
45
44
|
"postcss-url": "^8.0.0",
|
|
46
45
|
"read-pkg-up": "^5.0.0",
|
|
@@ -53,12 +52,12 @@
|
|
|
53
52
|
"rxjs": "^6.0.0",
|
|
54
53
|
"sass": "^1.17.3",
|
|
55
54
|
"stylus": "^0.54.5",
|
|
56
|
-
"terser": "^
|
|
55
|
+
"terser": "^4.0.0",
|
|
57
56
|
"update-notifier": "^3.0.0"
|
|
58
57
|
},
|
|
59
58
|
"peerDependencies": {
|
|
60
|
-
"@angular/compiler": "^6.0.0 || ^7.0.0 || ^8.0.0-beta.0",
|
|
61
|
-
"@angular/compiler-cli": "^6.0.0 || ^7.0.0 || ^8.0.0-beta.0",
|
|
59
|
+
"@angular/compiler": "^6.0.0 || ^7.0.0 || ^8.0.0-beta.0 || ^8.1.0-beta.0",
|
|
60
|
+
"@angular/compiler-cli": "^6.0.0 || ^7.0.0 || ^8.0.0-beta.0 || ^8.1.0-beta.0",
|
|
62
61
|
"tslib": "^1.9.0",
|
|
63
62
|
"typescript": ">=2.7 < 3.5"
|
|
64
63
|
},
|
|
@@ -73,7 +72,5 @@
|
|
|
73
72
|
"pre-commit": "pretty-quick --staged"
|
|
74
73
|
}
|
|
75
74
|
},
|
|
76
|
-
"scripts": {
|
|
77
|
-
"postinstall": "opencollective-postinstall"
|
|
78
|
-
}
|
|
75
|
+
"scripts": {}
|
|
79
76
|
}
|