update: no vue-2 compatability (doesn't work with current build)
* README.md
This commit is contained in:
+3
-7
@@ -15,14 +15,12 @@
|
|||||||
"module": "dist/revue-flow.umd.js",
|
"module": "dist/revue-flow.umd.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist"
|
||||||
"nocss"
|
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vue-tsc --noEmit && vite build",
|
"build": "vue-tsc --noEmit && vite build",
|
||||||
"build:dist": "rollup -c --environment NODE_ENV:production",
|
"build:dist": "rollup -c --environment NODE_ENV:production",
|
||||||
"build:app": "vite build -c vite.config.app.ts",
|
|
||||||
"serve": "vite preview",
|
"serve": "vite preview",
|
||||||
"prepublishOnly": "yarn build:dist",
|
"prepublishOnly": "yarn build:dist",
|
||||||
"test": "exit 0;",
|
"test": "exit 0;",
|
||||||
@@ -35,8 +33,7 @@
|
|||||||
"d3-selection": "^3.0.0",
|
"d3-selection": "^3.0.0",
|
||||||
"d3-zoom": "^3.0.0",
|
"d3-zoom": "^3.0.0",
|
||||||
"fast-deep-equal": "^3.1.3",
|
"fast-deep-equal": "^3.1.3",
|
||||||
"pinia": "^2.0.0-beta.3",
|
"pinia": "^2.0.0-beta.3"
|
||||||
"vue-demi": "latest"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.14.6",
|
"@babel/core": "^7.14.6",
|
||||||
@@ -76,8 +73,7 @@
|
|||||||
"vue-tsc": "^0.0.24"
|
"vue-tsc": "^0.0.24"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@vue/composition-api": "^1.0.0-rc.13",
|
"vue": ">=3.0.5"
|
||||||
"vue": "^2.6.0 || >=3.0.5"
|
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public",
|
"access": "public",
|
||||||
|
|||||||
@@ -1,16 +0,0 @@
|
|||||||
import { defineConfig } from 'vite';
|
|
||||||
import vue from '@vitejs/plugin-vue';
|
|
||||||
import vueJsx from '@vitejs/plugin-vue-jsx';
|
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
|
||||||
export default defineConfig({
|
|
||||||
build: {
|
|
||||||
outDir: 'build'
|
|
||||||
},
|
|
||||||
plugins: [
|
|
||||||
vue(),
|
|
||||||
vueJsx({
|
|
||||||
// options are passed on to @vue/babel-plugin-jsx
|
|
||||||
})
|
|
||||||
]
|
|
||||||
});
|
|
||||||
+1
-22
@@ -1,32 +1,11 @@
|
|||||||
import { defineConfig } from 'vite';
|
import { defineConfig } from 'vite';
|
||||||
import { resolve } from 'path';
|
|
||||||
import vue from '@vitejs/plugin-vue';
|
import vue from '@vitejs/plugin-vue';
|
||||||
import vueJsx from '@vitejs/plugin-vue-jsx';
|
import vueJsx from '@vitejs/plugin-vue-jsx';
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
build: {
|
build: {
|
||||||
lib: {
|
outDir: 'build'
|
||||||
entry: resolve(__dirname, 'src/index.ts'),
|
|
||||||
name: 'RevueFlow'
|
|
||||||
},
|
|
||||||
sourcemap: true,
|
|
||||||
rollupOptions: {
|
|
||||||
external: ['vue-demi'],
|
|
||||||
output: {
|
|
||||||
globals: {
|
|
||||||
'vue-demi': 'VueDemi'
|
|
||||||
},
|
|
||||||
dir: 'dist',
|
|
||||||
sourcemap: true,
|
|
||||||
exports: 'named'
|
|
||||||
},
|
|
||||||
inlineDynamicImports: true
|
|
||||||
},
|
|
||||||
commonjsOptions: {
|
|
||||||
include: 'node_modules/**'
|
|
||||||
},
|
|
||||||
polyfillDynamicImport: true
|
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
vue(),
|
vue(),
|
||||||
|
|||||||
+6201
-23
File diff suppressed because it is too large
Load Diff
@@ -6606,11 +6606,6 @@ vite@^2.3.8:
|
|||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
fsevents "~2.3.2"
|
fsevents "~2.3.2"
|
||||||
|
|
||||||
vue-demi@latest:
|
|
||||||
version "0.10.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/vue-demi/-/vue-demi-0.10.1.tgz#229b81395510f02f4ee255344557a12cc0120930"
|
|
||||||
integrity sha512-L6Oi+BvmMv6YXvqv5rJNCFHEKSVu7llpWWJczqmAQYOdmPPw5PNYoz1KKS//Fxhi+4QP64dsPjtmvnYGo1jemA==
|
|
||||||
|
|
||||||
vue-eslint-parser@^7.0.0, vue-eslint-parser@^7.6.0:
|
vue-eslint-parser@^7.0.0, vue-eslint-parser@^7.6.0:
|
||||||
version "7.6.0"
|
version "7.6.0"
|
||||||
resolved "https://registry.yarnpkg.com/vue-eslint-parser/-/vue-eslint-parser-7.6.0.tgz#01ea1a2932f581ff244336565d712801f8f72561"
|
resolved "https://registry.yarnpkg.com/vue-eslint-parser/-/vue-eslint-parser-7.6.0.tgz#01ea1a2932f581ff244336565d712801f8f72561"
|
||||||
|
|||||||
Reference in New Issue
Block a user