-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependencies and move to esbuild (#278)
* remove stale bot * update dependencies * update eslint config * remove examples * update husky tasks * use esbuild instead of rollup * update travis def * update tsconfig * remove vue.config.js * update jest config * remove deprecated scss division * remove duplicated bounceOutDown animation * remove tsx shims * lint and prettier formatting fixes * remove tsc from lint-staged * do not assign useToast to unused variable * cover element not HTML case on VtTransition.vue * propValidators fixes * cast container type on VtToastContainer.vue * be strict about content props and listeners params
- Loading branch information
Showing
133 changed files
with
2,066 additions
and
56,223 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
examples/ | ||
nuxt/plugin.js | ||
node_modules/ | ||
dist/ | ||
coverage/ | ||
.github/ | ||
.vscode/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn lint-staged && yarn test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"semi": false, | ||
"arrowParens": "avoid", | ||
"jsxBracketSameLine": true, | ||
"htmlWhitespaceSensitivity": "css" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import * as esbuild from "esbuild" | ||
import { sassPlugin } from "esbuild-sass-plugin" | ||
import vuePlugin from "esbuild-plugin-vue" | ||
|
||
build("cjs") | ||
build("esm") | ||
build("iife") | ||
build("iife", true) | ||
|
||
async function build(format, minify = false) { | ||
const withMin = ext => (minify ? `.min.${ext}` : `.${ext}`) | ||
const extMap = { | ||
cjs: withMin("cjs"), | ||
esm: withMin("mjs"), | ||
iife: `.iife${withMin("js")}`, | ||
} | ||
const ext = extMap[format] | ||
|
||
const result = await esbuild.build({ | ||
format, | ||
minify, | ||
bundle: true, | ||
entryPoints: ["src/index.ts"], | ||
outdir: "dist", | ||
external: ["vue"], | ||
metafile: true, | ||
plugins: [sassPlugin(), vuePlugin()], | ||
outExtension: { | ||
".js": ext, | ||
}, | ||
target: ["es2017"], | ||
}) | ||
|
||
const report = await esbuild.analyzeMetafile(result.metafile || "") | ||
console.log(report) | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"include": ["../src"] | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.