@igniteui/angular-templates 15.1.1111 → 15.1.1112-alpha.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/igx-ts/projects/_base/files/__dot__github/workflows/node.js.yml +2 -2
- package/igx-ts/projects/_base/files/src/app/app-routing.module.ts +0 -3
- package/igx-ts/projects/_base_with_home/files/__dot__github/workflows/node.js.yml +35 -0
- package/igx-ts/projects/_base_with_home/files/src/app/app-routing.module.ts +20 -0
- package/igx-ts/projects/_base_with_home/index.d.ts +14 -0
- package/igx-ts/projects/_base_with_home/index.js +22 -0
- 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/package.json +2 -2
- /package/igx-ts/projects/{_base → _base_with_home}/files/src/app/home/home.component.html +0 -0
- /package/igx-ts/projects/{_base → _base_with_home}/files/src/app/home/home.component.scss +0 -0
- /package/igx-ts/projects/{_base → _base_with_home}/files/src/app/home/home.component.spec.ts +0 -0
- /package/igx-ts/projects/{_base → _base_with_home}/files/src/app/home/home.component.ts +0 -0
- /package/igx-ts/projects/{_base → _base_with_home}/files/src/assets/responsive.gif +0 -0
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { NgModule } from '@angular/core';
|
|
2
2
|
import { RouterModule, Routes } from '@angular/router';
|
|
3
|
-
import { HomeComponent } from './home/home.component';
|
|
4
3
|
|
|
5
4
|
import { PageNotFoundComponent } from './error-routing/not-found/not-found.component';
|
|
6
5
|
import { UncaughtErrorComponent } from './error-routing/error/uncaught-error.component';
|
|
7
6
|
import { ErrorRoutingModule } from './error-routing/error-routing.module';
|
|
8
7
|
|
|
9
8
|
export const routes: Routes = [
|
|
10
|
-
{ path: '', redirectTo: '/home', pathMatch: 'full'},
|
|
11
|
-
{ path: 'home', component: HomeComponent, data: { text: 'Home' }},
|
|
12
9
|
{ path: 'error', component: UncaughtErrorComponent },
|
|
13
10
|
{ path: '**', component: PageNotFoundComponent } // must always be last
|
|
14
11
|
];
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { }
|
|
@@ -0,0 +1,14 @@
|
|
|
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;
|
|
@@ -0,0 +1,22 @@
|
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import { ProjectTemplate } from "@igniteui/cli-core";
|
|
2
|
-
import {
|
|
3
|
-
export declare class EmptyPageTemplate extends
|
|
2
|
+
import { BaseWithHomeProject } from "../_base_with_home";
|
|
3
|
+
export declare class EmptyPageTemplate extends BaseWithHomeProject 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_with_home_1 = require("../_base_with_home");
|
|
6
|
+
class EmptyPageTemplate extends _base_with_home_1.BaseWithHomeProject {
|
|
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 { BaseWithHomeProject } from "../_base_with_home";
|
|
3
|
+
export declare class SideNavProject extends BaseWithHomeProject 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_with_home_1 = require("../_base_with_home");
|
|
6
|
+
class SideNavProject extends _base_with_home_1.BaseWithHomeProject {
|
|
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.
|
|
3
|
+
"version": "15.1.1112-alpha.0",
|
|
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.
|
|
15
|
+
"@igniteui/cli-core": "~11.1.2-alpha.0",
|
|
16
16
|
"typescript": "~4.7.2"
|
|
17
17
|
}
|
|
18
18
|
}
|
|
File without changes
|
|
File without changes
|
/package/igx-ts/projects/{_base → _base_with_home}/files/src/app/home/home.component.spec.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|