Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
187 changed files
with
12,372 additions
and
49,855 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"presets": [ | ||
"@babel/preset-env" | ||
], | ||
"plugins": [ | ||
"@babel/plugin-transform-runtime" | ||
] | ||
} |
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,3 @@ | ||
/dev | ||
/dist | ||
/coverage |
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,127 @@ | ||
{ | ||
"env": { | ||
"node": true, | ||
"browser": true, | ||
"es2021": true | ||
}, | ||
"extends": "eslint:recommended", | ||
"globals": { | ||
"build": false | ||
}, | ||
"parserOptions": { | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"array-bracket-spacing": [ | ||
"error" | ||
], | ||
"arrow-spacing": [ | ||
"error" | ||
], | ||
"comma-dangle": [ | ||
"error", | ||
"always-multiline" | ||
], | ||
"comma-spacing": [ | ||
"error", { | ||
"before": false, | ||
"after": true | ||
} | ||
], | ||
"computed-property-spacing": [ | ||
"error" | ||
], | ||
"func-call-spacing": [ | ||
"error" | ||
], | ||
"indent": [ | ||
"error", | ||
2, { | ||
"SwitchCase": 1 | ||
} | ||
], | ||
"key-spacing": [ | ||
"error" | ||
], | ||
"keyword-spacing": [ | ||
"error" | ||
], | ||
"lines-around-comment": [ | ||
"error", { | ||
"beforeBlockComment": true | ||
} | ||
], | ||
"linebreak-style": [ | ||
"error", | ||
"unix" | ||
], | ||
"no-invalid-this": [ | ||
"error" | ||
], | ||
"no-multi-spaces": [ | ||
"error" | ||
], | ||
"no-multiple-empty-lines": [ | ||
"error", { | ||
"max": 1 | ||
} | ||
], | ||
"no-trailing-spaces": [ | ||
"error" | ||
], | ||
"no-whitespace-before-property": [ | ||
"error" | ||
], | ||
"object-curly-spacing": [ | ||
"error", | ||
"always" | ||
], | ||
"object-property-newline": [ | ||
"error" | ||
], | ||
"quotes": [ | ||
"error", | ||
"single" | ||
], | ||
"rest-spread-spacing": [ | ||
"error" | ||
], | ||
"semi": [ | ||
"error", | ||
"always" | ||
], | ||
"semi-spacing": [ | ||
"error" | ||
], | ||
"space-before-blocks": [ | ||
"error" | ||
], | ||
"space-before-function-paren": [ | ||
"error", | ||
"never" | ||
], | ||
"space-in-parens": [ | ||
"error" | ||
], | ||
"space-infix-ops": [ | ||
"error" | ||
], | ||
"space-unary-ops": [ | ||
"error" | ||
], | ||
"spaced-comment": [ | ||
"error", | ||
"always", { | ||
"block": { | ||
"balanced": true | ||
} | ||
} | ||
], | ||
"strict": [ | ||
"error" | ||
], | ||
"template-curly-spacing": [ | ||
"error" | ||
] | ||
} | ||
} |
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,49 @@ | ||
# Github workflow for Continuous Integration | ||
|
||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Lint code | ||
run: npm run lint | ||
|
||
- name: Setup browser testing | ||
uses: browserstack/github-actions/setup-env@master | ||
with: | ||
username: ${{ secrets.BROWSERSTACK_USERNAME }} | ||
access-key: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} | ||
|
||
- name: Start browser testing tunnel | ||
uses: browserstack/github-actions/setup-local@master | ||
with: | ||
local-testing: start | ||
|
||
- name: Run tests with code coverage | ||
run: npm run test | ||
|
||
- name: Send code coverage to Coveralls | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Stop browser testing tunnel | ||
uses: 'browserstack/github-actions/setup-local@master' | ||
with: | ||
local-testing: stop |
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,46 @@ | ||
# Github workflow to publish package to NPM and GPR | ||
|
||
name: Publish package | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
- run: npm ci | ||
- run: npm test | ||
|
||
publish-npm: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
registry-url: https://registry.npmjs.org/ | ||
- run: npm ci | ||
- run: npm run build | ||
- run: npm publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
publish-gpr: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
registry-url: https://npm.pkg.github.com/ | ||
- run: npm ci | ||
- run: npm run build | ||
- run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,5 +1,7 @@ | ||
bower_components/ | ||
node_modules/ | ||
coverage/ | ||
vendor/ | ||
npm-debug.log | ||
/node_modules | ||
/coverage | ||
/dist | ||
.DS_Store | ||
.vscode | ||
.env | ||
.eslintcache |
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,17 +1,8 @@ | ||
node_modules/ | ||
coverage/ | ||
mockups/ | ||
vendor/ | ||
spec/ | ||
css/ | ||
js/ | ||
.travis.yml | ||
/coverage | ||
/spec | ||
/src | ||
.editorconfig | ||
index.html | ||
index.jade | ||
bower.json | ||
npm-debug.log | ||
gulpfile.js | ||
karma.conf.js | ||
webpack.config.js | ||
todo.md | ||
webpack.* | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md |
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
Oops, something went wrong.