@igniteui/angular-templates 15.1.1112-alpha.2 → 15.1.1112
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/igx-ts/projects/_base/files/__dot__github/workflows/node.js.yml +2 -2
- package/igx-ts/projects/_base/files/package.json +1 -0
- package/igx-ts/projects/_base/files/src/app/app-routing.module.ts +3 -0
- package/igx-ts/projects/_base/index.js +1 -2
- package/igx-ts/projects/empty/index.d.ts +2 -2
- package/igx-ts/projects/empty/index.js +2 -2
- package/igx-ts/projects/side-nav/index.d.ts +2 -2
- package/igx-ts/projects/side-nav/index.js +2 -2
- package/igx-ts/projects/side-nav-auth/files/package.json +1 -0
- package/package.json +2 -2
- package/igx-ts/projects/_base_with_home/files/__dot__github/workflows/node.js.yml +0 -35
- package/igx-ts/projects/_base_with_home/files/src/app/app-routing.module.ts +0 -20
- package/igx-ts/projects/_base_with_home/index.d.ts +0 -14
- package/igx-ts/projects/_base_with_home/index.js +0 -22
- package/igx-ts/projects/base/index.d.ts +0 -14
- package/igx-ts/projects/base/index.js +0 -22
- /package/igx-ts/projects/{_base_with_home → _base}/files/src/app/home/home.component.html +0 -0
- /package/igx-ts/projects/{_base_with_home → _base}/files/src/app/home/home.component.scss +0 -0
- /package/igx-ts/projects/{_base_with_home → _base}/files/src/app/home/home.component.spec.ts +0 -0
- /package/igx-ts/projects/{_base_with_home → _base}/files/src/app/home/home.component.ts +0 -0
- /package/igx-ts/projects/{_base_with_home → _base}/files/src/assets/responsive.gif +0 -0
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { NgModule } from '@angular/core';
|
|
2
2
|
import { RouterModule, Routes } from '@angular/router';
|
|
3
|
+
import { HomeComponent } from './home/home.component';
|
|
3
4
|
|
|
4
5
|
import { PageNotFoundComponent } from './error-routing/not-found/not-found.component';
|
|
5
6
|
import { UncaughtErrorComponent } from './error-routing/error/uncaught-error.component';
|
|
6
7
|
import { ErrorRoutingModule } from './error-routing/error-routing.module';
|
|
7
8
|
|
|
8
9
|
export const routes: Routes = [
|
|
10
|
+
{ path: '', redirectTo: '/home', pathMatch: 'full'},
|
|
11
|
+
{ path: 'home', component: HomeComponent, data: { text: 'Home' }},
|
|
9
12
|
{ path: 'error', component: UncaughtErrorComponent },
|
|
10
13
|
{ path: '**', component: PageNotFoundComponent } // must always be last
|
|
11
14
|
];
|
|
@@ -75,8 +75,7 @@ $app-palette: palette($primary, $secondary, $surface);
|
|
|
75
75
|
DefaultTheme: "",
|
|
76
76
|
dot: ".",
|
|
77
77
|
path: name,
|
|
78
|
-
projectTemplate: this.id
|
|
79
|
-
yamlDefaultBranch: "<%=yaml-default-branch%>" // the placeholder will be evaluated by CodeGen
|
|
78
|
+
projectTemplate: this.id
|
|
80
79
|
};
|
|
81
80
|
switch (theme) {
|
|
82
81
|
case "Custom":
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProjectTemplate } from "@igniteui/cli-core";
|
|
2
|
-
import {
|
|
3
|
-
export declare class EmptyPageTemplate extends
|
|
2
|
+
import { BaseIgxProject } from "../_base";
|
|
3
|
+
export declare class EmptyPageTemplate extends BaseIgxProject implements ProjectTemplate {
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
6
6
|
description: string;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EmptyPageTemplate = void 0;
|
|
4
4
|
const path = require("path");
|
|
5
|
-
const
|
|
6
|
-
class EmptyPageTemplate extends
|
|
5
|
+
const _base_1 = require("../_base");
|
|
6
|
+
class EmptyPageTemplate extends _base_1.BaseIgxProject {
|
|
7
7
|
constructor() {
|
|
8
8
|
super(...arguments);
|
|
9
9
|
this.id = "empty";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProjectTemplate } from "@igniteui/cli-core";
|
|
2
|
-
import {
|
|
3
|
-
export declare class SideNavProject extends
|
|
2
|
+
import { BaseIgxProject } from "../_base";
|
|
3
|
+
export declare class SideNavProject extends BaseIgxProject implements ProjectTemplate {
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
6
6
|
description: string;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SideNavProject = void 0;
|
|
4
4
|
const path = require("path");
|
|
5
|
-
const
|
|
6
|
-
class SideNavProject extends
|
|
5
|
+
const _base_1 = require("../_base");
|
|
6
|
+
class SideNavProject extends _base_1.BaseIgxProject {
|
|
7
7
|
constructor() {
|
|
8
8
|
super(...arguments);
|
|
9
9
|
this.id = "side-nav";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@igniteui/angular-templates",
|
|
3
|
-
"version": "15.1.1112
|
|
3
|
+
"version": "15.1.1112",
|
|
4
4
|
"description": "Templates for Ignite UI for Angular projects and components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"author": "Infragistics",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@igniteui/cli-core": "~11.1.2
|
|
15
|
+
"@igniteui/cli-core": "~11.1.2",
|
|
16
16
|
"typescript": "~4.7.2"
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -1,35 +0,0 @@
|
|
|
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
|
-
# Using Ignite UI for Angular licensed packages via an access token:
|
|
5
|
-
# https://www.infragistics.com/products/ignite-ui-angular/angular/components/general/ignite-ui-licensing#github-actions-configuration
|
|
6
|
-
|
|
7
|
-
name: Node.js CI
|
|
8
|
-
|
|
9
|
-
on:
|
|
10
|
-
push:
|
|
11
|
-
branches: [ main ]
|
|
12
|
-
pull_request:
|
|
13
|
-
branches: [ main ]
|
|
14
|
-
|
|
15
|
-
jobs:
|
|
16
|
-
build:
|
|
17
|
-
|
|
18
|
-
runs-on: ubuntu-latest
|
|
19
|
-
|
|
20
|
-
strategy:
|
|
21
|
-
matrix:
|
|
22
|
-
node-version: [16.x, 18.x]
|
|
23
|
-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
|
24
|
-
|
|
25
|
-
steps:
|
|
26
|
-
- uses: actions/checkout@v2
|
|
27
|
-
- name: Use Node.js ${{ matrix.node-version }}
|
|
28
|
-
uses: actions/setup-node@v2
|
|
29
|
-
with:
|
|
30
|
-
node-version: ${{ matrix.node-version }}
|
|
31
|
-
cache: 'npm'
|
|
32
|
-
- run: npm ci
|
|
33
|
-
- run: npm run lint
|
|
34
|
-
- run: npm run build
|
|
35
|
-
- run: npm run test -- --watch=false --browsers ChromeHeadless
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { RouterModule, Routes } from '@angular/router';
|
|
3
|
-
import { HomeComponent } from './home/home.component';
|
|
4
|
-
|
|
5
|
-
import { PageNotFoundComponent } from './error-routing/not-found/not-found.component';
|
|
6
|
-
import { UncaughtErrorComponent } from './error-routing/error/uncaught-error.component';
|
|
7
|
-
import { ErrorRoutingModule } from './error-routing/error-routing.module';
|
|
8
|
-
|
|
9
|
-
export const routes: Routes = [
|
|
10
|
-
{ path: '', redirectTo: '/home', pathMatch: 'full'},
|
|
11
|
-
{ path: 'home', component: HomeComponent, data: { text: 'Home' }},
|
|
12
|
-
{ path: 'error', component: UncaughtErrorComponent },
|
|
13
|
-
{ path: '**', component: PageNotFoundComponent } // must always be last
|
|
14
|
-
];
|
|
15
|
-
|
|
16
|
-
@NgModule({
|
|
17
|
-
imports: [RouterModule.forRoot(routes), ErrorRoutingModule],
|
|
18
|
-
exports: [RouterModule, ErrorRoutingModule]
|
|
19
|
-
})
|
|
20
|
-
export class AppRoutingModule { }
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ProjectTemplate } from "@igniteui/cli-core";
|
|
2
|
-
import { BaseIgxProject } from "../_base";
|
|
3
|
-
export declare class BaseWithHomeProject extends BaseIgxProject implements ProjectTemplate {
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
description: string;
|
|
7
|
-
dependencies: string[];
|
|
8
|
-
framework: string;
|
|
9
|
-
projectType: string;
|
|
10
|
-
hasExtraConfiguration: boolean;
|
|
11
|
-
get templatePaths(): string[];
|
|
12
|
-
}
|
|
13
|
-
declare const _default: BaseWithHomeProject;
|
|
14
|
-
export default _default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BaseWithHomeProject = void 0;
|
|
4
|
-
const path = require("path");
|
|
5
|
-
const _base_1 = require("../_base");
|
|
6
|
-
class BaseWithHomeProject extends _base_1.BaseIgxProject {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(...arguments);
|
|
9
|
-
this.id = "base-with-home";
|
|
10
|
-
this.name = "Base with home";
|
|
11
|
-
this.description = "Empty project layout structure for Ignite UI for Angular with home page";
|
|
12
|
-
this.dependencies = [];
|
|
13
|
-
this.framework = "angular";
|
|
14
|
-
this.projectType = "igx-ts";
|
|
15
|
-
this.hasExtraConfiguration = false;
|
|
16
|
-
}
|
|
17
|
-
get templatePaths() {
|
|
18
|
-
return [...super.templatePaths, path.join(__dirname, "files")];
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.BaseWithHomeProject = BaseWithHomeProject;
|
|
22
|
-
exports.default = new BaseWithHomeProject();
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ProjectTemplate } from "@igniteui/cli-core";
|
|
2
|
-
import { BaseIgxProject } from "../_base";
|
|
3
|
-
export declare class BasePageTemplate extends BaseIgxProject implements ProjectTemplate {
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
description: string;
|
|
7
|
-
dependencies: string[];
|
|
8
|
-
framework: string;
|
|
9
|
-
projectType: string;
|
|
10
|
-
hasExtraConfiguration: boolean;
|
|
11
|
-
get templatePaths(): string[];
|
|
12
|
-
}
|
|
13
|
-
declare const _default: BasePageTemplate;
|
|
14
|
-
export default _default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BasePageTemplate = void 0;
|
|
4
|
-
const path = require("path");
|
|
5
|
-
const _base_1 = require("../_base");
|
|
6
|
-
class BasePageTemplate extends _base_1.BaseIgxProject {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(...arguments);
|
|
9
|
-
this.id = "base";
|
|
10
|
-
this.name = "Base Project";
|
|
11
|
-
this.description = "Project structure with routing";
|
|
12
|
-
this.dependencies = [];
|
|
13
|
-
this.framework = "angular";
|
|
14
|
-
this.projectType = "igx-ts";
|
|
15
|
-
this.hasExtraConfiguration = false;
|
|
16
|
-
}
|
|
17
|
-
get templatePaths() {
|
|
18
|
-
return [...super.templatePaths, path.join(__dirname, "files")];
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.BasePageTemplate = BasePageTemplate;
|
|
22
|
-
exports.default = new BasePageTemplate();
|
|
File without changes
|
|
File without changes
|
/package/igx-ts/projects/{_base_with_home → _base}/files/src/app/home/home.component.spec.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|