Skip to content

Commit fc92c04

Browse files
committed
feat(packages): #57 create the angular package
fixes: #57
1 parent c4438ee commit fc92c04

Some content is hidden

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

45 files changed

+16986
-4024
lines changed

.github/workflows/audit.yml

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
matrix:
3232
package:
3333
- core
34+
- angular
3435
- react
3536
- vue
3637
steps:

.github/workflows/build-angular.yml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Build - Angular
2+
3+
on:
4+
workflow_call:
5+
push:
6+
branches:
7+
- main
8+
paths:
9+
- packages/angular-workspace/**
10+
pull_request:
11+
branches:
12+
- main
13+
paths:
14+
- packages/angular-workspace/**
15+
16+
# When pushing a new commit we should
17+
# cancel the previous test run to not
18+
# consume more runners than we need to.
19+
concurrency:
20+
group: ${{ github.ref }}_build_angular
21+
cancel-in-progress: true
22+
23+
jobs:
24+
build:
25+
runs-on: ubuntu-latest
26+
strategy:
27+
matrix:
28+
node-version:
29+
- 20.x
30+
- 22.x
31+
steps:
32+
- uses: actions/checkout@v4
33+
34+
- name: Setup Node v${{ matrix.node-version }}
35+
uses: actions/setup-node@v4
36+
with:
37+
node-version: ${{ matrix.node-version }}
38+
39+
- name: Install Core
40+
run: npm install -w @poppy-ui/core
41+
shell: bash
42+
43+
- name: Build Core
44+
run: |
45+
npm run build -w @poppy-ui/core --if-present
46+
npm pack -w @poppy-ui/core
47+
PKG=$(ls poppy-ui-core-*.tgz)
48+
mv $PKG poppy-ui-core-${{ matrix.node-version }}.tgz
49+
shell: bash
50+
51+
- name: Install Angular
52+
run: |
53+
npm install ./poppy-ui-core-${{ matrix.node-version }}.tgz -w @poppy-ui/vue
54+
npm install -w angular-workspace
55+
npm install -w @poppy-ui/angular
56+
shell: bash
57+
58+
- name: Build
59+
run: npm -w angular-workspace run build --if-present

.github/workflows/release.yml

+21
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ jobs:
6464
- test
6565
uses: ./.github/workflows/build-core.yml
6666

67+
build-angular:
68+
name: Build - Angular
69+
needs:
70+
- test
71+
uses: ./.github/workflows/build-angular.yml
72+
6773
build-vue:
6874
name: Build - Vue
6975
needs:
@@ -79,6 +85,7 @@ jobs:
7985
publish:
8086
needs:
8187
- build-core
88+
- build-angular
8289
- build-react
8390
- build-vue
8491
runs-on: ubuntu-latest
@@ -115,6 +122,20 @@ jobs:
115122
env:
116123
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
117124

125+
- name: Upgrade - Angular
126+
run: |
127+
npm -w @poppy-ui/angular uninstall @poppy-ui/core
128+
npm -w @poppy-ui/angular install @poppy-ui/core@${{ steps.bump.outputs.version }}
129+
130+
- name: Publish Angular
131+
run: |
132+
npm run build
133+
cd dist/component-library
134+
npm publish
135+
working-directory: packages/angular-workspace
136+
env:
137+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
138+
118139
- name: Upgrade - Vue
119140
run: |
120141
npm uninstall @poppy-ui/core -w @poppy-ui/vue

.gitignore

+2-3
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,14 @@ prerender-hydrated.html
5454
prerender-static.html
5555

5656
# stencil
57-
packages/angular/css/
58-
packages/react/css/
59-
packages/vue/css/
6057
packages/core/components/
6158
packages/core/css/
6259
packages/core/hydrate/
6360
packages/core/loader/
6461
packages/core/www/
6562
packages/.stencil/
63+
packages/**/css/
64+
packages/angular*/**/css/
6665

6766
# playwright
6867
packages/core/test-results/

biome.jsonc

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
"files": {
44
"ignore": [
55
"**/package.json",
6+
"**/tsconfig*.json",
67
"**/*.d.ts",
7-
"packages/core/src/components.ts",
8-
"packages/core/src/components-config.ts",
98
"packages/docs/*",
9+
"packages/**/generated/*",
1010
"packages/react/src/components.ts",
11-
"packages/vue/src/vue-component-lib/utils.ts",
1211
"packages/vue/src/components.ts",
1312
"tests/**"
1413
]

0 commit comments

Comments
 (0)