Skip to content

Commit

Permalink
feat: nuxt3
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Works with Nuxt3
  • Loading branch information
ymmooot committed Apr 16, 2022
1 parent 96158d2 commit 93b415d
Show file tree
Hide file tree
Showing 57 changed files with 6,980 additions and 20,628 deletions.
62 changes: 0 additions & 62 deletions .circleci/config.yml

This file was deleted.

12 changes: 7 additions & 5 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
node_modules
yarn-error.log
build
.nuxt
*.log
cache/
lib/
.eslintcache
examples
CHANGELOG.md
.DS_Store
coverage
sw.*
dist
34 changes: 2 additions & 32 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,37 +1,7 @@
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
extends: ['plugin:prettier/recommended'],
plugins: ['prettier', '@typescript-eslint'],
extends: ['@nuxtjs/eslint-config-typescript', 'plugin:prettier/recommended'],
rules: {
'no-underscore-dangle': ['error', { allow: ['_uid', '__dangerouslyDisableSanitizersByTagID'] }],
'no-param-reassign': ['error', { props: false }],
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'error',
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.ts'],
},
},
'import/core-modules': ['vue', 'vue-meta'],
'vue/multi-word-component-names': 'off',
},
overrides: [
{
files: ['test/**/**.spec.*'],
env: {
jest: true,
},
plugins: ['jest'],
},
],
};
11 changes: 5 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10

- package-ecosystem: npm
directory: '/'
schedule:
interval: daily
open-pull-requests-limit: 10
44 changes: 44 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Master

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '16.x'
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.cache
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
${{ runner.os }}-
- run: yarn
- run: yarn lint
- run: yarn test:ci
- uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cypress-io/github-action@v2
with:
build: yarn demo:build
start: yarn demo:start
command: yarn test:e2e
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
node_modules
yarn-error.log
build
build/
lib/
.eslintcache
coverage/
dist/
.nuxt
.output
10 changes: 10 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
node_modules
yarn-error.log
build/
lib/
.eslintcache
coverage/
dist/
.nuxt
.output
CHANGELOG.md
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"printWidth": 120,
"printWidth": 100,
"semi": true,
"singleQuote": true,
"trailingComma": "es5"
Expand Down
Loading

0 comments on commit 93b415d

Please sign in to comment.