Skip to content

Commit 617d76f

Browse files
Merge pull request #14 from Talentia-Software-OSS/11.0.x
11.0.x => master
2 parents 090a030 + 19ef4c5 commit 617d76f

Some content is hidden

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

50 files changed

+3512
-8243
lines changed

.browserslistrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# https://github.com/browserslist/browserslist#readme
2+
3+
last 2 major versions
4+
Firefox ESR
5+
not dead
6+
not IE 9-11
7+
not kaios <= 2.5
8+
not op_mini all

.github/workflows/publish-oidc.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# This workflow will run tests using node and then publish a package to npm when a release is created
2+
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3+
4+
name: Node.js Publish with OIDC
5+
6+
on:
7+
workflow_dispatch:
8+
# release:
9+
# types: [created]
10+
11+
permissions:
12+
id-token: write # Required for OIDC
13+
contents: read
14+
15+
# This allows a subsequently queued workflow run to interrupt previous runs
16+
concurrency:
17+
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
18+
cancel-in-progress: true
19+
20+
jobs:
21+
# build:
22+
# uses: ./.github/workflows/build.yml
23+
24+
publish-npm:
25+
# needs: build
26+
runs-on: ubuntu-22.04
27+
strategy:
28+
matrix:
29+
node-version: [20.19.5]
30+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
31+
steps:
32+
- name: Check out repo
33+
uses: actions/checkout@v4
34+
35+
- name: Setup Node.js
36+
uses: actions/setup-node@v4
37+
with:
38+
node-version: ${{ matrix.node-version }}
39+
registry-url: 'https://registry.npmjs.org'
40+
cache: npm
41+
42+
# Ensure npm 11.5.1 or later is installed
43+
44+
- name: Update npm
45+
run: npm install -g npm@latest
46+
47+
- name: Install dependencies
48+
run: npm ci
49+
50+
- name: Run build only library
51+
run: npm run build:prod --if-present
52+
53+
- name: Publish package
54+
run: npm publish ./dist/angular-tree-component
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will run tests using node and then publish a package to npm when a release is created
22
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
33

4-
name: Node.js Publish
4+
name: Node.js Publish with Granular Token
55

66
on:
77
workflow_dispatch:

angular.json

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"prefix": "lib",
1111
"architect": {
1212
"build": {
13-
"builder": "@angular-devkit/build-angular:ng-packagr",
13+
"builder": "@angular/build:ng-packagr",
1414
"options": {
1515
"project": "projects/angular-tree-component/ng-package.json"
1616
},
@@ -43,11 +43,13 @@
4343
"prefix": "app",
4444
"architect": {
4545
"build": {
46-
"builder": "@angular-devkit/build-angular:browser",
46+
"builder": "@angular/build:application",
4747
"options": {
48-
"outputPath": "dist/demo",
48+
"outputPath": {
49+
"base": "dist/demo",
50+
"browser": ""
51+
},
4952
"index": "projects/demo/src/index.html",
50-
"main": "projects/demo/src/main.ts",
5153
"polyfills": [
5254
"zone.js"
5355
],
@@ -61,23 +63,13 @@
6163
"styles": [
6264
"projects/demo/src/styles.scss"
6365
],
64-
"scripts": [
65-
"node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"
66-
],
6766
"allowedCommonJsDependencies": [
6867
"mobx"
69-
]
68+
],
69+
"browser": "projects/demo/src/main.ts"
7070
},
7171
"configurations": {
7272
"production": {
73-
"optimization": {
74-
"scripts": true,
75-
"styles": {
76-
"minify": true,
77-
"inlineCritical": false
78-
},
79-
"fonts": true
80-
},
8173
"outputHashing": "all"
8274
},
8375
"development": {
@@ -89,7 +81,7 @@
8981
"defaultConfiguration": "production"
9082
},
9183
"serve": {
92-
"builder": "@angular-devkit/build-angular:dev-server",
84+
"builder": "@angular/build:dev-server",
9385
"configurations": {
9486
"production": {
9587
"buildTarget": "demo:build:production"

0 commit comments

Comments
 (0)