Added a build process

This commit is contained in:
2022-01-29 19:13:36 +03:00
parent 31a1a3c3f4
commit a7459b7557
9 changed files with 539 additions and 16 deletions

View File

@@ -4,24 +4,24 @@
"private": true,
"author": "Anatoly Kopyl <akopyl@radner.ru>",
"license": "GPL-3.0",
"main": "bundle/vue-three-d-mockup.esm.js",
"browser": {
"./sfc": "src/Mockup.vue"
},
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"build-bundle": "vue-cli-service build --target lib --name vue-three-d-mockup ./src/index.js",
"build-bundle": "rollup -c",
"lint": "vue-cli-service lint"
},
"files": [
"dist/*",
"src/*",
"*.json",
"*.js"
],
"dependencies": {
"core-js": "^3.6.5",
"three": "^0.137.5",
"vue": "^3.0.0"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-url": "^6.1.0",
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-eslint": "~4.5.0",
"@vue/cli-service": "~4.5.0",
@@ -31,6 +31,7 @@
"eslint": "^6.7.2",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-vue": "^7.0.0",
"file-loader": "^6.2.0"
"file-loader": "^6.2.0",
"rollup-plugin-vue": "^6.0.0"
}
}