@c8y/devkit 1019.0.3
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/README.md +13 -0
- package/dist/builders.json +29 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/dist/options.d.ts +2 -0
- package/dist/options.js +6 -0
- package/dist/options.js.map +1 -0
- package/dist/src/builders/BuilderOptions.d.ts +90 -0
- package/dist/src/builders/BuilderOptions.js +3 -0
- package/dist/src/builders/BuilderOptions.js.map +1 -0
- package/dist/src/builders/browser/index.d.ts +2 -0
- package/dist/src/builders/browser/index.js +17 -0
- package/dist/src/builders/browser/index.js.map +1 -0
- package/dist/src/builders/browser/schema.json +606 -0
- package/dist/src/builders/compile-i18n/compile-i18n-builder.d.ts +5 -0
- package/dist/src/builders/compile-i18n/compile-i18n-builder.js +88 -0
- package/dist/src/builders/compile-i18n/compile-i18n-builder.js.map +1 -0
- package/dist/src/builders/compile-i18n/schema.json +24 -0
- package/dist/src/builders/create-schema.d.ts +1 -0
- package/dist/src/builders/create-schema.js +32 -0
- package/dist/src/builders/create-schema.js.map +1 -0
- package/dist/src/builders/deploy/Deploy.model.d.ts +30 -0
- package/dist/src/builders/deploy/Deploy.model.js +8 -0
- package/dist/src/builders/deploy/Deploy.model.js.map +1 -0
- package/dist/src/builders/deploy/app-as-zip-file.d.ts +8 -0
- package/dist/src/builders/deploy/app-as-zip-file.js +74 -0
- package/dist/src/builders/deploy/app-as-zip-file.js.map +1 -0
- package/dist/src/builders/deploy/build-and-zip-app.d.ts +10 -0
- package/dist/src/builders/deploy/build-and-zip-app.js +105 -0
- package/dist/src/builders/deploy/build-and-zip-app.js.map +1 -0
- package/dist/src/builders/deploy/deploy-builder.d.ts +5 -0
- package/dist/src/builders/deploy/deploy-builder.js +268 -0
- package/dist/src/builders/deploy/deploy-builder.js.map +1 -0
- package/dist/src/builders/deploy/helpers.d.ts +25 -0
- package/dist/src/builders/deploy/helpers.js +45 -0
- package/dist/src/builders/deploy/helpers.js.map +1 -0
- package/dist/src/builders/deploy/schema.json +42 -0
- package/dist/src/builders/dev-server/index.d.ts +2 -0
- package/dist/src/builders/dev-server/index.js +67 -0
- package/dist/src/builders/dev-server/index.js.map +1 -0
- package/dist/src/builders/dev-server/schema.json +120 -0
- package/dist/src/builders/extract-i18n/extract-i18n-builder.d.ts +5 -0
- package/dist/src/builders/extract-i18n/extract-i18n-builder.js +126 -0
- package/dist/src/builders/extract-i18n/extract-i18n-builder.js.map +1 -0
- package/dist/src/builders/extract-i18n/schema.json +30 -0
- package/dist/src/options.d.ts +82 -0
- package/dist/src/options.js +98 -0
- package/dist/src/options.js.map +1 -0
- package/dist/src/schematics/collection.json +9 -0
- package/dist/src/schematics/ng-add/configs/angular-json.d.ts +28 -0
- package/dist/src/schematics/ng-add/configs/angular-json.js +93 -0
- package/dist/src/schematics/ng-add/configs/angular-json.js.map +1 -0
- package/dist/src/schematics/ng-add/configs/app-module.d.ts +3 -0
- package/dist/src/schematics/ng-add/configs/app-module.js +13 -0
- package/dist/src/schematics/ng-add/configs/app-module.js.map +1 -0
- package/dist/src/schematics/ng-add/configs/app-routing.d.ts +2 -0
- package/dist/src/schematics/ng-add/configs/app-routing.js +16 -0
- package/dist/src/schematics/ng-add/configs/app-routing.js.map +1 -0
- package/dist/src/schematics/ng-add/configs/index-html.d.ts +2 -0
- package/dist/src/schematics/ng-add/configs/index-html.js +15 -0
- package/dist/src/schematics/ng-add/configs/index-html.js.map +1 -0
- package/dist/src/schematics/ng-add/configs/index.d.ts +2 -0
- package/dist/src/schematics/ng-add/configs/index.js +37 -0
- package/dist/src/schematics/ng-add/configs/index.js.map +1 -0
- package/dist/src/schematics/ng-add/configs/main.d.ts +2 -0
- package/dist/src/schematics/ng-add/configs/main.js +30 -0
- package/dist/src/schematics/ng-add/configs/main.js.map +1 -0
- package/dist/src/schematics/ng-add/configs/ng1.d.ts +3 -0
- package/dist/src/schematics/ng-add/configs/ng1.js +13 -0
- package/dist/src/schematics/ng-add/configs/ng1.js.map +1 -0
- package/dist/src/schematics/ng-add/configs/package-json.d.ts +17 -0
- package/dist/src/schematics/ng-add/configs/package-json.js +67 -0
- package/dist/src/schematics/ng-add/configs/package-json.js.map +1 -0
- package/dist/src/schematics/ng-add/configs/translation.d.ts +2 -0
- package/dist/src/schematics/ng-add/configs/translation.js +36 -0
- package/dist/src/schematics/ng-add/configs/translation.js.map +1 -0
- package/dist/src/schematics/ng-add/configs/tsconfig-app-json.d.ts +2 -0
- package/dist/src/schematics/ng-add/configs/tsconfig-app-json.js +21 -0
- package/dist/src/schematics/ng-add/configs/tsconfig-app-json.js.map +1 -0
- package/dist/src/schematics/ng-add/configs/tsconfig-json.d.ts +2 -0
- package/dist/src/schematics/ng-add/configs/tsconfig-json.js +19 -0
- package/dist/src/schematics/ng-add/configs/tsconfig-json.js.map +1 -0
- package/dist/src/schematics/ng-add/index.d.ts +4 -0
- package/dist/src/schematics/ng-add/index.js +93 -0
- package/dist/src/schematics/ng-add/index.js.map +1 -0
- package/dist/src/schematics/ng-add/model.d.ts +19 -0
- package/dist/src/schematics/ng-add/model.js +3 -0
- package/dist/src/schematics/ng-add/model.js.map +1 -0
- package/dist/src/schematics/ng-add/ng-add.json +18 -0
- package/dist/src/schematics/ng-add/utils.d.ts +13 -0
- package/dist/src/schematics/ng-add/utils.js +32 -0
- package/dist/src/schematics/ng-add/utils.js.map +1 -0
- package/dist/src/utils/locale-compiler.d.ts +48 -0
- package/dist/src/utils/locale-compiler.js +83 -0
- package/dist/src/utils/locale-compiler.js.map +1 -0
- package/dist/src/utils/locale-json-paths.d.ts +19 -0
- package/dist/src/utils/locale-json-paths.js +63 -0
- package/dist/src/utils/locale-json-paths.js.map +1 -0
- package/dist/src/utils/locale-utils.d.ts +24 -0
- package/dist/src/utils/locale-utils.js +104 -0
- package/dist/src/utils/locale-utils.js.map +1 -0
- package/dist/src/utils/package-config.d.ts +1 -0
- package/dist/src/utils/package-config.js +13 -0
- package/dist/src/utils/package-config.js.map +1 -0
- package/dist/src/webpack/ApplicationOptions.d.ts +344 -0
- package/dist/src/webpack/ApplicationOptions.js +3 -0
- package/dist/src/webpack/ApplicationOptions.js.map +1 -0
- package/dist/src/webpack/BuildDefaults.d.ts +10 -0
- package/dist/src/webpack/BuildDefaults.js +15 -0
- package/dist/src/webpack/BuildDefaults.js.map +1 -0
- package/dist/src/webpack/EnvironmentOptions.d.ts +132 -0
- package/dist/src/webpack/EnvironmentOptions.js +15 -0
- package/dist/src/webpack/EnvironmentOptions.js.map +1 -0
- package/dist/src/webpack/config/babel.d.ts +2 -0
- package/dist/src/webpack/config/babel.js +65 -0
- package/dist/src/webpack/config/babel.js.map +1 -0
- package/dist/src/webpack/config/base.d.ts +27 -0
- package/dist/src/webpack/config/base.js +125 -0
- package/dist/src/webpack/config/base.js.map +1 -0
- package/dist/src/webpack/config/development.d.ts +4 -0
- package/dist/src/webpack/config/development.js +37 -0
- package/dist/src/webpack/config/development.js.map +1 -0
- package/dist/src/webpack/config/extra.d.ts +3 -0
- package/dist/src/webpack/config/extra.js +24 -0
- package/dist/src/webpack/config/extra.js.map +1 -0
- package/dist/src/webpack/config/favicon.d.ts +2 -0
- package/dist/src/webpack/config/favicon.js +20 -0
- package/dist/src/webpack/config/favicon.js.map +1 -0
- package/dist/src/webpack/config/federation.d.ts +3 -0
- package/dist/src/webpack/config/federation.js +66 -0
- package/dist/src/webpack/config/federation.js.map +1 -0
- package/dist/src/webpack/config/legacy.d.ts +2 -0
- package/dist/src/webpack/config/legacy.js +72 -0
- package/dist/src/webpack/config/legacy.js.map +1 -0
- package/dist/src/webpack/config/plugin.d.ts +5 -0
- package/dist/src/webpack/config/plugin.js +89 -0
- package/dist/src/webpack/config/plugin.js.map +1 -0
- package/dist/src/webpack/config/production.d.ts +3 -0
- package/dist/src/webpack/config/production.js +30 -0
- package/dist/src/webpack/config/production.js.map +1 -0
- package/dist/src/webpack/config/styles.d.ts +3 -0
- package/dist/src/webpack/config/styles.js +54 -0
- package/dist/src/webpack/config/styles.js.map +1 -0
- package/dist/src/webpack/config/translation.d.ts +2 -0
- package/dist/src/webpack/config/translation.js +23 -0
- package/dist/src/webpack/config/translation.js.map +1 -0
- package/dist/src/webpack/loaders/loader-data.d.ts +1 -0
- package/dist/src/webpack/loaders/loader-data.js +53 -0
- package/dist/src/webpack/loaders/loader-data.js.map +1 -0
- package/dist/src/webpack/loaders/loader-less.d.ts +1 -0
- package/dist/src/webpack/loaders/loader-less.js +23 -0
- package/dist/src/webpack/loaders/loader-less.js.map +1 -0
- package/dist/src/webpack/loaders/loader-manifest.d.ts +1 -0
- package/dist/src/webpack/loaders/loader-manifest.js +88 -0
- package/dist/src/webpack/loaders/loader-manifest.js.map +1 -0
- package/dist/src/webpack/loaders/loader-ngtemplate.d.ts +1 -0
- package/dist/src/webpack/loaders/loader-ngtemplate.js +16 -0
- package/dist/src/webpack/loaders/loader-ngtemplate.js.map +1 -0
- package/dist/src/webpack/loaders/loader-pluginpath.d.ts +1 -0
- package/dist/src/webpack/loaders/loader-pluginpath.js +10 -0
- package/dist/src/webpack/loaders/loader-pluginpath.js.map +1 -0
- package/dist/src/webpack/loaders/loader-po.d.ts +3 -0
- package/dist/src/webpack/loaders/loader-po.js +9 -0
- package/dist/src/webpack/loaders/loader-po.js.map +1 -0
- package/dist/src/webpack/plugin/index-content.d.ts +2 -0
- package/dist/src/webpack/plugin/index-content.js +113 -0
- package/dist/src/webpack/plugin/index-content.js.map +1 -0
- package/dist/src/webpack/plugin/locales.d.ts +6 -0
- package/dist/src/webpack/plugin/locales.js +746 -0
- package/dist/src/webpack/plugin/locales.js.map +1 -0
- package/dist/src/webpack/plugin/plugin.d.ts +259 -0
- package/dist/src/webpack/plugin/plugin.js +286 -0
- package/dist/src/webpack/plugin/plugin.js.map +1 -0
- package/dist/src/webpack/plugin/translation-aggregation-plugin.d.ts +80 -0
- package/dist/src/webpack/plugin/translation-aggregation-plugin.js +152 -0
- package/dist/src/webpack/plugin/translation-aggregation-plugin.js.map +1 -0
- package/dist/src/webpack/plugin/translation-data-store.d.ts +27 -0
- package/dist/src/webpack/plugin/translation-data-store.js +37 -0
- package/dist/src/webpack/plugin/translation-data-store.js.map +1 -0
- package/dist/src/webpack/utils/federationUtils.d.ts +26 -0
- package/dist/src/webpack/utils/federationUtils.js +234 -0
- package/dist/src/webpack/utils/federationUtils.js.map +1 -0
- package/dist/src/webpack/utils/helpers.d.ts +45 -0
- package/dist/src/webpack/utils/helpers.js +137 -0
- package/dist/src/webpack/utils/helpers.js.map +1 -0
- package/dist/src/webpack/utils/index.d.ts +1 -0
- package/dist/src/webpack/utils/index.js +5 -0
- package/dist/src/webpack/utils/index.js.map +1 -0
- package/dist/src/webpack/utils/legacy-manifest-resolver.d.ts +4 -0
- package/dist/src/webpack/utils/legacy-manifest-resolver.js +27 -0
- package/dist/src/webpack/utils/legacy-manifest-resolver.js.map +1 -0
- package/dist/src/webpack/utils/proxy.d.ts +2 -0
- package/dist/src/webpack/utils/proxy.js +39 -0
- package/dist/src/webpack/utils/proxy.js.map +1 -0
- package/package.json +99 -0
package/README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
**`@c8y/devkit` Package Overview**
|
|
2
|
+
|
|
3
|
+
The `@c8y/devkit` package is an essential toolkit for developers working with Cumulocity applications, designed to facilitate the migration from `@c8ycli` to `ng cli`. Here's what it offers:
|
|
4
|
+
|
|
5
|
+
1. **Easy App Initialization**: Streamlines new application setup with `ng add @c8y/websdk`, handling app naming and versioning.
|
|
6
|
+
|
|
7
|
+
2. **Custom Webpack Configuration**: Integrates a specialized webpack configuration, accommodating the unique needs of hybrid Cumulocity applications while aligning with standard Angular setups.
|
|
8
|
+
|
|
9
|
+
3. **Enhanced Development Tools**: Includes custom builders like `browser` for building apps, `dev-server` for local development, and `deploy` for deploying apps to tenants.
|
|
10
|
+
|
|
11
|
+
4. **Locale Management**: Offers tools for extracting and compiling locales, aiding in the translation process and integration of language files.
|
|
12
|
+
|
|
13
|
+
This toolkit is designed to make your development experience with Cumulocity applications more efficient, streamlined, and up-to-date with the latest Angular practices.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"builders": {
|
|
3
|
+
"build": {
|
|
4
|
+
"implementation": "./src/builders/browser",
|
|
5
|
+
"schema": "./src/builders/browser/schema.json",
|
|
6
|
+
"description": "Build application"
|
|
7
|
+
},
|
|
8
|
+
"dev-server": {
|
|
9
|
+
"implementation": "./src/builders/dev-server",
|
|
10
|
+
"schema": "./src/builders/dev-server/schema.json",
|
|
11
|
+
"description": "Development server"
|
|
12
|
+
},
|
|
13
|
+
"deploy": {
|
|
14
|
+
"implementation": "./src/builders/deploy/deploy-builder",
|
|
15
|
+
"schema": "./src/builders/deploy/schema.json",
|
|
16
|
+
"description": "Deploy application to tenant"
|
|
17
|
+
},
|
|
18
|
+
"extract-i18n": {
|
|
19
|
+
"implementation": "./src/builders/extract-i18n/extract-i18n-builder",
|
|
20
|
+
"schema": "./src/builders/extract-i18n/schema.json",
|
|
21
|
+
"description": "Extracts all strings for translation"
|
|
22
|
+
},
|
|
23
|
+
"compile-i18n": {
|
|
24
|
+
"implementation": "./src/builders/compile-i18n/compile-i18n-builder",
|
|
25
|
+
"schema": "./src/builders/compile-i18n/schema.json",
|
|
26
|
+
"description": "Compiles .po files into json files"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * as browse from './src/builders/browser';
|
|
2
|
+
export * as devServer from './src/builders/dev-server';
|
|
3
|
+
export * as deploy from './src/builders/deploy/deploy-builder';
|
|
4
|
+
export * as extractI18n from './src/builders/extract-i18n/extract-i18n-builder';
|
|
5
|
+
export * as compileI18n from './src/builders/compile-i18n/compile-i18n-builder';
|
|
6
|
+
export * from './src/schematics/ng-add/index';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.compileI18n = exports.extractI18n = exports.deploy = exports.devServer = exports.browse = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
exports.browse = require("./src/builders/browser");
|
|
6
|
+
exports.devServer = require("./src/builders/dev-server");
|
|
7
|
+
exports.deploy = require("./src/builders/deploy/deploy-builder");
|
|
8
|
+
exports.extractI18n = require("./src/builders/extract-i18n/extract-i18n-builder");
|
|
9
|
+
exports.compileI18n = require("./src/builders/compile-i18n/compile-i18n-builder");
|
|
10
|
+
tslib_1.__exportStar(require("./src/schematics/ng-add/index"), exports);
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;AAAA,mDAAiD;AACjD,yDAAuD;AACvD,iEAA+D;AAC/D,kFAAgF;AAChF,kFAAgF;AAChF,wEAA8C"}
|
package/dist/options.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./src/webpack/EnvironmentOptions"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./src/webpack/ApplicationOptions"), exports);
|
|
6
|
+
//# sourceMappingURL=options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../options.ts"],"names":[],"mappings":";;;AAAA,2EAAiD;AACjD,2EAAiD"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { BrowserBuilderOptions, DevServerBuilderOptions } from '@angular-devkit/build-angular';
|
|
2
|
+
import { EnvironmentOptions } from '../webpack/EnvironmentOptions';
|
|
3
|
+
/**
|
|
4
|
+
* Interface representing the configuration options for the builder.
|
|
5
|
+
* It extends the JsonObject type, which represents a JSON-serializable object.
|
|
6
|
+
*/
|
|
7
|
+
export interface C8yDevServerBuilderOptions extends EnvironmentOptions, DevServerBuilderOptions {
|
|
8
|
+
/**
|
|
9
|
+
* Optional property representing the target URL for the proxy.
|
|
10
|
+
* If specified, the builder will set up a proxy that forwards requests
|
|
11
|
+
* to this URL.
|
|
12
|
+
* Url is received via -u flag when running dev server with ng cli.
|
|
13
|
+
*/
|
|
14
|
+
url: string;
|
|
15
|
+
/**
|
|
16
|
+
* An application where the current module federation modules should be tried out.
|
|
17
|
+
*/
|
|
18
|
+
shell: string;
|
|
19
|
+
}
|
|
20
|
+
export interface C8yBrowserBuilderOptions extends EnvironmentOptions, BrowserBuilderOptions {
|
|
21
|
+
}
|
|
22
|
+
export interface C8yDeployBuilderOptions extends EnvironmentOptions, BrowserBuilderOptions {
|
|
23
|
+
/**
|
|
24
|
+
* Property representing the target URL for deploying the app.
|
|
25
|
+
* Url is received via -u flag when running deploy with ng cli.
|
|
26
|
+
*/
|
|
27
|
+
url: string;
|
|
28
|
+
/**
|
|
29
|
+
* Tenant user login.
|
|
30
|
+
* User login is received via -U flag when running deploy with ng cli.
|
|
31
|
+
*/
|
|
32
|
+
user: string;
|
|
33
|
+
/**
|
|
34
|
+
* Tenant user password.
|
|
35
|
+
* Password is received via -P flag when running deploy with ng cli.
|
|
36
|
+
*/
|
|
37
|
+
password: string;
|
|
38
|
+
/**
|
|
39
|
+
* Tenant id.
|
|
40
|
+
* Tenant id is received via -T flag when running deploy with ng cli.
|
|
41
|
+
*/
|
|
42
|
+
tenant?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Path to already zipped application. Property is optional. If not provided, application will be built, zipped and
|
|
45
|
+
* deployed.
|
|
46
|
+
* Zip path is received via -z flag when running deploy with ng cli.
|
|
47
|
+
*/
|
|
48
|
+
zipPath?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Tags for package applications. To provide multiple tags, they should be separated by ",".
|
|
51
|
+
* Tags are received via -t flag when running deploy with ng cli.
|
|
52
|
+
*/
|
|
53
|
+
tags?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Property responsible for picking right configuration (development, production) for build.
|
|
56
|
+
* Browser target is not provided in command as a flag. Instead, configuration is, with via flag -c.
|
|
57
|
+
*/
|
|
58
|
+
browserTarget?: string;
|
|
59
|
+
}
|
|
60
|
+
export interface C8yExtractI18nBuilderOptions {
|
|
61
|
+
/**
|
|
62
|
+
* Output directory for the generated .po files.
|
|
63
|
+
* Output is received via -o flag when running extract-i18n with ng cli.
|
|
64
|
+
*/
|
|
65
|
+
output?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Include source line references.
|
|
68
|
+
* Refs is received via -r flag when running extract-i18n with ng cli.
|
|
69
|
+
* It needs no explicit value in command line- parameter will be `true` if flag is provided and `false` if omitted.
|
|
70
|
+
*/
|
|
71
|
+
refs?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Glob patterns list to extract locales from.
|
|
74
|
+
* Paths property is received via -p flag when running extract-i18n with ng cli.
|
|
75
|
+
*/
|
|
76
|
+
paths?: string[];
|
|
77
|
+
}
|
|
78
|
+
export interface C8yCompileI18nBuilderOptions {
|
|
79
|
+
/**
|
|
80
|
+
* Output path for the generated json files.
|
|
81
|
+
* Output is received via -o flag when running compile-i18n with ng cli.
|
|
82
|
+
*/
|
|
83
|
+
output?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Glob patterns list to compile locales from.
|
|
86
|
+
* Paths property is received via -p flag when running compile-i18n with ng cli.
|
|
87
|
+
* Property is optional, but schema for this builder ensures that builder gets empty array if no values provided.
|
|
88
|
+
*/
|
|
89
|
+
paths: string[];
|
|
90
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BuilderOptions.js","sourceRoot":"","sources":["../../../src/builders/BuilderOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const architect_1 = require("@angular-devkit/architect");
|
|
4
|
+
const lodash_1 = require("lodash");
|
|
5
|
+
const base_1 = require("../../webpack/config/base");
|
|
6
|
+
const build_angular_1 = require("@angular-devkit/build-angular");
|
|
7
|
+
// Sadly the `Builder` interface is not exported by @angular-devkit/architect
|
|
8
|
+
const builder = (0, architect_1.createBuilder)(buildBuilder);
|
|
9
|
+
exports.default = builder;
|
|
10
|
+
function buildBuilder(options, context) {
|
|
11
|
+
const cleanedOptions = (0, lodash_1.omitBy)(options, lodash_1.isUndefined);
|
|
12
|
+
const webpackConfig = (0, base_1.webpackConfigurationTransformerWithContext)(cleanedOptions, context);
|
|
13
|
+
return (0, build_angular_1.executeBrowserBuilder)(cleanedOptions, context, {
|
|
14
|
+
webpackConfiguration: webpackConfig
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/builders/browser/index.ts"],"names":[],"mappings":";;AAAA,yDAA0E;AAC1E,mCAA6C;AAC7C,oDAAuF;AACvF,iEAAsE;AAGtE,6EAA6E;AAC7E,MAAM,OAAO,GAAY,IAAA,yBAAa,EAAC,YAAY,CAAC,CAAC;AACrD,kBAAe,OAAO,CAAC;AAEvB,SAAS,YAAY,CAAC,OAAiC,EAAE,OAAuB;IAC9E,MAAM,cAAc,GAAG,IAAA,eAAM,EAAC,OAAO,EAAE,oBAAW,CAA6B,CAAC;IAChF,MAAM,aAAa,GAAG,IAAA,iDAA0C,EAAC,cAAc,EAAE,OAAO,CAAC,CAAC;IAE1F,OAAO,IAAA,qCAAqB,EAAC,cAAc,EAAE,OAAO,EAAE;QACpD,oBAAoB,EAAE,aAAa;KACpC,CAAC,CAAC;AACL,CAAC"}
|