mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
add a way to easily package core as a library
This commit is contained in:
+6
-3
@@ -13,7 +13,10 @@
|
|||||||
"minify": "uglifyjs dist/app/main.js -o dist/app/main.js --compress --mangle",
|
"minify": "uglifyjs dist/app/main.js -o dist/app/main.js --compress --mangle",
|
||||||
"serve": "live-server --entry-file=index.html dist/app/",
|
"serve": "live-server --entry-file=index.html dist/app/",
|
||||||
"predev": "npm run build",
|
"predev": "npm run build",
|
||||||
"dev": "npm-run-all --parallel \"build:* -- --watch\" serve"
|
"dev": "npm-run-all --parallel \"build:* -- --watch\" serve",
|
||||||
|
"prepackage:core": "tsc --allowjs --lib es2017,dom --target esnext --outDir dist/core web/static/src/ts/core/*",
|
||||||
|
"package:core": "rollup dist/core/src/ts/core/index.js --file dist/core.js --format umd --name \"odoocore\"",
|
||||||
|
"postpackage:core": "uglifyjs dist/core.js -o dist/core.min.js --compress --mangle"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@@ -31,8 +34,8 @@
|
|||||||
"jest": "^23.6.0",
|
"jest": "^23.6.0",
|
||||||
"live-server": "^1.2.1",
|
"live-server": "^1.2.1",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"rollup": "^1.1.0",
|
"rollup": "^1.6.0",
|
||||||
"rollup-plugin-typescript2": "^0.19.0",
|
"rollup-plugin-typescript2": "^0.19.3",
|
||||||
"sass": "^1.16.1",
|
"sass": "^1.16.1",
|
||||||
"snabbdom-to-html": "^5.1.1",
|
"snabbdom-to-html": "^5.1.1",
|
||||||
"source-map-support": "^0.5.10",
|
"source-map-support": "^0.5.10",
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
export { QWeb } from "./qweb_vdom";
|
||||||
|
export { EventBus } from "./event_bus";
|
||||||
|
export { Component } from "./component";
|
||||||
Reference in New Issue
Block a user