basic project infrastructure

This commit is contained in:
Géry Debongnie
2019-01-16 13:19:58 +01:00
parent 0f3b2d10da
commit f0d529139b
16 changed files with 671 additions and 9 deletions
+9 -3
View File
@@ -4,10 +4,12 @@
"description": "Core Utils for Odoo Web Client",
"main": "index.js",
"scripts": {
"build": "tsc -m amd --lib es2017,dom --target esnext --outfile dist/bundle.js",
"build:watch": "tsc --watch -m amd --lib es2017,dom --target esnext --outfile dist/bundle.js",
"test": "jest",
"test:watch": "jest --watch"
"test:watch": "jest --watch",
"bundle:core": "tsc -m es6 --lib es2017,dom --target esnext --outdir dist src/bundles/core.ts && rollup dist/bundles/core.js --file dist/bundle-core.js --format iife",
"bundle:core:watch": "nodemon -w src -e ts -x 'npm run bundle:core'",
"demo": "cp -r demo/ dist/demo && tsc -m amd --lib es2017,dom --target esnext --outfile dist/demo/main.js demo/src/main.ts",
"postdemo": "open dist/demo/index.html"
},
"repository": {
"type": "git",
@@ -22,6 +24,10 @@
"devDependencies": {
"@types/jest": "^23.3.12",
"jest": "^23.6.0",
"nodemon": "^1.18.9",
"rollup": "^1.1.0",
"rollup-plugin-typescript2": "^0.19.0",
"source-map-support": "^0.5.10",
"ts-jest": "^23.10.5",
"typescript": "^3.2.2"
}