[ADD] tooling: add release script

More work is needed to complete this, but the basics is here, and it is
difficult to test.

closes #612
This commit is contained in:
Géry Debongnie
2020-01-18 11:14:23 +01:00
parent 6739e79aac
commit 5711eb065d
3 changed files with 226 additions and 3 deletions
+8 -2
View File
@@ -4,7 +4,10 @@
"description": "Odoo Web Library (OWL)",
"main": "dist/owl.js",
"types": "dist/types/index.d.ts",
"files": ["dist/types/", "dist/owl.js"],
"files": [
"dist/types/",
"dist/owl.js"
],
"engines": {
"node": ">=10.15.3"
},
@@ -21,7 +24,8 @@
"pretools:watch": "npm run build",
"tools:watch": "npm-run-all --parallel tools:serve \"build:* -- --watch\"",
"prettier": "prettier {src/*.ts,src/**/*.ts,tests/*.ts,tests/**/*.ts,doc/*.md,doc/**/*.md} --write",
"publish": "npm run buildcommonjs && npm publish"
"publish": "npm run buildcommonjs && npm publish",
"release": "node tools/release.js"
},
"repository": {
"type": "git",
@@ -36,8 +40,10 @@
"dependencies": {},
"devDependencies": {
"@types/jest": "^23.3.12",
"chalk": "^3.0.0",
"cpx": "^1.5.0",
"git-rev-sync": "^1.12.0",
"github-api": "^3.3.0",
"jest": "^23.6.0",
"jest-environment-jsdom": "^24.7.1",
"live-server": "^1.2.1",