igniteui-cli 14.1.0 → 14.2.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "igniteui-cli",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.2.0-beta.0",
|
|
4
4
|
"description": "CLI tool for creating Ignite UI projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"all": true
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@igniteui/angular-templates": "~18.
|
|
76
|
-
"@igniteui/cli-core": "~14.
|
|
75
|
+
"@igniteui/angular-templates": "~18.2.1420-beta.0",
|
|
76
|
+
"@igniteui/cli-core": "~14.2.0-beta.0",
|
|
77
77
|
"@inquirer/prompts": "^5.4.0",
|
|
78
78
|
"@types/yargs": "^17.0.33",
|
|
79
79
|
"chalk": "^5.3.0",
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
name: Deploy GitHub Pages
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ <%=yamlDefaultBranch%> ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ <%=yamlDefaultBranch%> ]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
build-and-deploy:
|
|
11
|
+
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
|
|
14
|
+
permissions:
|
|
15
|
+
pages: write
|
|
16
|
+
id-token: write
|
|
17
|
+
|
|
18
|
+
strategy:
|
|
19
|
+
matrix:
|
|
20
|
+
node-version: [18.x, 20.x]
|
|
21
|
+
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v3
|
|
24
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
25
|
+
uses: actions/setup-node@v2
|
|
26
|
+
with:
|
|
27
|
+
node-version: ${{ matrix.node-version }}
|
|
28
|
+
# cache: 'npm' # enable after committing lock file from first install
|
|
29
|
+
- run: npm i # replace with 'npm ci' after committing lock file from first install
|
|
30
|
+
- name: Set environment variable for basename
|
|
31
|
+
run: echo "VITE_BASENAME=/${{ github.event.repository.name }}" >> $GITHUB_ENV
|
|
32
|
+
- run: npm run build -- --base=/${{ github.event.repository.name }}/
|
|
33
|
+
- name: Update Resource Paths
|
|
34
|
+
run: find ./dist/assets -name "*.js" -exec sed -i 's|src/assets|${{ github.event.repository.name }}/assets|g' {} +
|
|
35
|
+
- name: Copy Resources to dist
|
|
36
|
+
run: mkdir -p ./dist/assets && cp -R ./src/assets/* ./dist/assets/
|
|
37
|
+
- name: Upload build artifact to GitHub Pages
|
|
38
|
+
uses: actions/upload-pages-artifact@v1
|
|
39
|
+
with:
|
|
40
|
+
path: ./dist
|
|
41
|
+
- name: Deploy to GitHub Pages
|
|
42
|
+
uses: actions/deploy-pages@v1
|
|
@@ -5,6 +5,8 @@ import App from './app/app';
|
|
|
5
5
|
import { routes } from "./app/app-routes";
|
|
6
6
|
import 'react-app-polyfill/ie11';
|
|
7
7
|
|
|
8
|
+
const basename = import.meta.env.VITE_BASENAME || '/';
|
|
9
|
+
|
|
8
10
|
/** Required in IE11 for Charts */
|
|
9
11
|
Number.isNaN = Number.isNaN || function(value) {
|
|
10
12
|
return value !== value;
|
|
@@ -15,7 +17,10 @@ const router = createBrowserRouter([
|
|
|
15
17
|
element: <App />,
|
|
16
18
|
children: [...routes]
|
|
17
19
|
}
|
|
18
|
-
]
|
|
20
|
+
],
|
|
21
|
+
{
|
|
22
|
+
basename: basename
|
|
23
|
+
});
|
|
19
24
|
|
|
20
25
|
ReactDOM.createRoot(document.getElementById('root')!).render(
|
|
21
26
|
<React.StrictMode>
|
package/templates/webcomponents/igc-ts/projects/_base/files/__dot__github/workflows/github.io.yml
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
name: Deploy GitHub Pages
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ <%=yamlDefaultBranch%> ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ <%=yamlDefaultBranch%> ]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
build-and-deploy:
|
|
11
|
+
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
|
|
14
|
+
permissions:
|
|
15
|
+
pages: write
|
|
16
|
+
id-token: write
|
|
17
|
+
|
|
18
|
+
strategy:
|
|
19
|
+
matrix:
|
|
20
|
+
node-version: [18.x, 20.x]
|
|
21
|
+
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v3
|
|
24
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
25
|
+
uses: actions/setup-node@v2
|
|
26
|
+
with:
|
|
27
|
+
node-version: ${{ matrix.node-version }}
|
|
28
|
+
# cache: 'npm' # enable after committing lock file from first install
|
|
29
|
+
- run: npm i # replace with 'npm ci' after committing lock file from first install
|
|
30
|
+
- run: npm run build
|
|
31
|
+
- name: Update base href in index.html
|
|
32
|
+
run: sed -i 's|<base href="[^"]*"|<base href="/${{ github.event.repository.name }}/">|' ./dist/index.html
|
|
33
|
+
- name: Update Resource Paths
|
|
34
|
+
run: find ./dist -maxdepth 1 -type f ! -name 'sw*.js' ! -name 'workbox*.js' -name '*.js' -exec sed -i -e "s|/src/assets|/${{ github.event.repository.name }}/src/assets|g" -e "s|url('/src/assets|url('/${{ github.event.repository.name }}/src/assets|g" {} +
|
|
35
|
+
- name: Copy ig-theme.css to dist
|
|
36
|
+
run: cp ./ig-theme.css ./dist/
|
|
37
|
+
- name: Update href Paths for ig-theme.css
|
|
38
|
+
run: find ./dist -type f -exec sed -i "s|href=\"../../ig-theme.css\"|href=\"../../${{ github.event.repository.name }}/ig-theme.css\"|g" {} +
|
|
39
|
+
- name: Upload build artifact to GitHub Pages
|
|
40
|
+
uses: actions/upload-pages-artifact@v1
|
|
41
|
+
with:
|
|
42
|
+
path: ./dist
|
|
43
|
+
- name: Deploy to GitHub Pages
|
|
44
|
+
uses: actions/deploy-pages@v1
|