Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from travis-w/beta
0.4.0 Release
- Loading branch information
Showing
91 changed files
with
2,191 additions
and
19,649 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 +1,2 @@ | ||
test/coverage/* | ||
lib/frontend/* |
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,14 @@ | ||
module.exports = { | ||
root: true, | ||
parserOptions: { | ||
ecmaVersion: 2020 | ||
}, | ||
rules: { | ||
'semi': [2, 'never'], | ||
'no-console': 'off', | ||
'quote-props': [2, 'consistent-as-needed'], | ||
'linebreak-style': 'off', | ||
'no-underscore-dangle': 'off', | ||
'import/extensions': 'off' | ||
}, | ||
} |
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,83 @@ | ||
name: Testing and Release | ||
|
||
# Run on push to all branches. But only PRs to master | ||
on: | ||
push: | ||
branches: | ||
- '*' | ||
|
||
pull_request: | ||
branches: | ||
- 'master' | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [12.x, 14.x, 16.x] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Install Dependencies | ||
run: npm i --legacy-peer-deps | ||
- name: Build Project | ||
run: npm run build | ||
- name: Run Litning | ||
run: npm run lint | ||
- name: Run Tests | ||
run: npm test | ||
- name: Coveralls Parallel | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
flag-name: run-${{ matrix.test_number }} | ||
path-to-lcov: './test/coverage/lcov.info' | ||
parallel: true | ||
|
||
|
||
coveralls: | ||
name: Coveralls | ||
needs: test | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Coveralls Finished | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
path-to-lcov: './test/coverage/lcov.info' | ||
parallel-finished: true | ||
|
||
|
||
release: | ||
name: Release | ||
needs: test | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14.x | ||
- name: Install Dependencies | ||
run: npm i | ||
- name: Build Project | ||
run: npm run build | ||
- name: Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: npm run semantic-release |
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
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
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,5 @@ | ||
module.exports = { | ||
presets: [ | ||
'@vue/cli-plugin-babel/preset' | ||
] | ||
} |
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
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 @@ | ||
module.exports = { | ||
stories: ['../../src/frontend/src/stories/*.stories.(js|jsx|ts|tsx|mdx)'], | ||
addons: ['@storybook/addon-essentials'] | ||
} |
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 './style.scss'; |
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,18 @@ | ||
html, body { | ||
font-family: 'Roboto', sans-serif; | ||
color: #666; | ||
} | ||
|
||
input { | ||
padding: 5px; | ||
font-family: 'Roboto', sans-serif; | ||
} | ||
|
||
select { | ||
padding: 5px 2px; | ||
font-family: 'Roboto', sans-serif; | ||
} | ||
|
||
.center { | ||
text-align: center !important; | ||
} |
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
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,23 +1,25 @@ | ||
/* eslint-disable no-param-reassign, func-names */ | ||
|
||
const EventEmitter = require('events') | ||
|
||
module.exports = (Hijacker) => { | ||
Hijacker.prototype._initEvents = function() { | ||
Hijacker.prototype._initEvents = function () { | ||
this._events = new EventEmitter() | ||
} | ||
|
||
Hijacker.prototype.on = function(eventName, cb) { | ||
Hijacker.prototype.on = function (eventName, cb) { | ||
this._events.on(eventName, cb) | ||
} | ||
|
||
Hijacker.prototype.once = function(eventName, cb) { | ||
Hijacker.prototype.once = function (eventName, cb) { | ||
this._events.once(eventName, cb) | ||
} | ||
|
||
Hijacker.prototype.off = function(eventName) { | ||
Hijacker.prototype.off = function (eventName) { | ||
this._events.off(eventName) | ||
} | ||
|
||
Hijacker.prototype._emit = function(eventName, val) { | ||
Hijacker.prototype._emit = function (eventName, val) { | ||
this._events.emit(eventName, val) | ||
} | ||
} |
Oops, something went wrong.