Skip to content

Commit

Permalink
Merge pull request #63 from kimuraz/v1
Browse files Browse the repository at this point in the history
V1
  • Loading branch information
kimuraz authored Aug 16, 2023
2 parents 32db4c3 + 266e07c commit ad136a4
Show file tree
Hide file tree
Showing 37 changed files with 10,624 additions and 10,090 deletions.
37 changes: 0 additions & 37 deletions .circleci/config.yml

This file was deleted.

7 changes: 4 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ module.exports = {
env: {
browser: true,
},
extends: [
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
"plugin:@typescript-eslint/recommended",
"prettier",
],
// required to lint *.vue files
plugins: ['@typescript-eslint'],
plugins: ['@typescript-eslint', 'prettier'],
// add your custom rules here
rules: {
// allow debugger during development
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/
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
2 changes: 1 addition & 1 deletion dist/vue-interact.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 0 additions & 63 deletions docs/.vuepress/config.js

This file was deleted.

11 changes: 11 additions & 0 deletions docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { defineUserConfig, defaultTheme } from "vuepress";

export default defineUserConfig({
lang: "en-US",
title: "VueInteract",
description: "VueInteract is a Vue 3 wrapper for Interact.js",
theme: defaultTheme({
logo: '/assets/VueInteract.svg',
}),
});

Loading

0 comments on commit ad136a4

Please sign in to comment.