Skip to content

Commit 3cf224c

Browse files
committed
Merge branch 'release/1.0.0-alpha.5'
2 parents 4b70198 + 1d4b624 commit 3cf224c

File tree

174 files changed

+28857
-1983
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

174 files changed

+28857
-1983
lines changed

.babelrc.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

.eslintrc.js

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,22 @@ module.exports = {
1010
},
1111
rules: {
1212
'class-methods-use-this': 'off',
13+
'no-underscore-dangle': ['error', { allow: ['__base__', '__isChild__', '__isBase__'] }],
14+
},
15+
settings: {
16+
'import/resolver': {
17+
alias: [
18+
['~', './src'],
19+
],
20+
}
1321
},
1422
overrides: [
1523
{
16-
files: '**/*.js',
17-
parser: 'babel-eslint',
18-
},
19-
{
20-
files: ['**/*.spec.js', '**/spec.js'],
24+
files: ['**/*.spec.js', '**/spec.js', 'tests/**/*.js'],
2125
extends: ['plugin:jest/recommended', 'plugin:jest/style'],
22-
},
23-
{
24-
files: 'demo/**/*.js',
2526
rules: {
27+
'max-classes-per-file': 'off',
28+
'jest/no-test-callback': 'off',
2629
'require-jsdoc': 'off',
2730
},
2831
},

.github/workflows/npm-publish.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3+
4+
name: NPM Publish
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-node@v1
16+
with:
17+
node-version: 12
18+
- run: npm ci
19+
- run: npm run build
20+
- name: Test
21+
run: npm run test -- --coverage
22+
- name: Upload to Codecov
23+
run: npx codecov --disable=detect --commit=$GITHUB_SHA --branch=${GITHUB_REF#refs/heads/}
24+
env:
25+
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
26+
27+
28+
publish:
29+
needs: build
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v2
33+
- uses: actions/setup-node@v1
34+
with:
35+
node-version: 12
36+
registry-url: https://registry.npmjs.org/
37+
- run: npm ci
38+
- run: npm run deploy
39+
env:
40+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ jobs:
55
runs-on: ubuntu-latest
66
steps:
77
- uses: actions/checkout@v1
8-
- name: Run Jest
9-
uses: stefanoeb/jest-action@1.0.2
8+
- name: Install modules
9+
run: npm ci
10+
- name: Run tests
11+
run: npm run test

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# OS files
22
.DS_Store
3-
node_modules
43

54
# NPM files
6-
package-lock.json
5+
node_modules/
76
yarn.lock
87
.cache/
98

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Studio Meta <agence@studiometa.fr> (https://www.studiometa.fr)
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

babel.config.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
module.exports = {
2+
presets: [
3+
[
4+
'@babel/preset-env',
5+
{
6+
modules: 'cjs',
7+
},
8+
],
9+
],
10+
plugins: [
11+
'@babel/plugin-transform-runtime',
12+
'@babel/plugin-proposal-class-properties',
13+
'@babel/plugin-proposal-export-default-from',
14+
'@babel/plugin-proposal-export-namespace-from',
15+
],
16+
parserOpts: {
17+
plugins: ['dynamicImport', 'classProperties'],
18+
},
19+
};

demo/.eslintrc.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
root: true,
3+
extends: '@studiometa/eslint-config',
4+
rules: {
5+
'class-methods-use-this': 'off',
6+
'require-jsdoc': 'off',
7+
'no-underscore-dangle': ['error', { allow: ['__base__', '__isChild__', '__isBase__'] }],
8+
'import/no-extraneous-dependencies': 'off',
9+
},
10+
};

demo/.stylelintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: ['@studiometa/stylelint-config'],
3+
};

0 commit comments

Comments
 (0)