Skip to content

Commit

Permalink
Update dependencies and move to esbuild (#278)
Browse files Browse the repository at this point in the history
* 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
Maronato authored Oct 16, 2021
1 parent 2204ab5 commit 3e5f57f
Show file tree
Hide file tree
Showing 133 changed files with 2,066 additions and 56,223 deletions.
2 changes: 0 additions & 2 deletions .browserslistrc

This file was deleted.

6 changes: 6 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
examples/
nuxt/plugin.js
node_modules/
dist/
coverage/
.github/
.vscode/

9 changes: 3 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,16 @@ module.exports = {
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"prettier/vue",
"plugin:prettier/recommended",
],
parser: "vue-eslint-parser",
parserOptions: {
ecmaVersion: 11,
parser: "@typescript-eslint/parser",
sourceType: "module",
},
plugins: ["vue", "@typescript-eslint", "prettier"],
plugins: ["vue", "@typescript-eslint"],
rules: {
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
Expand All @@ -41,4 +38,4 @@ module.exports = {
},
},
],
};
}
31 changes: 0 additions & 31 deletions .github/stale.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .husky/pre-commit
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
1 change: 0 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"semi": false,
"arrowParens": "avoid",
"jsxBracketSameLine": true,
"htmlWhitespaceSensitivity": "css"
}
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cache:

script:
- yarn global add codecov
- yarn lint:no-fix
- yarn lint
- yarn test
- yarn install:demo
- yarn build:demo
Expand Down
12 changes: 0 additions & 12 deletions babel.config.js

This file was deleted.

42 changes: 0 additions & 42 deletions build/config.js

This file was deleted.

36 changes: 36 additions & 0 deletions build/esbuild.config.mjs
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)
}
72 changes: 0 additions & 72 deletions build/rollup.config.js

This file was deleted.

4 changes: 4 additions & 0 deletions build/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": ["../src"]
}
13 changes: 0 additions & 13 deletions examples/nuxt-typescript/.editorconfig

This file was deleted.

90 changes: 0 additions & 90 deletions examples/nuxt-typescript/.gitignore

This file was deleted.

22 changes: 0 additions & 22 deletions examples/nuxt-typescript/README.md

This file was deleted.

7 changes: 0 additions & 7 deletions examples/nuxt-typescript/assets/README.md

This file was deleted.

Loading

0 comments on commit 3e5f57f

Please sign in to comment.