Skip to content

Commit

Permalink
OHRM-945:Bump Vue to 3.x and Storybook 6.2.0-alpha.7
Browse files Browse the repository at this point in the history
  • Loading branch information
RajithaKumara authored and Samantha Jayasinghe committed Sep 11, 2021
1 parent 86ab74f commit fb35d49
Show file tree
Hide file tree
Showing 7 changed files with 672 additions and 414 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Unit Tests

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install npm dependencies
run: yarn install
- name: Unit tests
run: yarn workspace oxd-components test:unit
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ yarn workspace oxd-storybook start
yarn workspace oxd-storybook build
```

#### Unit Testing
```
yarn workspace oxd-components test:unit
```

#### Linting

```
Expand Down
2 changes: 1 addition & 1 deletion components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"dependencies": {
"core-js": "^3.6.5",
"vue": "2.6.12",
"vue": "^3.0.5",
"vue-class-component": "^8.0.0-0"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ describe("Button.vue", () => {
it("renders OXD button", () => {
const label = "new message";
const wrapper = shallowMount(Button, {
props: { label }
props: { label },
});
expect(wrapper.text()).toMatch(label);
});
Expand Down
5 changes: 5 additions & 0 deletions storybook/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Orange eXperience Design Storybook

> Note: Getting Storybook libs from un-official Vue 3 supported release from fork of official repository.
> Issue: https://github.com/storybookjs/storybook/issues/10654
> PR: https://github.com/storybookjs/storybook/pull/13384
14 changes: 7 additions & 7 deletions storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@
},
"devDependencies": {
"@babel/core": "^7.12.10",
"@storybook/addon-actions": "^6.1.14",
"@storybook/addon-essentials": "^6.1.14",
"@storybook/addon-links": "^6.1.14",
"@storybook/addon-viewport": "^6.1.14",
"@storybook/vue": "^6.1.14",
"@storybook/addon-actions": "https://gitpkg.now.sh/zipme/storybook/addons/actions?30547456ff",
"@storybook/addon-essentials": "https://gitpkg.now.sh/zipme/storybook/addons/essentials?30547456ff",
"@storybook/addon-links": "https://gitpkg.now.sh/zipme/storybook/addons/links?30547456ff",
"@storybook/addon-viewport": "https://gitpkg.now.sh/zipme/storybook/addons/viewport?30547456ff",
"@storybook/vue3": "https://gitpkg.now.sh/zipme/storybook/app/vue3?30547456ff",
"babel-loader": "^8.2.2",
"sass": "^1.32.4",
"sass-loader": "^10.1.1"
},
"dependencies": {
"vue": "^2.6.12",
"vue-template-compiler": "^2.6.12"
"vue": "^3.0.5",
"vue-loader": "^16.1.2"
}
}
Loading

0 comments on commit fb35d49

Please sign in to comment.