Skip to content
This repository was archived by the owner on Jan 9, 2022. It is now read-only.

Commit 7d70812

Browse files
Merge pull request #2 from MichaelGitArt/next
Next
2 parents 28c3c4f + b5c8018 commit 7d70812

26 files changed

+568
-176
lines changed

packages/demo/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
"license": "MIT",
99
"dependencies": {
1010
"@vueuse/core": "^5.2.0",
11-
"gitart-vue-dialog": "1.1.0"
11+
"gitart-vue-dialog": "^1.2.0"
1212
},
1313
"devDependencies": {
1414
"@vitejs/plugin-vue": "^1.3.0",
1515
"vite": "^2.5.3",
1616
"vite-plugin-windicss": "^1.2.7",
17-
"vue-tsc": "0.3.0",
17+
"vue-tsc": "^0.29.8",
1818
"windicss": "^3.1.6"
1919
}
2020
}

packages/demo/src/components/UI/Radio/Radio.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div>
3-
<label v-bind="''">
3+
<label>
44
<input
55
type="radio"
66
:name="computedName"

packages/dialog/.npmignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*
2+
!dist/**/*
3+
!LINCENSE
4+
README.md

packages/dialog/LICENSE

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Misha Kryvoruchko
4+
5+
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:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
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.
10+
11+
The MIT License (MIT)

packages/dialog/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@
1010

1111
🤯 [Examples](https://michaelgitart.github.io/gitart-vue-dialog/)
1212

13+
🃏 [Plan for the Future](https://trello.com/b/CYcpbq4F/gitart-oss/)
14+
1315
Typescript support, customizable, beautifully animated, lightweight
1416

15-
~9.5 KiB - index.upd.js `gitart-vue-dialog` <br/>
16-
~8.6 KiB - index.es.js `gitart-vue-dialog/dist/index.es.js` <br/>
17-
~1.7 KiB - style.css `gitart-vue-dialog/dist/style.css` <br/>
17+
~9.9 KiB - index.cjs `gitart-vue-dialog` <br/>
18+
~8.9 KiB - index.mjs `gitart-vue-dialog/dist/index.mjs` <br/>
19+
~1.8 KiB - style.css `gitart-vue-dialog/dist/style.css` <br/>
1820

1921

2022
## Instalation

packages/dialog/build/build.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ const shell = require('shelljs')
44

55
shell.exec('vue-tsc --noEmit')
66
shell.exec('vite build --config build/vite.config.ts')
7-
shell.exec('cp ./build/index.d.ts ./dist/index.es.d.ts')
8-
shell.exec('cp ./build/index.d.ts ./dist/index.upd.d.ts')
7+
shell.exec('vue-tsc --declaration --emitDeclarationOnly --p build/tsconfig.json')

packages/dialog/build/index.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/dialog/build/tsconfig.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "../dist",
5+
},
6+
"files": [
7+
"../src/index.ts"
8+
]
9+
}

packages/dialog/build/vite.config.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,17 @@ export default defineConfig({
1818
lib: {
1919
entry: resolve('src/index.ts'),
2020
name: 'index',
21-
fileName: format => `index.${format}.js`,
21+
fileName: format => {
22+
let fileEnd = 'js'
23+
24+
if(format === 'es') {
25+
fileEnd = 'mjs'
26+
}else if (format === 'umd') {
27+
fileEnd = 'cjs'
28+
}
29+
30+
return `index.${fileEnd}`
31+
},
2232
},
2333

2434
rollupOptions: {

packages/dialog/dev/.eslintrc.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/* eslint-env node */
2+
module.exports = {
3+
extends: [
4+
'../../../.eslintrc.js',
5+
],
6+
7+
rules: {
8+
'no-undef': 'off',
9+
},
10+
}

0 commit comments

Comments
 (0)