@odoo/o-spreadsheet 14.0.0
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 +92 -0
- package/readme.md +39 -0
package/package.json
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@odoo/o-spreadsheet",
|
|
3
|
+
"version": "14.0.0",
|
|
4
|
+
"description": "A spreadsheet component",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"scripts": {
|
|
10
|
+
"serve": "live-server --open=demo",
|
|
11
|
+
"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",
|
|
15
|
+
"build": "npm run build:js && npm run build:bundle",
|
|
16
|
+
"test": "jest",
|
|
17
|
+
"test:watch": "jest --watch",
|
|
18
|
+
"prettier": "prettier {src/*.ts,src/**/*.ts,tests/*.ts,tests/**/*.ts,doc/*.md,demo/*.js} --write",
|
|
19
|
+
"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
|
+
},
|
|
24
|
+
"browserslist": [
|
|
25
|
+
"last 1 Chrome versions"
|
|
26
|
+
],
|
|
27
|
+
"keywords": [
|
|
28
|
+
"owl",
|
|
29
|
+
"spreadsheet",
|
|
30
|
+
"o-spreadsheet",
|
|
31
|
+
"odoo"
|
|
32
|
+
],
|
|
33
|
+
"author": "Odoo",
|
|
34
|
+
"license": "LGPL-3.0-or-later",
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/odoo/o-spreadsheet.git"
|
|
38
|
+
},
|
|
39
|
+
"bugs": {
|
|
40
|
+
"url": "https://github.com/odoo/o-spreadsheet/issues"
|
|
41
|
+
},
|
|
42
|
+
"homepage": "https://github.com/odoo/o-spreadsheet#readme",
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@types/chart.js": "^2.9.24",
|
|
45
|
+
"@types/jest": "^27.0.1",
|
|
46
|
+
"@types/node": "^13.11.1",
|
|
47
|
+
"babel-eslint": "^10.1.0",
|
|
48
|
+
"eslint": "^6.8.0",
|
|
49
|
+
"current-git-branch": "^1.1.0",
|
|
50
|
+
"git-rev-sync": "^2.0.0",
|
|
51
|
+
"husky": "^7.0.4",
|
|
52
|
+
"jest": "^27.2.0",
|
|
53
|
+
"jest-environment-jsdom": "^27.2.0",
|
|
54
|
+
"lint-staged": "^12.1.2",
|
|
55
|
+
"live-server": "^1.2.1",
|
|
56
|
+
"mockdate": "^3.0.2",
|
|
57
|
+
"npm-run-all": "^4.1.5",
|
|
58
|
+
"prettier": "2.3.1",
|
|
59
|
+
"rollup": "^2.38.5",
|
|
60
|
+
"ts-jest": "^27.0.5",
|
|
61
|
+
"typescript": "^4.4.3"
|
|
62
|
+
},
|
|
63
|
+
"prettier": {
|
|
64
|
+
"printWidth": 100
|
|
65
|
+
},
|
|
66
|
+
"dependencies": {
|
|
67
|
+
"@odoo/owl": "^1.4.10"
|
|
68
|
+
},
|
|
69
|
+
"jest": {
|
|
70
|
+
"roots": [
|
|
71
|
+
"<rootDir>/src",
|
|
72
|
+
"<rootDir>/tests"
|
|
73
|
+
],
|
|
74
|
+
"transform": {
|
|
75
|
+
"^.+\\.ts?$": "ts-jest"
|
|
76
|
+
},
|
|
77
|
+
"verbose": false,
|
|
78
|
+
"testEnvironment": "jsdom",
|
|
79
|
+
"testRegex": "(/tests/.*(test|spec))\\.ts?$",
|
|
80
|
+
"moduleFileExtensions": [
|
|
81
|
+
"ts",
|
|
82
|
+
"tsx",
|
|
83
|
+
"js",
|
|
84
|
+
"jsx",
|
|
85
|
+
"json",
|
|
86
|
+
"node"
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
"lint-staged": {
|
|
90
|
+
"{src/*.ts,src/**/*.ts,tests/*.ts,tests/**/*.ts,doc/*.md,demo/*.js}": "prettier --write"
|
|
91
|
+
}
|
|
92
|
+
}
|
package/readme.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# o-spreadsheet
|
|
2
|
+
|
|
3
|
+
a.k.a. "Owly Sheet"
|
|
4
|
+
|
|
5
|
+
Spreadsheet component, written in Owl.
|
|
6
|
+
|
|
7
|
+
## Prerequisites
|
|
8
|
+
|
|
9
|
+
install nodejs 12.0 at least
|
|
10
|
+
|
|
11
|
+
## Scripts
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
# install dependencies
|
|
15
|
+
npm install
|
|
16
|
+
|
|
17
|
+
# build o_spreadsheet.js in dist/
|
|
18
|
+
npm run build
|
|
19
|
+
|
|
20
|
+
# build stuff, start a live server, build with --watch
|
|
21
|
+
npm run dev
|
|
22
|
+
|
|
23
|
+
# run the test suite
|
|
24
|
+
npm run test
|
|
25
|
+
npm run test -- --watch
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Code
|
|
29
|
+
|
|
30
|
+
Most of the code is contained in the following four modules:
|
|
31
|
+
|
|
32
|
+
- `formulas`
|
|
33
|
+
- `functions`
|
|
34
|
+
- `model`
|
|
35
|
+
- `ui`
|
|
36
|
+
|
|
37
|
+
## Documentation
|
|
38
|
+
|
|
39
|
+
See [documentation](doc/readme.md).
|