Skip to content

Commit

Permalink
vue3
Browse files Browse the repository at this point in the history
  • Loading branch information
ztrehagem committed May 3, 2022
1 parent 341d588 commit c9dce4f
Show file tree
Hide file tree
Showing 37 changed files with 6,146 additions and 13,218 deletions.
2 changes: 0 additions & 2 deletions .browserslistrc

This file was deleted.

2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

14 changes: 0 additions & 14 deletions .eslintrc.js

This file was deleted.

33 changes: 33 additions & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
extends:
- eslint:recommended
- plugin:vue/vue3-recommended
- plugin:@typescript-eslint/recommended
- plugin:@typescript-eslint/recommended-requiring-type-checking
- prettier

parserOptions:
project: "tsconfig.json"

rules:
"func-style":
- "error"
- "expression"
"@typescript-eslint/explicit-module-boundary-types": "warn"
"@typescript-eslint/no-unused-vars":
- "warn"
- varsIgnorePattern: "^_"
args: "none"
ignoreRestSiblings: true
"@typescript-eslint/no-non-null-assertion": "off"

overrides:
- files: ["src/**/*.{ts,tsx}"]
env:
browser: true
rules:
no-console: "error"
no-debugger: "error"

- files: ["*.{ts,js}"]
env:
node: true
29 changes: 0 additions & 29 deletions .github/workflows/gh-pages.yaml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Lint

on: push

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version-file: .node-version
cache: npm
- run: npm install
- run: npm run lint

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version-file: .node-version
cache: npm
- run: npm install
- run: npm run build:lib
21 changes: 1 addition & 20 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
.DS_Store
node_modules
/dist
/gh-pages

# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
/site
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12.17.0
16.15.0
6 changes: 0 additions & 6 deletions .prettierrc

This file was deleted.

37 changes: 17 additions & 20 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
This is free and unencumbered software released into the public domain.
MIT License

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
Copyright (c) 2022 Shigeki Suwa

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

For more information, please refer to <https://unlicense.org>
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
78 changes: 29 additions & 49 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,62 +1,42 @@
# @ztrehagem/vue-accordion

## Usage
![](https://img.shields.io/npm/v/@ztrehagem/vue-accordion/latest)
![](https://img.shields.io/npm/dependency-version/@ztrehagem/vue-accordion/peer/vue)
![](https://img.shields.io/npm/types/@ztrehagem/vue-accordion)
![](https://img.shields.io/github/license/ztrehagem/vue-accordion)

1. Install
## Installation

```
npm install @ztrehagem/vue-accordion
```
```sh
npm install @ztrehagem/vue-accordion
```

2. Import default style (optional)
## Usage

```js
// for css loaders
import '@ztrehagem/vue-accordion/dist/vue-accordion.css'
```
or
```scss
// for css preprocessors
@import '~@ztrehagem/vue-accordion/dist/vue-accordion.css'
```
1. (Recommended/Optional) Import default style.

3. Use as component
This is a minimum style for achieving the behavior of accordion. ([source](./src/lib/style.css))

```js
import VueAccordion from '@ztrehagem/vue-accordion'
```ts
import "@ztrehagem/vue-accordion/style.css";
```

export default {
components: {
VueAccordion
}
}
```
```html
<VueAccordion :expanded="isExpanded">
<strong>Hello World!</strong>
</VueAccordion>
```
2. Import and use VueAccordion component.

```js
import { VueAccordion } from "@ztrehagem/vue-accordion";

## Development setup
```
npm install
```
export default {
components: {
VueAccordion,
},
};
```

### Compiles and hot-reloads for development
```
npm run dev
```
### Compiles and minifies for publish
```
npm run build
```
### Lints and fixes files
```
npm run lint
```
```html
<VueAccordion :expanded="isExpanded">
<strong>Hello World!</strong>
</VueAccordion>
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
See [src](./src) for more examples.
3 changes: 0 additions & 3 deletions babel.config.js

This file was deleted.

Loading

1 comment on commit c9dce4f

@vercel
Copy link

@vercel vercel bot commented on c9dce4f May 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

vue-accordion – ./

vue-accordion-tau.vercel.app
vue-accordion-ztrehagem.vercel.app
vue-accordion-git-main-ztrehagem.vercel.app

Please sign in to comment.