Skip to content

Commit

Permalink
Testing some changes to fix issues with angular 2.3.1
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Vega <clmvega@gmail.com>
  • Loading branch information
alterx committed Oct 10, 2017
1 parent 8cf821b commit b604123
Show file tree
Hide file tree
Showing 11 changed files with 1,022 additions and 801 deletions.
2 changes: 1 addition & 1 deletion addons/knobs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"react": "^15.6.1",
"react-dom": "^15.6.1",
"style-loader": "^0.17.0",
"typescript": "^2.4.0",
"typescript": "^2.5.3",
"typescript-definition-tester": "^0.0.5",
"vue": "^2.4.2"
},
Expand Down
2 changes: 1 addition & 1 deletion app/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,6 @@
"codelyzer": "^3.1.2",
"mock-fs": "^4.3.0",
"nodemon": "^1.12.0",
"typescript": "^2.4.0"
"typescript": "^2.5.3"
}
}
1 change: 1 addition & 0 deletions examples/angular-cli/e2e/app.e2e-spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { FixturePage } from './app.po';
import 'jasmine';

describe('fixture App', function() {
let page: FixturePage;
Expand Down
10 changes: 7 additions & 3 deletions examples/angular-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
},
"devDependencies": {
"@angular/compiler-cli": "^2.3.1",
"@storybook/angular": "^3.3.0-alpha.0",
"@storybook/addon-actions": "^3.3.0-alpha.0",
"@storybook/addon-links": "^3.3.0-alpha.0",
"@storybook/addon-notes": "^3.3.0-alpha.0",
"@storybook/addons": "^3.3.0-alpha.0",
"@types/jasmine": "2.5.38",
"@types/node": "^6.0.42",
"angular-cli": "1.0.0-beta.28.3",
Expand All @@ -40,10 +45,9 @@
"karma-cli": "^1.0.1",
"karma-jasmine": "^1.0.2",
"karma-remap-istanbul": "^0.2.1",
"protractor": "~4.0.13",
"protractor": "~5.1.0",
"ts-node": "1.2.1",
"tslint": "^4.3.0",
"typescript": "~2.0.3",
"@storybook/angular": "^3.3.0-alpha.0"
"typescript": "~2.5.3"
}
}
1 change: 1 addition & 0 deletions examples/angular-cli/src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* tslint:disable:no-unused-variable */

import { TestBed, async } from '@angular/core/testing';
import 'jasmine';
import { AppComponent } from './app.component';

describe('AppComponent', () => {
Expand Down
17 changes: 1 addition & 16 deletions examples/angular-cli/src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
{
"compilerOptions": {
"baseUrl": "",
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": ["es6", "dom"],
"mapRoot": "./",
"module": "es6",
"moduleResolution": "node",
"outDir": "../dist/out-tsc",
"sourceMap": true,
"target": "es5",
"typeRoots": [
"../node_modules/@types"
]
}
"extends": "../tsconfig.json"
}
10 changes: 6 additions & 4 deletions examples/angular-cli/stories/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { storiesOf } from '@storybook/angular';
import { addonNotes } from '@storybook/addon-notes';
import { withNotes } from '@storybook/addon-notes';
import { action } from '@storybook/addon-actions'
import { linkTo } from '@storybook/addon-links'

import { Welcome, Button } from '@storybook/angular/demo';

declare let module;

storiesOf('Welcome', module)
.add('to Storybook', () => ({
component: Welcome,
Expand All @@ -18,13 +20,13 @@ storiesOf('Button', module)
text: 'Hello Button'
}
}))
.add('with some emoji', addonNotes({ notes: 'My notes on a button with emojis' })(() => ({
.add('with some emoji', withNotes({ notes: 'My notes on a button with emojis' })(() => ({
component: Button,
props: {
text: '😀 😎 👍 💯'
}
})))
.add('with some emoji and action', addonNotes({ notes: 'My notes on a button with emojis' })(() => ({
.add('with some emoji and action', withNotes({ notes: 'My notes on a button with emojis' })(() => ({
component: Button,
props: {
text: '😀 😎 👍 💯',
Expand All @@ -39,4 +41,4 @@ storiesOf('Another Button', module)
text: 'Go to Welcome Story',
onClick: linkTo('Welcome')
}
}))
}))
22 changes: 22 additions & 0 deletions examples/angular-cli/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

{
"compilerOptions": {
"baseUrl": "",
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": ["es6", "dom"],
"mapRoot": "./",
"module": "es6",
"moduleResolution": "node",
"outDir": "../dist/out-tsc",
"sourceMap": true,
"target": "es5",
"typeRoots": [
"../node_modules/@types"
]
},
"exclude": [
"node_modules"
]
}
4 changes: 2 additions & 2 deletions lib/cli/test/fixtures/angular-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
"karma-cli": "^1.0.1",
"karma-jasmine": "^1.0.2",
"karma-remap-istanbul": "^0.2.1",
"protractor": "~4.0.13",
"protractor": "~5.1.0",
"ts-node": "1.2.1",
"tslint": "^4.3.0",
"typescript": "~2.0.3"
"typescript": "~2.5.3"
}
}
4 changes: 2 additions & 2 deletions lib/cli/test/snapshots/angular-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
"karma-cli": "^1.0.1",
"karma-jasmine": "^1.0.2",
"karma-remap-istanbul": "^0.2.1",
"protractor": "~4.0.13",
"protractor": "~5.1.0",
"ts-node": "1.2.1",
"tslint": "^4.3.0",
"typescript": "~2.0.3",
"typescript": "~2.5.3",
"@storybook/angular": "^3.3.0-alpha.0"
}
}
Loading

0 comments on commit b604123

Please sign in to comment.