Skip to content

Commit b2fe111

Browse files
authored
Merge pull request #64 from kimuraz/dev
V1 Release
2 parents e4bb56d + ad136a4 commit b2fe111

Some content is hidden

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

50 files changed

+10687
-9921
lines changed

.babelrc

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

.circleci/config.yml

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

.eslintrc.js

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,19 @@
22

33
module.exports = {
44
root: true,
5-
parserOptions: {
6-
parser: 'babel-eslint',
7-
},
85
env: {
96
browser: true,
107
},
11-
extends: ['airbnb-base', 'plugin:vue/recommended'],
8+
extends: [
9+
"eslint:recommended",
10+
"plugin:@typescript-eslint/eslint-recommended",
11+
"plugin:@typescript-eslint/recommended",
12+
"prettier",
13+
],
1214
// required to lint *.vue files
13-
plugins: ['html'],
15+
plugins: ['@typescript-eslint', 'prettier'],
1416
// add your custom rules here
1517
rules: {
16-
// don't require .vue extension when importing
17-
'import/extensions': [
18-
'error',
19-
'always',
20-
{
21-
js: 'never',
22-
vue: 'never',
23-
},
24-
],
25-
// allow optionalDependencies
26-
'import/no-extraneous-dependencies': [
27-
'error',
28-
{
29-
optionalDependencies: ['test/unit/index.js'],
30-
},
31-
],
3218
// allow debugger during development
3319
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
3420
'arrow-parens': 'off',

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "dev", "v1", "master" ]
6+
pull_request:
7+
branches: [ "master", "dev" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [16.x, 18.x]
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
cache: 'npm'
23+
- run: npm ci
24+
- run: npm run lint
25+
- run: npm run test:ci
26+
- run: npm run build

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish NPM Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version: 18
15+
- run: npm ci
16+
- run: npm run build
17+
18+
publish-npm:
19+
needs: build
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v3
23+
- uses: actions/setup-node@v3
24+
with:
25+
node-version: 18
26+
registry-url: https://registry.npmjs.org/
27+
- run: npm ci
28+
- run: npm publish
29+
env:
30+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ npm-debug.log*
44
yarn-debug.log*
55
yarn-error.log*
66
*.swp
7+
.idea/
8+
.temp/
9+
.cache/
10+
coverage/

.postcssrc.js

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

.prettierrc.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
singleQuote: true
2-
semit: true
3-
tabWidth: 2
4-
trailingComma: true
2+
semi: true
3+
tabWidth: 4
4+
trailingComma: all

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> A VueJS implementation of [InteractJS](http://interactjs.io)
44
5-
[![Netlify Status](https://api.netlify.com/api/v1/badges/0d134e46-98be-4533-a02f-fbf9e0358879/deploy-status)](https://app.netlify.com/sites/vue-interact/deploys) [![CircleCI](https://circleci.com/gh/kimuraz/vue-interact.svg?style=svg)](https://circleci.com/gh/kimuraz/vue-interact)
5+
[![Netlify Status](https://api.netlify.com/api/v1/badges/0d134e46-98be-4533-a02f-fbf9e0358879/deploy-status)](https://app.netlify.com/sites/vue-interact/deploys)
66

77

88
:book: [Checkout the documentation](https://vue-interact.netlify.com/)
@@ -11,7 +11,7 @@
1111

1212
``` bash
1313
npm install vue-interact --save
14-
14+
# or
1515
yarn add vue-interact
1616
```
1717

build.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
require('esbuild').build({
2+
entryPoints: ['src/index.ts'],
3+
bundle: true,
4+
minify: true,
5+
target: 'esNext',
6+
outfile: 'dist/vue-interact.min.js',
7+
external: ['interactjs', 'vue'],
8+
tsconfig: 'tsconfig.json',
9+
});

0 commit comments

Comments
 (0)