Skip to content

Commit

Permalink
fix(core): exporting internal types help-me-mom#3709
Browse files Browse the repository at this point in the history
  • Loading branch information
satanTime committed Oct 9, 2022
1 parent 1832d56 commit 8b9cb23
Show file tree
Hide file tree
Showing 144 changed files with 14,280 additions and 1,280 deletions.
84 changes: 84 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,35 @@ commands:
- run:
name: Spreading Build
command: npm run s:<< parameters.dir >>
- run:
name: Spreading App
command: npm run s:app:<< parameters.dir >>
- run:
name: Spreading Tests
command: npm run s:test:<< parameters.dir >>
- run:
name: Unit Tests
command: npm run test:<< parameters.dir >><< parameters.es >><< parameters.engine >>
lib:
parameters:
dir:
description: Directory in /e2e/
type: string
steps:
- checkout
- attach_workspace:
at: dist
- restore_cache:
key: << parameters.dir >>-<< pipeline.parameters.lockindex >>-{{ arch }}-{{ checksum "e2e/<< parameters.dir >>/package-lock.json" }}
- run:
name: Spreading Build
command: npm run s:<< parameters.dir >>
- run:
name: Spreading App
command: npm run s:app:<< parameters.dir >>
- run:
name: Building Lib
command: npm run lib:<< parameters.dir >>

jobs:
Core:
Expand Down Expand Up @@ -394,6 +417,31 @@ jobs:
dir: << parameters.dir >>
es: << parameters.es >>
engine: << parameters.engine >>
Lib Build:
parameters:
node:
type: executor
default: core
dir:
type: string
branch:
type: string
executor: << parameters.node >>
steps:
- run: date
- when:
condition:
or:
- not:
matches:
pattern: '(renovate|dependabot/npm_and_yarn)/(tests-e2e|e2e|docs)/.*'
value: << pipeline.git.branch >>
- matches:
pattern: '(renovate|dependabot/npm_and_yarn)/e2e/<< parameters.branch >>/.*'
value: << pipeline.git.branch >>
steps:
- lib:
dir: << parameters.dir >>

workflows:
version: 2
Expand Down Expand Up @@ -583,3 +631,39 @@ workflows:
parameters:
dir:
- a15

# testing lib build
- Lib Build:
name: << matrix.dir >>:build
node: << matrix.dir >>
dir: << matrix.dir >>
branch: << matrix.dir >>
requires:
- << matrix.dir >>:install
matrix:
parameters:
dir:
- a6
- a7
- a8
- a9
- a10
- a11
- a12
- a13
- a14
- a15

# testing lib build
- Lib Build:
name: << matrix.dir >>:build
dir: << matrix.dir >>
branch: << matrix.dir >>
requires:
- << matrix.dir >>:install
matrix:
parameters:
dir:
- jasmine
- jest
- min
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ dist/
docs/**/*.md
docs/.docusaurus
e2e/*/.angular
e2e/*/src/app
e2e/*/src/test
e2e/nx/apps/*/src/app
e2e/nx/apps/*/src/test
e2e/nx/decorate-angular-cli.js
node_modules/
Expand Down
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ dist/
docs/**/*.md
docs/.docusaurus
e2e/*/.angular
e2e/*/src/app
e2e/*/src/test
e2e/nx/apps/*/src/app
e2e/nx/apps/*/src/test
node_modules/
tests-e2e/.angular
Expand Down
3 changes: 3 additions & 0 deletions docker-compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,23 @@ docker-compose up -- a5es5 && \
nvm install && \
nvm use && \
node ./node_modules/puppeteer/install.js && \
node ./node_modules/node-sass/scripts/install.js && \
cd ../..

docker-compose up -- a5es2015 && \
cd ./e2e/a5es2015 && \
nvm install && \
nvm use && \
node ./node_modules/puppeteer/install.js && \
node ./node_modules/node-sass/scripts/install.js && \
cd ../..

docker-compose up -- a6 && \
cd ./e2e/a6 && \
nvm install && \
nvm use && \
node ./node_modules/puppeteer/install.js && \
node ./node_modules/node-sass/scripts/install.js && \
cd ../..

docker-compose up -- a7 && \
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ services:
- --omit=optional

a5es5:
image: satantime/puppeteer-node:6.17.1
image: satantime/puppeteer-node:8.17.0
working_dir: /app
volumes:
- ./e2e/a5es5:/app
Expand All @@ -54,7 +54,7 @@ services:
- --no-optional

a5es2015:
image: satantime/puppeteer-node:6.17.1
image: satantime/puppeteer-node:8.17.0
working_dir: /app
volumes:
- ./e2e/a5es2015:/app
Expand Down
2 changes: 2 additions & 0 deletions e2e/a10/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/dist
/node_modules
/src/app
/src/test
15 changes: 15 additions & 0 deletions e2e/a10/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,21 @@
}
}
}
},
"lib": {
"projectType": "library",
"root": "",
"sourceRoot": "src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"project": "ng-package.json",
"tsConfig": "tsconfig.json"
}
}
}
}
},
"defaultProject": "a10"
Expand Down
8 changes: 8 additions & 0 deletions e2e/a10/ng-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "./node_modules/ng-packagr/ng-package.schema.json",
"dest": "./dist/lib",
"lib": {
"entryFile": "src/app/app.module.ts"
},
"whitelistedNonPeerDependencies": ["@angular/", "rxjs", "zone.js"]
}
Loading

0 comments on commit 8b9cb23

Please sign in to comment.