Skip to content

Commit

Permalink
Merge pull request #64 from kimuraz/dev
Browse files Browse the repository at this point in the history
V1 Release
  • Loading branch information
kimuraz authored Aug 16, 2023
2 parents e4bb56d + ad136a4 commit b2fe111
Show file tree
Hide file tree
Showing 50 changed files with 10,687 additions and 9,921 deletions.
14 changes: 0 additions & 14 deletions .babelrc

This file was deleted.

37 changes: 0 additions & 37 deletions .circleci/config.yml

This file was deleted.

28 changes: 7 additions & 21 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,19 @@

module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint',
},
env: {
browser: true,
},
extends: ['airbnb-base', 'plugin:vue/recommended'],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
],
// required to lint *.vue files
plugins: ['html'],
plugins: ['@typescript-eslint', 'prettier'],
// add your custom rules here
rules: {
// don't require .vue extension when importing
'import/extensions': [
'error',
'always',
{
js: 'never',
vue: 'never',
},
],
// allow optionalDependencies
'import/no-extraneous-dependencies': [
'error',
{
optionalDependencies: ['test/unit/index.js'],
},
],
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'arrow-parens': 'off',
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI

on:
push:
branches: [ "dev", "v1", "master" ]
pull_request:
branches: [ "master", "dev" ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x, 18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run lint
- run: npm run test:ci
- run: npm run build
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish NPM Package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- run: npm run build

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
*.swp
.idea/
.temp/
.cache/
coverage/
8 changes: 0 additions & 8 deletions .postcssrc.js

This file was deleted.

6 changes: 3 additions & 3 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
singleQuote: true
semit: true
tabWidth: 2
trailingComma: true
semi: true
tabWidth: 4
trailingComma: all
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> A VueJS implementation of [InteractJS](http://interactjs.io)
[![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)
[![Netlify Status](https://api.netlify.com/api/v1/badges/0d134e46-98be-4533-a02f-fbf9e0358879/deploy-status)](https://app.netlify.com/sites/vue-interact/deploys)


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

``` bash
npm install vue-interact --save

# or
yarn add vue-interact
```

Expand Down
9 changes: 9 additions & 0 deletions build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
require('esbuild').build({
entryPoints: ['src/index.ts'],
bundle: true,
minify: true,
target: 'esNext',
outfile: 'dist/vue-interact.min.js',
external: ['interactjs', 'vue'],
tsconfig: 'tsconfig.json',
});
10 changes: 0 additions & 10 deletions dist/vue-interact.css

This file was deleted.

Loading

0 comments on commit b2fe111

Please sign in to comment.