Skip to content

Commit ad136a4

Browse files
authored
Merge pull request #63 from kimuraz/v1
V1
2 parents 32db4c3 + 266e07c commit ad136a4

37 files changed

+10624
-10090
lines changed

.circleci/config.yml

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

.eslintrc.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ module.exports = {
55
env: {
66
browser: true,
77
},
8-
extends: [
8+
extends: [
99
"eslint:recommended",
1010
"plugin:@typescript-eslint/eslint-recommended",
11-
"plugin:@typescript-eslint/recommended"
11+
"plugin:@typescript-eslint/recommended",
12+
"prettier",
1213
],
1314
// required to lint *.vue files
14-
plugins: ['@typescript-eslint'],
15+
plugins: ['@typescript-eslint', 'prettier'],
1516
// add your custom rules here
1617
rules: {
1718
// allow debugger during development

.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/

.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

dist/vue-interact.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/.vuepress/config.js

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

docs/.vuepress/config.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { defineUserConfig, defaultTheme } from "vuepress";
2+
3+
export default defineUserConfig({
4+
lang: "en-US",
5+
title: "VueInteract",
6+
description: "VueInteract is a Vue 3 wrapper for Interact.js",
7+
theme: defaultTheme({
8+
logo: '/assets/VueInteract.svg',
9+
}),
10+
});
11+

0 commit comments

Comments
 (0)