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 9549ab3
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 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
24 changes: 24 additions & 0 deletions 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 @@ -459,6 +481,8 @@ export const allTemplates: Record<TemplateKey, Template> = {
export const ci: TemplateKey[] = ['cra/default-ts', 'react-vite/default-ts'];
export const pr: TemplateKey[] = [
...ci,
// TODO: add this after the sandbox is ready in the sandboxes repo
// 'angular-cli/16-ts',
'angular-cli/default-ts',
'vue3-vite/default-ts',
'vue-cli/vue2-default-js',
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 9549ab3

Please sign in to comment.