Skip to content

Commit 44086c6

Browse files
committed
build: move devkit repo back to angular-cli
1 parent 3ba18a9 commit 44086c6

File tree

1,431 files changed

+87108
-18524
lines changed

Some content is hidden

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

1,431 files changed

+87108
-18524
lines changed

.appveyor.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,18 @@ matrix:
77
install:
88
- ps: Install-Product node $env:nodejs_version
99
- npm install
10+
# Appveyor (via chocolatey) cannot use older versions of Chrome:
11+
# https://github.com/chocolatey/chocolatey-coreteampackages/tree/master/automatic/googlechrome
12+
- npm run webdriver-update-appveyor
1013

1114
test_script:
1215
- node --version
1316
- npm --version
14-
- npm run test:cli
15-
- node tests\run_e2e.js --appveyor "--glob=tests/{basic,commands,generate,build/styles}/**"
17+
- npm test
18+
- npm run test-large
1619

1720
build: off
1821
deploy: off
19-
shallow_clone: true
2022

2123
cache:
2224
- node_modules -> package-lock.json

.circleci/bazel.rc

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# These options are enabled when running on CI
2+
# We do this by copying this file to /etc/bazel.bazelrc at the start of the build.
3+
4+
# Echo all the configuration settings and their source
5+
build --announce_rc
6+
7+
# Don't be spammy in the logs
8+
build --noshow_progress
9+
10+
# Don't run manual tests
11+
test --test_tag_filters=-manual
12+
13+
# Workaround https://github.com/bazelbuild/bazel/issues/3645
14+
# Bazel doesn't calculate the memory ceiling correctly when running under Docker.
15+
# Limit Bazel to consuming resources that fit in CircleCI "medium" class which is the default:
16+
# https://circleci.com/docs/2.0/configuration-reference/#resource_class
17+
build --local_resources=3072,2.0,1.0
18+
19+
# Retry in the event of flakes
20+
test --flaky_test_attempts=2

.circleci/config.yml

+183
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
version: 2
2+
3+
_defaults: &defaults
4+
working_directory: ~/ng
5+
docker:
6+
- image: angular/ngcontainer:0.3.0
7+
8+
_post_checkout: &post_checkout
9+
post: git pull --ff-only origin "refs/pull/${CI_PULL_REQUEST//*pull\//}/merge"
10+
11+
_root_package_lock_key: &_root_package_lock_key
12+
key: angular_devkit-{{ checksum "package-lock.json" }}-0.3.0
13+
14+
jobs:
15+
install:
16+
<<: *defaults
17+
steps:
18+
- checkout: *post_checkout
19+
- restore_cache: *_root_package_lock_key
20+
- run: npm install --no-save
21+
- save_cache:
22+
<<: *_root_package_lock_key
23+
paths:
24+
- "node_modules"
25+
26+
lint:
27+
<<: *defaults
28+
steps:
29+
- checkout: *post_checkout
30+
- restore_cache: *_root_package_lock_key
31+
- run: npm run lint
32+
33+
validate:
34+
<<: *defaults
35+
steps:
36+
- checkout: *post_checkout
37+
- restore_cache: *_root_package_lock_key
38+
- run: npm run validate -- --ci
39+
40+
test:
41+
<<: *defaults
42+
steps:
43+
- checkout: *post_checkout
44+
- restore_cache: *_root_package_lock_key
45+
- run: npm run test -- --code-coverage --full
46+
47+
test-large:
48+
<<: *defaults
49+
resource_class: large
50+
steps:
51+
- checkout: *post_checkout
52+
- restore_cache: *_root_package_lock_key
53+
- run: npm run webdriver-update-circleci
54+
- run: npm run test-large -- --code-coverage --full
55+
56+
e2e-cli:
57+
<<: *defaults
58+
environment:
59+
BASH_ENV: ~/.profile
60+
resource_class: xlarge
61+
parallelism: 4
62+
steps:
63+
- checkout: *post_checkout
64+
- restore_cache: *_root_package_lock_key
65+
- run: xvfb-run -a npm run test-cli-e2e -- --nb-shards=${CIRCLE_NODE_TOTAL} --shard=${CIRCLE_NODE_INDEX}
66+
67+
integration:
68+
<<: *defaults
69+
steps:
70+
- checkout:
71+
<<: *post_checkout
72+
- restore_cache:
73+
key: angular_devkit-{{ checksum "package-lock.json" }}
74+
- restore_cache:
75+
key: angular_devkit-integration-simple-{{ checksum "tests/@angular_devkit/build_optimizer/webpack/simple-app/package-lock.json" }}
76+
- restore_cache:
77+
key: angular_devkit-integration-aio-{{ checksum "tests/@angular_devkit/build_optimizer/webpack/aio-app/package-lock.json" }}
78+
79+
- run: xvfb-run -a npm run integration
80+
81+
- save_cache:
82+
key: angular_devkit-integration-simple-{{ checksum "tests/@angular_devkit/build_optimizer/webpack/simple-app/package-lock.json" }}
83+
paths:
84+
- "tests/@angular_devkit/build_optimizer/webpack/simple-app/node_modules"
85+
- save_cache:
86+
key: angular_devkit-integration-aio-{{ checksum "tests/@angular_devkit/build_optimizer/webpack/aio-app/package-lock.json" }}
87+
paths:
88+
- "tests/@angular_devkit/build_optimizer/webpack/aio-app/node_modules"
89+
90+
build:
91+
<<: *defaults
92+
steps:
93+
- checkout: *post_checkout
94+
- restore_cache: *_root_package_lock_key
95+
- run: npm run admin -- build
96+
97+
build-bazel:
98+
<<: *defaults
99+
resource_class: large
100+
steps:
101+
- checkout: *post_checkout
102+
- run: sudo cp .circleci/bazel.rc /etc/bazel.bazelrc
103+
- run: bazel run @nodejs//:npm install
104+
- run: bazel build //packages/...
105+
106+
snapshot_publish:
107+
<<: *defaults
108+
steps:
109+
- checkout: *post_checkout
110+
- restore_cache: *_root_package_lock_key
111+
- run:
112+
name: Decrypt Credentials
113+
command: |
114+
openssl aes-256-cbc -d -in .circleci/github_token -k "${KEY}" -out ~/github_token
115+
- run:
116+
name: Deployment to Snapshot
117+
command: |
118+
npm run admin -- snapshots --verbose --githubTokenFile=${HOME}/github_token
119+
120+
publish:
121+
<<: *defaults
122+
steps:
123+
- checkout: *post_checkout
124+
- restore_cache: *_root_package_lock_key
125+
- run:
126+
name: Decrypt Credentials
127+
command: |
128+
openssl aes-256-cbc -d -in .circleci/npm_token -k "${KEY}" -out ~/.npmrc
129+
- run:
130+
name: Deployment to NPM
131+
command: |
132+
npm run admin -- publish --verbose
133+
134+
workflows:
135+
version: 2
136+
default_workflow:
137+
jobs:
138+
- install
139+
- lint:
140+
requires:
141+
- install
142+
- validate:
143+
requires:
144+
- install
145+
- build:
146+
requires:
147+
- lint
148+
- validate
149+
- build-bazel:
150+
requires:
151+
- lint
152+
- validate
153+
- test:
154+
requires:
155+
- build
156+
- test-large:
157+
requires:
158+
- build
159+
- integration:
160+
requires:
161+
- build
162+
- e2e-cli:
163+
requires:
164+
- build
165+
- snapshot_publish:
166+
requires:
167+
- test
168+
- build
169+
- e2e-cli
170+
filters:
171+
branches:
172+
only: master
173+
- publish:
174+
requires:
175+
- test
176+
- build
177+
- integration
178+
- snapshot_publish
179+
filters:
180+
tags:
181+
only: /^v\d+/
182+
branches:
183+
ignore: /.*/

.circleci/github_token

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Salted__z�����"B��Y��|�ۍ�V�QֳUzW�/G��R �e}j�% ���<%������

.circleci/npm_token

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Salted__�/��L ���ö���;��(.|��� ��C��Ԓ����5`h�8��i8J�o*�?}���3�0f�!�'�B�̠�"UƊ&K!�%�ɵڤ

.editorconfig

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
root = true
44

5-
[*]
5+
[*.ts]
66
charset = utf-8
77
indent_style = space
88
indent_size = 2
99
insert_final_newline = true
10+
spaces_around_brackets = inside
1011
trim_trailing_whitespace = true
1112

1213
[*.md]

.eslintignore

-7
This file was deleted.

0 commit comments

Comments
 (0)