mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
remove unused packages.
This commit is contained in:
parent
67b7b478da
commit
3214d35f24
1479
package-lock.json
generated
1479
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
26
package.json
26
package.json
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"description": "Client as reusable Vue.js component for neko streaming server.",
|
||||
"main": "dist/neko.umd.js",
|
||||
"module": "dist/neko.esm.js",
|
||||
"module": "dist/neko.common.js",
|
||||
"unpkg": "dist/neko.min.js",
|
||||
"browser": {
|
||||
"./sfc": "src/components/canvas.vue"
|
||||
@ -11,32 +11,18 @@
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve --mode development",
|
||||
"lint": "vue-cli-service lint",
|
||||
"build": "vue-cli-service build --target lib --name neko ./src/components/canvas.vue",
|
||||
"build:rollup": "npm run build:umd & npm run build:es & npm run build:unpkg",
|
||||
"build:umd": "rollup --config rollup.config.js --format umd --file dist/neko.umd.js",
|
||||
"build:es": "rollup --config rollup.config.js --format es --file dist/neko.esm.js",
|
||||
"build:unpkg": "rollup --config rollup.config.js --format iife --file dist/neko.min.js"
|
||||
"build": "vue-cli-service build --target lib --name neko ./src/components/canvas.vue"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fortawesome/fontawesome-free": "^5.14.0",
|
||||
"axios": "^0.19.1",
|
||||
"eventemitter3": "^4.0.7",
|
||||
"resize-observer-polyfill": "^1.5.1",
|
||||
"sweetalert2": "^9.17.2",
|
||||
"typed-vuex": "^0.1.21",
|
||||
"v-tooltip": "^2.0.3",
|
||||
"vue": "^2.6.12",
|
||||
"vue-class-component": "^7.2.6",
|
||||
"vue-context": "^5.2.0",
|
||||
"vue-i18n": "^8.21.1",
|
||||
"vue-notification": "^1.3.20",
|
||||
"vue-property-decorator": "^8.5.1",
|
||||
"vuex": "^3.5.1"
|
||||
"vue-property-decorator": "^8.5.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@rollup/plugin-alias": "^3.1.1",
|
||||
"@rollup/plugin-buble": "^0.21.3",
|
||||
"@rollup/plugin-commonjs": "^16.0.0",
|
||||
"@types/node": "^13.13.30",
|
||||
"@types/vue": "^2.0.0",
|
||||
"@typescript-eslint/eslint-plugin": "^2.34.0",
|
||||
@ -44,7 +30,6 @@
|
||||
"@vue/cli-plugin-babel": "^4.5.6",
|
||||
"@vue/cli-plugin-eslint": "^4.5.6",
|
||||
"@vue/cli-plugin-typescript": "^4.5.8",
|
||||
"@vue/cli-plugin-vuex": "^4.5.6",
|
||||
"@vue/cli-service": "^4.5.6",
|
||||
"@vue/eslint-config-prettier": "^6.0.0",
|
||||
"@vue/eslint-config-typescript": "^5.1.0",
|
||||
@ -53,11 +38,6 @@
|
||||
"eslint-plugin-vue": "^6.2.2",
|
||||
"node-sass": "^4.14.1",
|
||||
"prettier": "^2.1.2",
|
||||
"rollup": "^2.33.1",
|
||||
"rollup-plugin-auto-external": "^2.0.0",
|
||||
"rollup-plugin-terser": "^7.0.2",
|
||||
"rollup-plugin-typescript2": "^0.29.0",
|
||||
"rollup-plugin-vue": "^5.0.1",
|
||||
"sass-loader": "^8.0.0",
|
||||
"ts-node": "^8.10.2",
|
||||
"typescript": "^3.9.7",
|
||||
|
@ -1,48 +0,0 @@
|
||||
import typescript from 'rollup-plugin-typescript2'
|
||||
import vue from 'rollup-plugin-vue'
|
||||
import alias from '@rollup/plugin-alias'
|
||||
import commonjs from '@rollup/plugin-commonjs'
|
||||
import autoExternal from 'rollup-plugin-auto-external'
|
||||
import buble from '@rollup/plugin-buble'
|
||||
import { terser } from 'rollup-plugin-terser'
|
||||
|
||||
export default {
|
||||
input: 'src/wrapper.js', // Path relative to package.json
|
||||
output: {
|
||||
name: 'NekoClient',
|
||||
exports: 'named',
|
||||
globals: {
|
||||
"vue": "Vue",
|
||||
"vue-property-decorator": "VueClassComponent",
|
||||
"vue-class-component": "VueClassComponent",
|
||||
"axios": "axios",
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
typescript({
|
||||
check: false,
|
||||
}),
|
||||
vue({
|
||||
css: true,
|
||||
compileTemplate: true,
|
||||
}),
|
||||
alias({
|
||||
entries: [
|
||||
{ find:/^@\/(.+)/, replacement: './$1' }
|
||||
]
|
||||
}),
|
||||
commonjs({
|
||||
include: 'node_modules/**',
|
||||
}),
|
||||
autoExternal(),
|
||||
buble({
|
||||
objectAssign: 'Object.assign',
|
||||
}),
|
||||
terser(),
|
||||
],
|
||||
external: [
|
||||
"vue",
|
||||
"vue-class-component",
|
||||
"axios"
|
||||
],
|
||||
};
|
@ -1,28 +0,0 @@
|
||||
// Import vue component
|
||||
import Neko from './components/canvas.vue';
|
||||
|
||||
// Declare install function executed by Vue.use()
|
||||
export function install(Vue) {
|
||||
if (install.installed) return;
|
||||
install.installed = true;
|
||||
Vue.component('Neko', Neko);
|
||||
}
|
||||
|
||||
// Create module definition for Vue.use()
|
||||
const plugin = {
|
||||
install,
|
||||
};
|
||||
|
||||
// Auto-install when vue is found (eg. in browser via <script> tag)
|
||||
let GlobalVue = null;
|
||||
if (typeof window !== 'undefined') {
|
||||
GlobalVue = window.Vue;
|
||||
} else if (typeof global !== 'undefined') {
|
||||
GlobalVue = global.Vue;
|
||||
}
|
||||
if (GlobalVue) {
|
||||
GlobalVue.use(plugin);
|
||||
}
|
||||
|
||||
// To allow use as module (npm/webpack/etc.) export Neko
|
||||
export default Neko;
|
Loading…
Reference in New Issue
Block a user