Skip to content

Commit 80337ef

Browse files
author
Angular Builds
committed
59956c3 release: patch
0 parents  commit 80337ef

File tree

116 files changed

+6453
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+6453
-0
lines changed

‎LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License
2+
3+
Copyright (c) 2017 Google, Inc.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

‎README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Angular Webpack Build Facade
2+
3+
WIP

‎builders.json

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"$schema": "../architect/src/builders-schema.json",
3+
"builders": {
4+
"app-shell": {
5+
"class": "./src/app-shell",
6+
"schema": "./src/app-shell/schema.json",
7+
"description": "Build a server app and a browser app, then render the index.html and use it for the browser output."
8+
},
9+
"browser": {
10+
"class": "./src/browser",
11+
"schema": "./src/browser/schema.json",
12+
"description": "Build a browser app."
13+
},
14+
"dev-server": {
15+
"class": "./src/dev-server",
16+
"schema": "./src/dev-server/schema.json",
17+
"description": "Serve a browser app."
18+
},
19+
"extract-i18n": {
20+
"class": "./src/extract-i18n",
21+
"schema": "./src/extract-i18n/schema.json",
22+
"description": "Extract i18n strings from a browser app."
23+
},
24+
"karma": {
25+
"class": "./src/karma",
26+
"schema": "./src/karma/schema.json",
27+
"description": "Run Karma unit tests."
28+
},
29+
"protractor": {
30+
"class": "./src/protractor",
31+
"schema": "./src/protractor/schema.json",
32+
"description": "Run protractor over a dev server."
33+
},
34+
"tslint": {
35+
"class": "./src/tslint",
36+
"schema": "./src/tslint/schema.json",
37+
"description": "Run tslint over a TS project."
38+
},
39+
"server": {
40+
"class": "./src/server",
41+
"schema": "./src/server/schema.json",
42+
"description": "Build a server Angular application."
43+
}
44+
}
45+
}

‎package.json

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
{
2+
"name": "@angular-devkit/build-angular",
3+
"version": "0.0.9",
4+
"description": "Angular Webpack Build Facade",
5+
"main": "src/index.js",
6+
"typings": "src/index.d.ts",
7+
"builders": "builders.json",
8+
"dependencies": {
9+
"@angular-devkit/architect": "github:angular/angular-devkit-architect-builds#59956c3",
10+
"@angular-devkit/build-optimizer": "github:angular/angular-devkit-build-optimizer-builds#59956c3",
11+
"@angular-devkit/core": "github:angular/angular-devkit-core-builds#59956c3",
12+
"@ngtools/webpack": "github:angular/ngtools-webpack-builds#59956c3",
13+
"autoprefixer": "^8.1.0",
14+
"cache-loader": "^1.2.2",
15+
"chalk": "~2.2.2",
16+
"circular-dependency-plugin": "^5.0.0",
17+
"clean-css": "^4.1.11",
18+
"copy-webpack-plugin": "^4.5.0",
19+
"file-loader": "^1.1.11",
20+
"glob": "^7.0.3",
21+
"html-webpack-plugin": "^3.0.6",
22+
"istanbul": "^0.4.5",
23+
"istanbul-instrumenter-loader": "^3.0.1",
24+
"karma-source-map-support": "^1.2.0",
25+
"less": "^3.0.1",
26+
"less-loader": "^4.1.0",
27+
"license-webpack-plugin": "^1.2.3",
28+
"lodash": "^4.17.4",
29+
"memory-fs": "^0.4.1",
30+
"mini-css-extract-plugin": "~0.2.0",
31+
"minimatch": "^3.0.4",
32+
"node-sass": "^4.7.2",
33+
"parse5": "^4.0.0",
34+
"opn": "^5.1.0",
35+
"portfinder": "^1.0.13",
36+
"postcss": "^6.0.19",
37+
"postcss-import": "^11.1.0",
38+
"postcss-loader": "^2.1.1",
39+
"postcss-url": "^7.3.1",
40+
"raw-loader": "^0.5.1",
41+
"request": "^2.83.0",
42+
"resolve": "^1.5.0",
43+
"rxjs": "^5.5.8",
44+
"sass-loader": "^6.0.7",
45+
"silent-error": "^1.1.0",
46+
"source-map-support": "^0.5.0",
47+
"stats-webpack-plugin": "^0.6.2",
48+
"style-loader": "^0.20.2",
49+
"stylus": "^0.54.5",
50+
"stylus-loader": "^3.0.2",
51+
"tree-kill": "^1.2.0",
52+
"uglifyjs-webpack-plugin": "^1.2.2",
53+
"url-loader": "^1.0.1",
54+
"webpack": "4.1.0",
55+
"webpack-dev-middleware": "^3.1.0",
56+
"webpack-dev-server": "^3.1.1",
57+
"webpack-merge": "^4.1.2",
58+
"webpack-sources": "^1.1.0",
59+
"webpack-subresource-integrity": "^1.1.0-rc.4"
60+
},
61+
"keywords": [
62+
"angular",
63+
"devkit",
64+
"sdk",
65+
"Angular DevKit"
66+
],
67+
"repository": {
68+
"type": "git",
69+
"url": "https://github.com/angular/devkit.git"
70+
},
71+
"engines": {
72+
"node": ">= 8.9.0",
73+
"npm": ">= 5.5.1"
74+
},
75+
"author": "Angular Authors",
76+
"license": "MIT",
77+
"bugs": {
78+
"url": "https://github.com/angular/devkit/issues"
79+
},
80+
"homepage": "https://github.com/angular/devkit"
81+
}

‎plugins/karma.d.ts

Whitespace-only changes.

‎plugins/karma.js

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export interface BaseHrefWebpackPluginOptions {
2+
baseHref: string;
3+
}
4+
export declare class BaseHrefWebpackPlugin {
5+
readonly options: BaseHrefWebpackPluginOptions;
6+
constructor(options: BaseHrefWebpackPluginOptions);
7+
apply(compiler: any): void;
8+
}

‎src/angular-cli-files/lib/base-href-webpack/base-href-webpack-plugin.js

+34
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './base-href-webpack-plugin';

‎src/angular-cli-files/lib/base-href-webpack/index.js

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
export interface BuildOptions {
2+
optimization: boolean;
3+
environment?: string;
4+
outputPath: string;
5+
aot?: boolean;
6+
sourceMap?: boolean;
7+
evalSourceMap?: boolean;
8+
vendorChunk?: boolean;
9+
commonChunk?: boolean;
10+
baseHref?: string;
11+
deployUrl?: string;
12+
verbose?: boolean;
13+
progress?: boolean;
14+
i18nFile?: string;
15+
i18nFormat?: string;
16+
i18nOutFile?: string;
17+
i18nOutFormat?: string;
18+
i18nLocale?: string;
19+
i18nMissingTranslation?: string;
20+
extractCss?: boolean;
21+
bundleDependencies?: 'none' | 'all';
22+
watch?: boolean;
23+
outputHashing?: string;
24+
poll?: number;
25+
app?: string;
26+
deleteOutputPath?: boolean;
27+
preserveSymlinks?: boolean;
28+
extractLicenses?: boolean;
29+
showCircularDependencies?: boolean;
30+
buildOptimizer?: boolean;
31+
namedChunks?: boolean;
32+
subresourceIntegrity?: boolean;
33+
serviceWorker?: boolean;
34+
skipAppShell?: boolean;
35+
statsJson: boolean;
36+
forkTypeChecker: boolean;
37+
}
38+
export interface WebpackConfigOptions<T extends BuildOptions = BuildOptions> {
39+
root: string;
40+
projectRoot: string;
41+
buildOptions: T;
42+
appConfig: any;
43+
tsConfig: any;
44+
supportES2015: boolean;
45+
}
46+
export interface WebpackTestOptions extends BuildOptions {
47+
codeCoverage?: boolean;
48+
codeCoverageExclude: string[];
49+
}

‎src/angular-cli-files/models/build-options.js

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import { WebpackConfigOptions } from '../build-options';
2+
/**
3+
+ * license-webpack-plugin has a peer dependency on webpack-sources, list it in a comment to
4+
+ * let the dependency validator know it is used.
5+
+ *
6+
+ * require('webpack-sources')
7+
+ */
8+
export declare function getBrowserConfig(wco: WebpackConfigOptions): {
9+
devtool: string | boolean;
10+
resolve: {
11+
mainFields: string[];
12+
};
13+
output: {
14+
crossOriginLoading: string | boolean;
15+
};
16+
optimization: {
17+
runtimeChunk: string;
18+
splitChunks: {
19+
chunks: string;
20+
cacheGroups: {
21+
vendors: boolean;
22+
vendor: boolean | {
23+
name: string;
24+
chunks: string;
25+
test: (module: any, chunks: {
26+
name: string;
27+
}[]) => boolean;
28+
} | undefined;
29+
};
30+
};
31+
};
32+
plugins: any[];
33+
node: boolean;
34+
};

0 commit comments

Comments
 (0)