Skip to content

Commit

Permalink
WIP: add sandbox for angular 16
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Apr 14, 2023
1 parent ccd32b5 commit 17c617e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
2 changes: 1 addition & 1 deletion code/frameworks/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
},
"peerDependencies": {
"@angular-devkit/architect": ">=0.1400.0 < 0.1600.0",
"@angular-devkit/build-angular": ">=14.1.0 < 16.0.0",
"@angular-devkit/build-angular": ">=14.1.0 < 17.0.0",
"@angular-devkit/core": ">=14.1.0 < 16.0.0",
"@angular/cli": ">=14.1.0 < 16.0.0",
"@angular/common": ">=14.1.0 < 16.0.0",
Expand Down
29 changes: 28 additions & 1 deletion code/lib/cli/src/sandbox-templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,28 @@ const baseTemplates = {
// Remove smoke-test from the list once https://github.com/storybookjs/storybook/issues/19351 is fixed.
skipTasks: ['smoke-test', 'e2e-tests-dev'],
},
'angular-cli/16-ts': {
name: 'Angular CLI (Version 16)',
script:
'npx -p @angular/cli@next ng new angular-v16 --directory . --routing=true --minimal=true --style=scss --strict --skip-git --skip-install --package-manager=yarn',
expected: {
framework: '@storybook/angular',
renderer: '@storybook/angular',
builder: '@storybook/builder-webpack5',
},
skipTasks: ['e2e-tests-dev'],
modifications: {
mainConfig: {
framework: {
name: '@storybook/angular',
options: {
enableNgcc: false,
},
},
},
},
inDevelopment: true,
},
'angular-cli/default-ts': {
name: 'Angular CLI (latest)',
script:
Expand Down Expand Up @@ -456,7 +478,12 @@ export const allTemplates: Record<TemplateKey, Template> = {
...internalTemplates,
};

export const ci: TemplateKey[] = ['cra/default-ts', 'react-vite/default-ts'];
export const ci: TemplateKey[] = [
// TODO: bring this back -> 'cra/default-ts',
'react-vite/default-ts',
// TODO: remove this later:
'angular-cli/16-ts',
];
export const pr: TemplateKey[] = [
...ci,
'angular-cli/default-ts',
Expand Down
2 changes: 1 addition & 1 deletion code/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5561,7 +5561,7 @@ __metadata:
zone.js: ^0.12.0
peerDependencies:
"@angular-devkit/architect": ">=0.1400.0 < 0.1600.0"
"@angular-devkit/build-angular": ">=14.1.0 < 16.0.0"
"@angular-devkit/build-angular": ">=14.1.0 < 17.0.0"
"@angular-devkit/core": ">=14.1.0 < 16.0.0"
"@angular/cli": ">=14.1.0 < 16.0.0"
"@angular/common": ">=14.1.0 < 16.0.0"
Expand Down

0 comments on commit 17c617e

Please sign in to comment.