@skyux/docs-tools 8.0.2 → 8.0.3
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.
|
@@ -306,13 +306,10 @@ class SkyDocsCodeExamplesEditorService {
|
|
|
306
306
|
const angularVersion = '^15.0.0';
|
|
307
307
|
const skyuxVersion = '^8.0.0';
|
|
308
308
|
const defaultDependencies = {
|
|
309
|
-
'@angular-devkit/build-angular': angularVersion,
|
|
310
309
|
'@angular/animations': angularVersion,
|
|
311
310
|
'@angular/cdk': angularVersion,
|
|
312
|
-
'@angular/cli': angularVersion,
|
|
313
311
|
'@angular/common': angularVersion,
|
|
314
312
|
'@angular/compiler': angularVersion,
|
|
315
|
-
'@angular/compiler-cli': angularVersion,
|
|
316
313
|
'@angular/core': angularVersion,
|
|
317
314
|
'@angular/forms': angularVersion,
|
|
318
315
|
'@angular/platform-browser': angularVersion,
|
|
@@ -338,7 +335,6 @@ class SkyDocsCodeExamplesEditorService {
|
|
|
338
335
|
'ng2-dragula': '2.1.1',
|
|
339
336
|
rxjs: '^7',
|
|
340
337
|
tslib: '^2.3.0',
|
|
341
|
-
typescript: '~4.9.4',
|
|
342
338
|
'zone.js': '~0.12.0',
|
|
343
339
|
};
|
|
344
340
|
const mergedDependencies = Object.assign({}, defaultDependencies, codeExample.packageDependencies);
|
|
@@ -359,7 +355,7 @@ class SkyDocsCodeExamplesEditorService {
|
|
|
359
355
|
files,
|
|
360
356
|
title: 'SKY UX Demo',
|
|
361
357
|
description: 'SKY UX Demo',
|
|
362
|
-
template: '
|
|
358
|
+
template: 'angular-cli',
|
|
363
359
|
dependencies: mergedDependencies,
|
|
364
360
|
settings: {
|
|
365
361
|
compile: {
|
|
@@ -492,12 +488,21 @@ export class AppModule { }
|
|
|
492
488
|
</html>
|
|
493
489
|
`;
|
|
494
490
|
files[`${srcPath}main.ts`] = `${banner}
|
|
495
|
-
import
|
|
491
|
+
import 'zone.js';
|
|
492
|
+
import '@skyux/packages/polyfills';
|
|
496
493
|
|
|
497
|
-
import {
|
|
494
|
+
import {
|
|
495
|
+
platformBrowserDynamic
|
|
496
|
+
} from '@angular/platform-browser-dynamic';
|
|
497
|
+
|
|
498
|
+
import {
|
|
499
|
+
AppModule
|
|
500
|
+
} from './app/app.module';
|
|
501
|
+
|
|
502
|
+
platformBrowserDynamic()
|
|
503
|
+
.bootstrapModule(AppModule)
|
|
504
|
+
.catch((err) => console.error(err));
|
|
498
505
|
|
|
499
|
-
platformBrowserDynamic().bootstrapModule(AppModule)
|
|
500
|
-
.catch(err => console.error(err));
|
|
501
506
|
`;
|
|
502
507
|
files[`${srcPath}styles.scss`] = `@import '@skyux/theme/css/sky';
|
|
503
508
|
@import '@skyux/theme/css/themes/modern/styles';
|
|
@@ -508,53 +513,15 @@ body {
|
|
|
508
513
|
}`;
|
|
509
514
|
stylesheets.push('src/styles.scss');
|
|
510
515
|
files['angular.json'] = JSON.stringify({
|
|
511
|
-
$schema: './node_modules/@angular/cli/lib/config/schema.json',
|
|
512
|
-
version: 1,
|
|
513
516
|
projects: {
|
|
514
517
|
demo: {
|
|
515
|
-
projectType: 'application',
|
|
516
|
-
root: '',
|
|
517
|
-
sourceRoot: 'src',
|
|
518
|
-
prefix: 'app',
|
|
519
518
|
architect: {
|
|
520
519
|
build: {
|
|
521
|
-
builder: '@angular-devkit/build-angular:browser',
|
|
522
520
|
options: {
|
|
523
|
-
outputPath: 'dist/demo',
|
|
524
521
|
index: 'src/index.html',
|
|
525
522
|
main: 'src/main.ts',
|
|
526
|
-
polyfills: ['zone.js', '@skyux/packages/polyfills'],
|
|
527
|
-
tsConfig: 'tsconfig.app.json',
|
|
528
523
|
inlineStyleLanguage: 'scss',
|
|
529
|
-
assets: [],
|
|
530
524
|
styles: stylesheets,
|
|
531
|
-
scripts: [],
|
|
532
|
-
},
|
|
533
|
-
configurations: {
|
|
534
|
-
development: {
|
|
535
|
-
buildOptimizer: false,
|
|
536
|
-
optimization: false,
|
|
537
|
-
vendorChunk: true,
|
|
538
|
-
extractLicenses: false,
|
|
539
|
-
sourceMap: true,
|
|
540
|
-
namedChunks: true,
|
|
541
|
-
},
|
|
542
|
-
},
|
|
543
|
-
defaultConfiguration: 'development',
|
|
544
|
-
},
|
|
545
|
-
serve: {
|
|
546
|
-
builder: '@angular-devkit/build-angular:dev-server',
|
|
547
|
-
configurations: {
|
|
548
|
-
development: {
|
|
549
|
-
browserTarget: 'demo:build:development',
|
|
550
|
-
},
|
|
551
|
-
},
|
|
552
|
-
defaultConfiguration: 'development',
|
|
553
|
-
},
|
|
554
|
-
'extract-i18n': {
|
|
555
|
-
builder: '@angular-devkit/build-angular:extract-i18n',
|
|
556
|
-
options: {
|
|
557
|
-
browserTarget: 'demo:build',
|
|
558
525
|
},
|
|
559
526
|
},
|
|
560
527
|
},
|
|
@@ -562,29 +529,12 @@ body {
|
|
|
562
529
|
},
|
|
563
530
|
}, undefined, 2);
|
|
564
531
|
files['package.json'] = JSON.stringify({
|
|
565
|
-
name: 'skyux-spa-demo',
|
|
566
532
|
dependencies,
|
|
567
|
-
scripts: {
|
|
568
|
-
start: 'ng serve',
|
|
569
|
-
build: 'ng build',
|
|
570
|
-
},
|
|
571
|
-
}, undefined, 2);
|
|
572
|
-
files['tsconfig.app.json'] = JSON.stringify({
|
|
573
|
-
extends: './tsconfig.json',
|
|
574
|
-
compilerOptions: {
|
|
575
|
-
outDir: './out-tsc/app',
|
|
576
|
-
types: [],
|
|
577
|
-
},
|
|
578
|
-
files: ['src/main.ts'],
|
|
579
|
-
include: ['src/**/*.d.ts'],
|
|
580
533
|
}, undefined, 2);
|
|
581
534
|
files['tsconfig.json'] = JSON.stringify({
|
|
582
|
-
compileOnSave: false,
|
|
583
535
|
compilerOptions: {
|
|
584
|
-
baseUrl: './',
|
|
585
|
-
outDir: './dist/out-tsc',
|
|
586
|
-
forceConsistentCasingInFileNames: true,
|
|
587
536
|
strict: true,
|
|
537
|
+
forceConsistentCasingInFileNames: true,
|
|
588
538
|
noImplicitOverride: true,
|
|
589
539
|
noPropertyAccessFromIndexSignature: true,
|
|
590
540
|
noImplicitReturns: true,
|