@schematics/angular 15.0.0-next.3 → 15.0.0-next.4
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/application/files/src/main.ts.template +4 -5
- package/application/index.js +1 -3
- package/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.ts.template +2 -7
- package/library/index.js +0 -1
- package/package.json +4 -4
- package/application/files/karma.conf.js.template +0 -44
- package/library/files/karma.conf.js.template +0 -44
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<% if(!!viewEncapsulation) { %>import { ViewEncapsulation } from '@angular/core'
|
|
2
|
-
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
1
|
+
<% if(!!viewEncapsulation) { %>import { ViewEncapsulation } from '@angular/core';
|
|
2
|
+
<% }%>import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
3
3
|
|
|
4
4
|
import { AppModule } from './app/app.module';
|
|
5
5
|
|
|
@@ -7,8 +7,7 @@ import { AppModule } from './app/app.module';
|
|
|
7
7
|
platformBrowserDynamic().bootstrapModule(AppModule, {
|
|
8
8
|
defaultEncapsulation: ViewEncapsulation.<%= viewEncapsulation %>
|
|
9
9
|
})
|
|
10
|
-
.catch(err => console.error(err))
|
|
11
|
-
<% } else { %>
|
|
10
|
+
.catch(err => console.error(err));<% } else { %>
|
|
12
11
|
platformBrowserDynamic().bootstrapModule(AppModule)
|
|
13
12
|
.catch(err => console.error(err));
|
|
14
|
-
<% } %>
|
|
13
|
+
<% } %>
|
package/application/index.js
CHANGED
|
@@ -175,7 +175,6 @@ function addAppToWorkspaceFile(options, appDir, folderName) {
|
|
|
175
175
|
options: {
|
|
176
176
|
polyfills: ['zone.js', 'zone.js/testing'],
|
|
177
177
|
tsConfig: `${projectRoot}tsconfig.spec.json`,
|
|
178
|
-
karmaConfig: `${projectRoot}karma.conf.js`,
|
|
179
178
|
inlineStyleLanguage,
|
|
180
179
|
assets: [`${sourceRoot}/favicon.ico`, `${sourceRoot}/assets`],
|
|
181
180
|
styles: [`${sourceRoot}/styles.${options.style}`],
|
|
@@ -192,8 +191,7 @@ function addAppToWorkspaceFile(options, appDir, folderName) {
|
|
|
192
191
|
});
|
|
193
192
|
}
|
|
194
193
|
function minimalPathFilter(path) {
|
|
195
|
-
|
|
196
|
-
return !toRemoveList.test(path);
|
|
194
|
+
return !path.endsWith('tsconfig.spec.json.template');
|
|
197
195
|
}
|
|
198
196
|
function default_1(options) {
|
|
199
197
|
return async (host) => {
|
package/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.ts.template
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { <% if(changeDetection !== 'Default') { %>ChangeDetectionStrategy, <% }%>Component
|
|
1
|
+
import { <% if(changeDetection !== 'Default') { %>ChangeDetectionStrategy, <% }%>Component<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% }%> } from '@angular/core';<% if(standalone) {%>
|
|
2
2
|
import { CommonModule } from '@angular/common';<% } %>
|
|
3
3
|
|
|
4
4
|
@Component({<% if(!skipSelector) {%>
|
|
@@ -22,11 +22,6 @@ import { CommonModule } from '@angular/common';<% } %>
|
|
|
22
22
|
encapsulation: ViewEncapsulation.<%= viewEncapsulation %><% } if (changeDetection !== 'Default') { %>,
|
|
23
23
|
changeDetection: ChangeDetectionStrategy.<%= changeDetection %><% } %>
|
|
24
24
|
})
|
|
25
|
-
export class <%= classify(name) %><%= classify(type) %>
|
|
26
|
-
|
|
27
|
-
constructor() { }
|
|
28
|
-
|
|
29
|
-
ngOnInit(): void {
|
|
30
|
-
}
|
|
25
|
+
export class <%= classify(name) %><%= classify(type) %> {
|
|
31
26
|
|
|
32
27
|
}
|
package/library/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schematics/angular",
|
|
3
|
-
"version": "15.0.0-next.
|
|
3
|
+
"version": "15.0.0-next.4",
|
|
4
4
|
"description": "Schematics specific to Angular",
|
|
5
5
|
"homepage": "https://github.com/angular/angular-cli",
|
|
6
6
|
"keywords": [
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
},
|
|
24
24
|
"schematics": "./collection.json",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@angular-devkit/core": "15.0.0-next.
|
|
27
|
-
"@angular-devkit/schematics": "15.0.0-next.
|
|
26
|
+
"@angular-devkit/core": "15.0.0-next.4",
|
|
27
|
+
"@angular-devkit/schematics": "15.0.0-next.4",
|
|
28
28
|
"jsonc-parser": "3.2.0"
|
|
29
29
|
},
|
|
30
30
|
"repository": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"url": "https://github.com/angular/angular-cli.git"
|
|
33
33
|
},
|
|
34
34
|
"engines": {
|
|
35
|
-
"node": "^14.
|
|
35
|
+
"node": "^14.20.0 || >=16.10.0",
|
|
36
36
|
"npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
|
|
37
37
|
"yarn": ">= 1.13.0"
|
|
38
38
|
},
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
// Karma configuration file, see link for more information
|
|
2
|
-
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
|
3
|
-
|
|
4
|
-
module.exports = function (config) {
|
|
5
|
-
config.set({
|
|
6
|
-
basePath: '',
|
|
7
|
-
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
|
8
|
-
plugins: [
|
|
9
|
-
require('karma-jasmine'),
|
|
10
|
-
require('karma-chrome-launcher'),
|
|
11
|
-
require('karma-jasmine-html-reporter'),
|
|
12
|
-
require('karma-coverage'),
|
|
13
|
-
require('@angular-devkit/build-angular/plugins/karma')
|
|
14
|
-
],
|
|
15
|
-
client: {
|
|
16
|
-
jasmine: {
|
|
17
|
-
// you can add configuration options for Jasmine here
|
|
18
|
-
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
|
|
19
|
-
// for example, you can disable the random execution with `random: false`
|
|
20
|
-
// or set a specific seed with `seed: 4321`
|
|
21
|
-
},
|
|
22
|
-
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
|
23
|
-
},
|
|
24
|
-
jasmineHtmlReporter: {
|
|
25
|
-
suppressAll: true // removes the duplicated traces
|
|
26
|
-
},
|
|
27
|
-
coverageReporter: {
|
|
28
|
-
dir: require('path').join(__dirname, '<%= relativePathToWorkspaceRoot %>/coverage/<%= folderName%>'),
|
|
29
|
-
subdir: '.',
|
|
30
|
-
reporters: [
|
|
31
|
-
{ type: 'html' },
|
|
32
|
-
{ type: 'text-summary' }
|
|
33
|
-
]
|
|
34
|
-
},
|
|
35
|
-
reporters: ['progress', 'kjhtml'],
|
|
36
|
-
port: 9876,
|
|
37
|
-
colors: true,
|
|
38
|
-
logLevel: config.LOG_INFO,
|
|
39
|
-
autoWatch: true,
|
|
40
|
-
browsers: ['Chrome'],
|
|
41
|
-
singleRun: false,
|
|
42
|
-
restartOnFileChange: true
|
|
43
|
-
});
|
|
44
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
// Karma configuration file, see link for more information
|
|
2
|
-
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
|
3
|
-
|
|
4
|
-
module.exports = function (config) {
|
|
5
|
-
config.set({
|
|
6
|
-
basePath: '',
|
|
7
|
-
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
|
8
|
-
plugins: [
|
|
9
|
-
require('karma-jasmine'),
|
|
10
|
-
require('karma-chrome-launcher'),
|
|
11
|
-
require('karma-jasmine-html-reporter'),
|
|
12
|
-
require('karma-coverage'),
|
|
13
|
-
require('@angular-devkit/build-angular/plugins/karma')
|
|
14
|
-
],
|
|
15
|
-
client: {
|
|
16
|
-
jasmine: {
|
|
17
|
-
// you can add configuration options for Jasmine here
|
|
18
|
-
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
|
|
19
|
-
// for example, you can disable the random execution with `random: false`
|
|
20
|
-
// or set a specific seed with `seed: 4321`
|
|
21
|
-
},
|
|
22
|
-
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
|
23
|
-
},
|
|
24
|
-
jasmineHtmlReporter: {
|
|
25
|
-
suppressAll: true // removes the duplicated traces
|
|
26
|
-
},
|
|
27
|
-
coverageReporter: {
|
|
28
|
-
dir: require('path').join(__dirname, '<%= relativePathToWorkspaceRoot %>/coverage/<%= folderName %>'),
|
|
29
|
-
subdir: '.',
|
|
30
|
-
reporters: [
|
|
31
|
-
{ type: 'html' },
|
|
32
|
-
{ type: 'text-summary' }
|
|
33
|
-
]
|
|
34
|
-
},
|
|
35
|
-
reporters: ['progress', 'kjhtml'],
|
|
36
|
-
port: 9876,
|
|
37
|
-
colors: true,
|
|
38
|
-
logLevel: config.LOG_INFO,
|
|
39
|
-
autoWatch: true,
|
|
40
|
-
browsers: ['Chrome'],
|
|
41
|
-
singleRun: false,
|
|
42
|
-
restartOnFileChange: true
|
|
43
|
-
});
|
|
44
|
-
};
|