@odoo/o-spreadsheet 14.0.0 → 14.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,25 +1,27 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "14.0.0",
3
+ "version": "14.0.2",
4
4
  "description": "A spreadsheet component",
5
- "main": "index.js",
5
+ "main": "dist/o-spreadsheet.cjs.js",
6
+ "browser": "dist/o-spreadsheet.iife.js",
7
+ "module": "dist/o-spreadsheet.es.js",
8
+ "types": "dist/o_spreadsheet.d.ts",
6
9
  "files": [
7
- "dist"
10
+ "dist/*.js",
11
+ "dist/*.d.ts"
8
12
  ],
9
13
  "scripts": {
10
14
  "serve": "live-server --open=demo",
11
15
  "dev": "npm-run-all build --parallel serve \"build:* -- --watch\"",
12
- "build:js": "tsc --module es6 --outDir dist/js --incremental",
13
- "build:all": "tsc --module es6 --outDir dist/js",
14
- "build:bundle": "rollup -c -m",
16
+ "build:js": "tsc --module es6 --incremental",
17
+ "build:bundle": "rollup -c -m dev",
15
18
  "build": "npm run build:js && npm run build:bundle",
16
19
  "test": "jest",
17
20
  "test:watch": "jest --watch",
18
21
  "prettier": "prettier {src/*.ts,src/**/*.ts,tests/*.ts,tests/**/*.ts,doc/*.md,demo/*.js} --write",
19
22
  "check-formatting": "prettier {src/*.ts,src/**/*.ts,tests/*.ts,tests/**/*.ts,doc/*.md,demo/*.js} --check",
20
- "dist": "npm run build:all && npm run build:bundle",
21
- "prepare": "husky install",
22
- "release": "node tools/release.js"
23
+ "dist": "tsc --module es6 --declaration --declarationDir dist/types && rollup -c",
24
+ "prepare": "husky install"
23
25
  },
24
26
  "browserslist": [
25
27
  "last 1 Chrome versions"
@@ -41,12 +43,12 @@
41
43
  },
42
44
  "homepage": "https://github.com/odoo/o-spreadsheet#readme",
43
45
  "devDependencies": {
46
+ "@rollup/plugin-terser": "^0.2.0",
44
47
  "@types/chart.js": "^2.9.24",
45
48
  "@types/jest": "^27.0.1",
46
49
  "@types/node": "^13.11.1",
47
50
  "babel-eslint": "^10.1.0",
48
51
  "eslint": "^6.8.0",
49
- "current-git-branch": "^1.1.0",
50
52
  "git-rev-sync": "^2.0.0",
51
53
  "husky": "^7.0.4",
52
54
  "jest": "^27.2.0",
@@ -57,6 +59,8 @@
57
59
  "npm-run-all": "^4.1.5",
58
60
  "prettier": "2.3.1",
59
61
  "rollup": "^2.38.5",
62
+ "rollup-plugin-dts": "^4.2.0",
63
+ "rollup-plugin-typescript2": "^0.34.1",
60
64
  "ts-jest": "^27.0.5",
61
65
  "typescript": "^4.4.3"
62
66
  },
@@ -64,6 +68,8 @@
64
68
  "printWidth": 100
65
69
  },
66
70
  "dependencies": {
71
+ "@actions/core": "^1.10.0",
72
+ "@actions/github": "^5.1.1",
67
73
  "@odoo/owl": "^1.4.10"
68
74
  },
69
75
  "jest": {
package/readme.md CHANGED
@@ -37,3 +37,13 @@ Most of the code is contained in the following four modules:
37
37
  ## Documentation
38
38
 
39
39
  See [documentation](doc/readme.md).
40
+
41
+ ## Workflow
42
+
43
+ The repository relies on Github Workflows to automate the creation of releases
44
+ as well as publishing the package on NPM.
45
+
46
+ # test the workflow
47
+ The workflow can be run locally with the help of https://github.com/nektos/act
48
+ Bear in mind that it is not a full sandbox, you can run actual commands (like
49
+ npm publish). Make sure you adapt said commands to dry runs.