Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
kolirt committed Oct 12, 2023
1 parent e0afa2f commit c478a50
Show file tree
Hide file tree
Showing 33 changed files with 987 additions and 782 deletions.
9 changes: 7 additions & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,17 @@ module.exports = {
'extends': [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-typescript'
'@vue/eslint-config-typescript',
'@vue/eslint-config-prettier/skip-formatting',
],
parserOptions: {
ecmaVersion: 'latest'
},
rules: {
'vue/multi-word-component-names': 'off'
}
},
ignorePatterns: [
'dist/**/*',
'demo/**/*'
]
}
30 changes: 30 additions & 0 deletions .github/_old/publish-to-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#name: 🚀 publish to npm
#
#on:
# release:
# types: [ published ]
#
#jobs:
# release:
# name: 🚀 Release
# runs-on: ubuntu-latest
# steps:
# - name: 📚 Checkout
# uses: actions/checkout@v3
# - name: 🟢 Node
# uses: actions/setup-node@v3
# with:
# node-version: 16
# registry-url: 'https://registry.npmjs.org'
# - name: 🕵 Yarn install
# uses: borales/actions-yarn@v4
# with:
# cmd: install
# - name: 🏗 Build
# uses: borales/actions-yarn@v4
# with:
# cmd: build-lib
# - name: 🚀 Publish
# run: npm publish --provenance --access public
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
29 changes: 26 additions & 3 deletions .github/workflows/deploy-demo.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: 📝 deploy demo

on:
release:
types: [ published ]

push:
branches:
- master
workflow_dispatch:

permissions:
Expand All @@ -25,12 +25,35 @@ jobs:
steps:
- name: 📚 Checkout
uses: actions/checkout@v3
- uses: johnnybenson/package-json-versioned-action@v1.0.5
id: package-json
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 🟢 Node
if: steps.package-json.outputs.has-updated == 'true'
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
- name: 🕵 Yarn install
if: steps.package-json.outputs.has-updated == 'true'
uses: borales/actions-yarn@v4
with:
cmd: install
- name: 🏗 Build
if: steps.package-json.outputs.has-updated == 'true'
uses: borales/actions-yarn@v4
with:
cmd: build-demo
- name: Setup Pages
if: steps.package-json.outputs.has-updated == 'true'
uses: actions/configure-pages@v3
- name: Upload artifact
if: steps.package-json.outputs.has-updated == 'true'
uses: actions/upload-pages-artifact@v1
with:
path: './demo'
- name: 🚀 Deploy to GitHub Pages
if: steps.package-json.outputs.has-updated == 'true'
id: deployment
uses: actions/deploy-pages@v2
22 changes: 0 additions & 22 deletions .github/workflows/publish-to-npm.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"bracketSpacing": true,
"trailingComma": "none",
"tabWidth": 2,
"printWidth": 120,
"semi": false,
"singleQuote": true,
"endOfLine": "auto",
"plugins": [
"@trivago/prettier-plugin-sort-imports",
"prettier-plugin-organize-attributes",
"prettier-plugin-tailwindcss"
],
"importOrder": [
"^./App.vue$",
"<THIRD_PARTY_MODULES>",
"^@/01-app(.*)$",
"^@/02-pages(.*)$",
"^@/03-widgets(.*)$",
"^@/04-features(.*)$",
"^@/05-entities(.*)$",
"^@/06-shared(.*)$",
"^@/(.*)$",
"^[./]"
],
"importOrderSeparation": true,
"importOrderSortSpecifiers": true,
"attributeGroups": [
"^ref",
"^v-if",
"^v-else",
"^v-show",
"^v-for",
"^:?is$",
"^@",
"^:",
"$DEFAULT",
"^aria-",
"^:?key$"
]
}
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
dev:
yarn dev-demo
format:
yarn format
check:
yarn type-check-lib && yarn lint
build:
yarn build-lib && yarn build-demo
build-demo:
Expand Down
1 change: 0 additions & 1 deletion demo/assets/Test1Modal-d7cae5c6.js

This file was deleted.

2 changes: 0 additions & 2 deletions demo/assets/index-b143dac6.js

This file was deleted.

5 changes: 0 additions & 5 deletions demo/assets/index-b33a0378.css

This file was deleted.

18 changes: 0 additions & 18 deletions demo/index.html

This file was deleted.

67 changes: 0 additions & 67 deletions dist/vue-modal.d.ts

This file was deleted.

Loading

0 comments on commit c478a50

Please sign in to comment.