igniteui-cli 10.1.0-beta.1 → 10.1.0-beta.10
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/lib/commands/add.js +7 -0
- package/package.json +3 -3
- package/templates/webcomponents/TypeScriptFileUpdate.js +4 -4
- package/templates/webcomponents/igc-ts/date-time-input/default/index.js +1 -1
- package/templates/webcomponents/igc-ts/icon-button/default/files/src/app/__path__/__filePrefix__.ts +6 -15
- package/templates/webcomponents/igc-ts/projects/_base/files/__dot__github/workflows/node.js.yml +33 -0
- package/templates/webcomponents/igc-ts/projects/_base/files/package.json +1 -1
- package/templates/webcomponents/igc-ts/projects/_base/files/styles.css +14 -0
- package/templates/webcomponents/igc-ts/projects/_base_with_home/files/package.json +1 -1
package/lib/commands/add.js
CHANGED
|
@@ -108,6 +108,13 @@ command = {
|
|
|
108
108
|
},
|
|
109
109
|
addTemplate(fileName, template, options) {
|
|
110
110
|
return __awaiter(this, void 0, void 0, function* () {
|
|
111
|
+
if (!options) {
|
|
112
|
+
options = {
|
|
113
|
+
parentName: "app",
|
|
114
|
+
parentRoutingModulePath: "src/app/app-routing.ts",
|
|
115
|
+
selector: "app-" + template.id
|
|
116
|
+
};
|
|
117
|
+
}
|
|
111
118
|
fileName = fileName.trim();
|
|
112
119
|
const name = cli_core_1.Util.nameFromPath(fileName);
|
|
113
120
|
// letter+alphanumeric check
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "igniteui-cli",
|
|
3
|
-
"version": "10.1.0-beta.
|
|
3
|
+
"version": "10.1.0-beta.10",
|
|
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": "~14.1.1010-beta.
|
|
76
|
-
"@igniteui/cli-core": "~10.1.0-beta.
|
|
75
|
+
"@igniteui/angular-templates": "~14.1.1010-beta.10",
|
|
76
|
+
"@igniteui/cli-core": "~10.1.0-beta.10",
|
|
77
77
|
"chalk": "^2.3.2",
|
|
78
78
|
"fs-extra": "^3.0.1",
|
|
79
79
|
"glob": "^7.1.2",
|
|
@@ -188,7 +188,7 @@ class TypeScriptFileUpdate {
|
|
|
188
188
|
else {
|
|
189
189
|
importClause = undefined;
|
|
190
190
|
}
|
|
191
|
-
const importDeclaration = ts.factory.createImportDeclaration(undefined, undefined, importClause, ts.factory.createStringLiteral(importPath));
|
|
191
|
+
const importDeclaration = ts.factory.createImportDeclaration(undefined, undefined, importClause, ts.factory.createStringLiteral(importPath, true));
|
|
192
192
|
return importDeclaration;
|
|
193
193
|
}
|
|
194
194
|
//#endregion ts.TransformerFactory
|
|
@@ -326,9 +326,9 @@ class TypeScriptFileUpdate {
|
|
|
326
326
|
};
|
|
327
327
|
}
|
|
328
328
|
createRouteEntry(filePath, className, linkText, routerAlias) {
|
|
329
|
-
const routePath = ts.factory.createPropertyAssignment("path", ts.factory.createStringLiteral(filePath));
|
|
330
|
-
const routeComponent = ts.factory.createPropertyAssignment("component", ts.factory.createStringLiteral(className));
|
|
331
|
-
const routeData = ts.factory.createPropertyAssignment("name", ts.factory.createStringLiteral(linkText));
|
|
329
|
+
const routePath = ts.factory.createPropertyAssignment("path", ts.factory.createStringLiteral(filePath, true));
|
|
330
|
+
const routeComponent = ts.factory.createPropertyAssignment("component", ts.factory.createStringLiteral(className, true));
|
|
331
|
+
const routeData = ts.factory.createPropertyAssignment("name", ts.factory.createStringLiteral(linkText, true));
|
|
332
332
|
if (routerAlias) {
|
|
333
333
|
const childrenData = ts.factory.createPropertyAssignment("children", ts.factory.createIdentifier(routerAlias));
|
|
334
334
|
return ts.factory.createObjectLiteralExpression([routePath, routeComponent, routeData, childrenData]);
|
|
@@ -9,7 +9,7 @@ class IgcDateTimeInputTemplate extends IgniteUIForWebComponentsTemplate_1.Ignite
|
|
|
9
9
|
this.listInComponentTemplates = true;
|
|
10
10
|
this.id = "date-time-input";
|
|
11
11
|
this.projectType = "igc-ts";
|
|
12
|
-
this.name = "
|
|
12
|
+
this.name = "Date Time Input";
|
|
13
13
|
this.description = "basic IgcDateTimeInput";
|
|
14
14
|
}
|
|
15
15
|
addClassDeclaration(mainModule, projPath, name, modulePath) {
|
package/templates/webcomponents/igc-ts/icon-button/default/files/src/app/__path__/__filePrefix__.ts
CHANGED
|
@@ -7,29 +7,20 @@ import {
|
|
|
7
7
|
} from 'igniteui-webcomponents';
|
|
8
8
|
|
|
9
9
|
defineComponents(IgcIconButtonComponent);
|
|
10
|
-
const
|
|
11
|
-
|
|
10
|
+
const thumbUpIcon =
|
|
11
|
+
'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z"/></svg>';
|
|
12
12
|
|
|
13
13
|
registerIconFromText(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
"thumb-up",
|
|
15
|
+
thumbUpIcon,
|
|
16
|
+
"material"
|
|
17
17
|
);
|
|
18
18
|
|
|
19
19
|
@customElement('app-$(path)')
|
|
20
20
|
export default class IconButton extends LitElement {
|
|
21
21
|
render() {
|
|
22
22
|
return html`
|
|
23
|
-
|
|
24
|
-
<igc-icon-button
|
|
25
|
-
name="build"
|
|
26
|
-
collection="material"
|
|
27
|
-
href="https://www.infragistics.com/support"
|
|
28
|
-
target="_blank"
|
|
29
|
-
variant="flat"
|
|
30
|
-
size="large"
|
|
31
|
-
>
|
|
32
|
-
</igc-icon-button>
|
|
23
|
+
<igc-icon-button name="thumb-up" collection="material" href="https://www.infragistics.com/support" variant="contained" size="large"></igc-icon-button>
|
|
33
24
|
`;
|
|
34
25
|
}
|
|
35
26
|
}
|
package/templates/webcomponents/igc-ts/projects/_base/files/__dot__github/workflows/node.js.yml
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
|
|
2
|
+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
|
3
|
+
|
|
4
|
+
name: Node.js CI
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
branches: [ main ]
|
|
9
|
+
pull_request:
|
|
10
|
+
branches: [ main ]
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
build:
|
|
14
|
+
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
|
|
17
|
+
strategy:
|
|
18
|
+
matrix:
|
|
19
|
+
node-version: [14.x, 16.x]
|
|
20
|
+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
|
21
|
+
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v2
|
|
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'
|
|
29
|
+
- run: npm i # replace with 'npm ci' after committing lock file from first install
|
|
30
|
+
# - run: npm run lint
|
|
31
|
+
- run: npm run build
|
|
32
|
+
- run: npm run test
|
|
33
|
+
|