mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
fix: update build scripts: core.js -> owl.js
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<link rel="icon" href="data:,">
|
||||
|
||||
<!-- Application JS/CSS -->
|
||||
<script src="/core.js"></script>
|
||||
<script src="/owl.js"></script>
|
||||
<link rel="stylesheet" href="/app.css">
|
||||
<script type="module" src="/main.js"></script>
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<link rel="icon" href="data:,">
|
||||
|
||||
<!-- Application JS/CSS -->
|
||||
<script src="/core.js"></script>
|
||||
<script src="/owl.js"></script>
|
||||
<link rel="stylesheet" href="/app.css">
|
||||
<script type="module" src="/main.js"></script>
|
||||
|
||||
|
||||
+4
-4
@@ -4,10 +4,10 @@
|
||||
"description": "Odoo Web Lab",
|
||||
"main": "src/index.ts",
|
||||
"scripts": {
|
||||
"build:js": "tsc --lib es2017,dom --target esnext --outDir dist/core src/*",
|
||||
"build:js": "tsc --lib es2017,dom --target esnext --outDir dist/owl src/*",
|
||||
"build:bundle": "rollup -c",
|
||||
"build": "npm run build:js && npm run build:bundle",
|
||||
"minify": "uglifyjs dist/core.js -o dist/core.min.js --compress --mangle",
|
||||
"minify": "uglifyjs dist/owl.js -o dist/owl.min.js --compress --mangle",
|
||||
"dev": "npm-run-all --parallel \"build:* -- --watch\"",
|
||||
"test": "jest",
|
||||
"test:watch": "jest --watch",
|
||||
@@ -19,12 +19,12 @@
|
||||
"example:web:serve": "live-server --entry-file=index.html dist/examples/web/",
|
||||
"preexample:web:dev": "npm run example:web:build",
|
||||
"example:web:dev": "npm-run-all --parallel \"example:web:build:* -- --watch\" example:web:serve",
|
||||
"example:benchmarks:build:core": "npm run build && cpx \"dist/core.js\" dist/examples/benchmarks",
|
||||
"example:benchmarks:build:core": "npm run build && cpx \"dist/owl.js\" dist/examples/benchmarks",
|
||||
"example:benchmarks:build:js": "cpx \"examples/benchmarks/{*.html,*.js,*.css}\" dist/examples/benchmarks",
|
||||
"example:benchmarks:build": "npm-run-all --parallel example:benchmarks:build:*",
|
||||
"example:benchmarks:serve": "live-server --entry-file=index.html dist/examples/benchmarks/",
|
||||
"example:benchmarks:dev": "npm-run-all --parallel \"example:benchmarks:build:* -- --watch\" example:benchmarks:serve",
|
||||
"example:todoapp:build:core": "npm run build && cpx \"dist/core.js\" dist/examples/todoapp",
|
||||
"example:todoapp:build:core": "npm run build && cpx \"dist/owl.js\" dist/examples/todoapp",
|
||||
"example:todoapp:build:js": "cpx \"examples/todoapp/{*.html,**/*.js,*.css,*.xml}\" dist/examples/todoapp",
|
||||
"example:todoapp:build": "npm-run-all --parallel example:todoapp:build:*",
|
||||
"example:todoapp:serve": "live-server --entry-file=index.html dist/examples/todoapp/",
|
||||
|
||||
+2
-2
@@ -3,9 +3,9 @@ import git from "git-rev-sync";
|
||||
|
||||
// rollup.config.js
|
||||
export default {
|
||||
input: "dist/core/src/index.js",
|
||||
input: "dist/owl/src/index.js",
|
||||
output: {
|
||||
file: "dist/core.js",
|
||||
file: "dist/owl.js",
|
||||
format: "iife",
|
||||
name: "owl",
|
||||
extend: true,
|
||||
|
||||
Reference in New Issue
Block a user