-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update plugin, update building logic, implement tests, implement stor…
…ybook, implement types, configure github workflow
- Loading branch information
1 parent
806faf5
commit 98ef214
Showing
45 changed files
with
16,459 additions
and
10,269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,5 @@ | ||
{ | ||
"comments": false, | ||
"env": { | ||
"main": { | ||
"presets": [ | ||
[ | ||
"env", | ||
{ | ||
"modules": false, | ||
"targets": { | ||
"browsers": ["> 1%", "last 2 versions", "not ie <= 8"], | ||
"node": 7 | ||
}, | ||
"useBuiltIns": true | ||
} | ||
], | ||
"stage-3" | ||
], | ||
"plugins": [ | ||
"transform-runtime" | ||
] | ||
} | ||
} | ||
} | ||
|
||
"presets": ["@babel/preset-env"], | ||
"plugins": ["@babel/plugin-transform-runtime", "@babel/plugin-proposal-class-properties"], | ||
"comments": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
Linux: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [10.x, 12.x] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Install Dependencies | ||
run: npm install | ||
- name: Build | ||
run: npm run build | ||
- name: Test | ||
run: npm run test | ||
Windows: | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
node-version: [10.x, 12.x] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Install Dependencies | ||
run: npm install | ||
- name: Build | ||
run: npm run build | ||
- name: Test | ||
run: npm run test | ||
MacOS: | ||
runs-on: macOS-latest | ||
strategy: | ||
matrix: | ||
node-version: [10.x, 12.x] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Install Dependencies | ||
run: npm install | ||
- name: Build | ||
run: npm run build | ||
- name: Test | ||
run: npm run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
# Modules | ||
node_modules | ||
|
||
# Logs | ||
npm-debug.log | ||
|
||
# Tests | ||
cypress/screenshots | ||
cypress/videos | ||
|
||
# Editors / IDEs | ||
.idea/* | ||
*.lock | ||
.vscode | ||
|
||
# Others | ||
*.lock | ||
*.bak |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"printWidth": 100, | ||
"singleQuote": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import '@storybook/addon-notes/register-panel'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { addParameters, configure } from '@storybook/vue'; | ||
|
||
addParameters({ | ||
options: { | ||
panelPosition: 'right', | ||
} | ||
}); | ||
|
||
function loadStories() { | ||
require('./stories.js'); | ||
} | ||
|
||
configure(loadStories, module); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import Vue from 'vue'; | ||
import { storiesOf } from '@storybook/vue'; | ||
import VueIzitoast from '../src/vue-izitoast'; | ||
import App from '../examples/App.vue'; | ||
import notes from '../examples/README.md'; | ||
|
||
Vue.use(VueIzitoast); | ||
Vue.component('App', App); | ||
|
||
const withSettings = component => ({ | ||
...component | ||
}); | ||
|
||
const stories = storiesOf('VuePlugin', module); | ||
|
||
stories | ||
.add( | ||
'Options', | ||
() => withSettings({ | ||
template: ` | ||
<div> | ||
<App /> | ||
</div> | ||
` | ||
}), | ||
{ notes } | ||
); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
Empty file.
Oops, something went wrong.