2019-01-16 11:28:05 +01:00
|
|
|
{
|
|
|
|
|
"name": "web-core",
|
2019-03-21 09:55:33 +01:00
|
|
|
"version": "0.3.0",
|
2019-01-16 11:28:05 +01:00
|
|
|
"description": "Core Utils for Odoo Web Client",
|
2019-03-14 12:51:37 +01:00
|
|
|
"main": "src/index.ts",
|
2019-01-16 11:28:05 +01:00
|
|
|
"scripts": {
|
2019-03-21 14:51:54 +01:00
|
|
|
"build:js": "tsc --lib es2017,dom --target esnext --outDir dist/core 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",
|
|
|
|
|
"dev": "npm-run-all --parallel \"build:* -- --watch\"",
|
2019-01-16 11:28:05 +01:00
|
|
|
"test": "jest",
|
2019-01-16 13:19:58 +01:00
|
|
|
"test:watch": "jest --watch",
|
2019-03-15 12:15:37 +01:00
|
|
|
"example:web:build": "cpx \"examples/web/**/*.{html,js,css,ttf,woff,woff2}\" dist/examples/web && npm-run-all --parallel example:web:build:*",
|
|
|
|
|
"example:web:build:css": "sass examples/web/static/src/scss/app.scss dist/examples/web/app.css",
|
|
|
|
|
"example:web:build:js": "tsc --allowjs -m amd --lib es2017,dom --target esnext --outfile dist/examples/web/main.js examples/web/static/src/ts/main.ts",
|
|
|
|
|
"example:web:build:xml": "cpx examples/web/static/src/xml/templates.xml dist/examples/web",
|
|
|
|
|
"example:web:minify": "uglifyjs dist/examples/web/main.js -o dist/examples/web/main.js --compress --mangle",
|
|
|
|
|
"example:web:serve": "live-server --entry-file=index.html dist/examples/web/",
|
|
|
|
|
"preexample:web:dev": "npm run example:web:build",
|
2019-03-18 11:35:03 +01:00
|
|
|
"example:web:dev": "npm-run-all --parallel \"example:web:build:* -- --watch\" example:web:serve",
|
2019-03-19 13:55:27 +01:00
|
|
|
"example:benchmarks:build:core": "npm run build && cpx \"dist/core.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/",
|
2019-03-19 14:10:05 +01:00
|
|
|
"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: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/",
|
|
|
|
|
"example:todoapp:dev": "npm-run-all --parallel \"example:todoapp:build:* -- --watch\" example:todoapp:serve"
|
2019-01-16 11:28:05 +01:00
|
|
|
},
|
|
|
|
|
"repository": {
|
|
|
|
|
"type": "git",
|
|
|
|
|
"url": "git+https://github.com/ged-odoo/web-core.git"
|
|
|
|
|
},
|
2019-03-14 09:36:48 +01:00
|
|
|
"author": "Odoo",
|
2019-03-14 14:27:52 +01:00
|
|
|
"license": "GPL-3.0-or-later",
|
2019-01-16 11:28:05 +01:00
|
|
|
"bugs": {
|
|
|
|
|
"url": "https://github.com/ged-odoo/web-core/issues"
|
|
|
|
|
},
|
|
|
|
|
"homepage": "https://github.com/ged-odoo/web-core#readme",
|
|
|
|
|
"devDependencies": {
|
|
|
|
|
"@types/jest": "^23.3.12",
|
2019-02-02 11:41:19 +01:00
|
|
|
"cpx": "^1.5.0",
|
2019-01-16 11:28:05 +01:00
|
|
|
"jest": "^23.6.0",
|
2019-01-17 18:08:39 +01:00
|
|
|
"live-server": "^1.2.1",
|
2019-01-21 23:08:03 +01:00
|
|
|
"npm-run-all": "^4.1.5",
|
2019-03-13 15:26:10 +01:00
|
|
|
"rollup": "^1.6.0",
|
|
|
|
|
"rollup-plugin-typescript2": "^0.19.3",
|
2019-01-21 23:08:03 +01:00
|
|
|
"sass": "^1.16.1",
|
2019-01-17 18:08:39 +01:00
|
|
|
"snabbdom-to-html": "^5.1.1",
|
2019-01-16 13:19:58 +01:00
|
|
|
"source-map-support": "^0.5.10",
|
2019-01-16 11:28:05 +01:00
|
|
|
"ts-jest": "^23.10.5",
|
2019-01-23 14:28:41 +01:00
|
|
|
"typescript": "^3.2.2",
|
2019-03-21 09:55:04 +01:00
|
|
|
"git-rev-sync": "^1.12.0",
|
2019-01-23 14:28:41 +01:00
|
|
|
"uglify-es": "^3.3.9"
|
2019-01-17 17:13:46 +01:00
|
|
|
},
|
|
|
|
|
"dependencies": {
|
|
|
|
|
"snabbdom": "^0.7.3"
|
2019-01-16 11:28:05 +01:00
|
|
|
}
|
|
|
|
|
}
|