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.
@@ -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.1",
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.1",
76
- "@igniteui/cli-core": "~10.1.0-beta.1",
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 = "DateTime Input";
12
+ this.name = "Date Time Input";
13
13
  this.description = "basic IgcDateTimeInput";
14
14
  }
15
15
  addClassDeclaration(mainModule, projPath, name, modulePath) {
@@ -7,29 +7,20 @@ import {
7
7
  } from 'igniteui-webcomponents';
8
8
 
9
9
  defineComponents(IgcIconButtonComponent);
10
- const buildIcon =
11
- '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z"/></svg>';
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
- 'build',
15
- buildIcon,
16
- 'material',
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
- <label>Contact Infragistics support: </label>
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
  }
@@ -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
+
@@ -41,7 +41,7 @@
41
41
  "concurrently": "^6.3.0",
42
42
  "deepmerge": "^4.2.2",
43
43
  "eslint": "^7.32.0",
44
- "igniteui-cli": "10.1.0-beta.1",
44
+ "igniteui-cli": "10.1.0-beta.10",
45
45
  "rimraf": "^3.0.2",
46
46
  "rollup": "^2.60.0",
47
47
  "rollup-plugin-copy-assets": "^2.0.3",
@@ -7,3 +7,17 @@ html,
7
7
  body {
8
8
  height: 100%;
9
9
  }
10
+
11
+ /* minor CSS reset */
12
+ body, h1, h2, h3, h4, h5, h6, p {
13
+ margin: 0;
14
+ }
15
+
16
+ html {
17
+ box-sizing: border-box
18
+ }
19
+
20
+ img, video {
21
+ height: auto;
22
+ max-width: 100%;
23
+ }
@@ -50,7 +50,7 @@
50
50
  "concurrently": "^6.3.0",
51
51
  "deepmerge": "^4.2.2",
52
52
  "eslint": "^7.32.0",
53
- "igniteui-cli": "10.1.0-beta.1",
53
+ "igniteui-cli": "10.1.0-beta.10",
54
54
  "rimraf": "^3.0.2",
55
55
  "rollup": "^2.60.0",
56
56
  "rollup-plugin-copy-assets": "^2.0.3",