forked from elabftw/elabftw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
124 lines (124 loc) · 6.62 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
{
"name": "elabftw",
"description": "Free and open source electronic lab notebook for research labs",
"main": "builder.js",
"directories": {
"test": "tests"
},
"dependencies": {
"3dmol": "^2.0.2",
"@deltablot/chemdoodle-web-mini": "^9.2.1",
"@deltablot/malle": "^2.2.0",
"@deltablot/open-vector-editor-umd": "^18.0.0",
"@fancyapps/fancybox": "3.5.*",
"@fullcalendar/bootstrap": "^6.1.5",
"@fullcalendar/core": "^6.1.5",
"@fullcalendar/daygrid": "^6.1.5",
"@fullcalendar/interaction": "^6.1.5",
"@fullcalendar/list": "^6.1.5",
"@fullcalendar/timegrid": "^6.1.5",
"bio-parsers": "^9.0.1",
"bootstrap": "^4.5.0",
"bootstrap-markdown-fa5": "2.10.*",
"bootstrap-select": "^1.13.18",
"css-loader": "^6.0.0",
"css-minimizer-webpack-plugin": "^5.0.0",
"dropzone": "^5.8.0",
"expose-loader": "^4.0.0",
"i18next": "^22.0.6",
"jquery": "^3.5.1",
"jquery-ui": "^1.13.0",
"jsoneditor": "^9.0.3",
"luxon": "^3.2.1",
"marked": "^4.0.10",
"mathjax-full": "^3.2.0",
"mini-css-extract-plugin": "^2.1.0",
"peggy": "^3.0.1",
"phpeggy": "^2.0.0",
"popper.js": "1.16.*",
"prismjs": "^1.25.0",
"sass": "^1.23.7",
"stream-browserify": "^3.0.0",
"timers-browserify": "^2.0.12",
"tinymce": "^5.10.0",
"ts-loader": "^9.1.1",
"typescript": "^4.0.3",
"ve-range-utils": "^2.6.3",
"ve-sequence-utils": "^5.1.6",
"webpack": "^5.9.0",
"webpack-cli": "^5.0.0"
},
"devDependencies": {
"@types/bootstrap": "^5.0.17",
"@types/dropzone": "^5.7.4",
"@types/fancybox": "^3.5.2",
"@types/file-saver": "^2.0.1",
"@types/jquery": "^3.5.1",
"@types/jqueryui": "^1.12.14",
"@types/luxon": "^3.0.0",
"@types/marked": "^4.0.8",
"@typescript-eslint/eslint-plugin": "^5.3.0",
"@typescript-eslint/parser": "^5.3.0",
"cypress": "^10.0.0",
"eslint": "^8.2.0",
"postcss": "^8.4.7",
"postcss-scss": "^4.0.3",
"stylelint": "^14.0.1",
"stylelint-config-sass-guidelines": "^9.0.1",
"webpack-bundle-analyzer": "^4.1.0"
},
"scripts": {
"analyzejs": "webpack-bundle-analyzer stats.json web/app/js",
"api": "tests/run.sh api",
"apidoc": "apidoc -c apidoc/v1/apidoc.json -o apidoc/v1/html -i src/controllers",
"apidocv2": "docker run --name swagger --rm -e SWAGGER_JSON=/c/openapi.yaml -v $(pwd)/apidoc/v2/:/c -p 8085:8080 -d swaggerapi/swagger-ui && echo 'APIv2 Doc: http://localhost:8085' && echo 'Run docker stop swagger to remove it.'",
"brotli": "brotli -vf web/assets/*.css web/assets/*.js web/assets/*.svg web/assets/images/*.svg web/assets/ove/*.css web/assets/ove/*.js",
"zopfli": "zopfli -i1000 web/assets/*.css web/assets/*.js web/assets/*.svg web/assets/images/*.svg web/assets/ove/*.css web/assets/ove/*.js",
"build": "webpack-cli --progress --config builder.js",
"build:dev": "webpack-cli --config builder.js",
"buildnode": "webpack-cli --progress --config node-builder.js",
"buildnode:dev": "webpack-cli --config node-builder.js",
"buildall": "CYPRESS_INSTALL_BINARY=0 yarn install --pure-lockfile && yarn buildjs && yarn buildcss && yarn chemdoodle && yarn tinymce && yarn ove && yarn buildparser && yarn brotli && yarn zopfli",
"buildall:dev": "CYPRESS_INSTALL_BINARY=0 yarn install --pure-lockfile && yarn build:dev && yarn buildnode:dev && yarn buildcss && yarn chemdoodle && yarn tinymce && yarn ove && yarn buildparser",
"buildcss": "sass --quiet-deps --style compressed src/scss/main.scss:web/assets/elabftw.min.css src/scss/pdf.scss:web/assets/pdf.min.css",
"buildjs": "yarn build && yarn buildnode",
"buildparser": "node ./src/node/grammar/generateParser.js",
"buildprofile": "webpack-cli --config builder.js --profile --json > stats.json",
"buildnodeprofile": "webpack-cli --config node-builder.js --profile --json > node-stats.json",
"chemdoodle": "cp node_modules/@deltablot/chemdoodle-web-mini/dist/chemdoodle.min.js web/assets",
"clean": "rm -rf apidoc/html _srcdoc src/ts/*.js src/ts/*.js.map web/app/js/*bundle.js src/node/*bundle.js web/app/js/*.LICENSE.txt web/app/js/*.min.js web/app/css/*.min.css web/app/css/*.min.css.map web/assets/ove/*",
"codespell": "codespell --config src/tools/codespellrc -L want to,sSee",
"csslint": "./node_modules/.bin/stylelint src/scss/*.scss",
"cy": "yarn run cypress run",
"full": "yarn phpcs && yarn jslint && yarn csslint && yarn psalm && yarn phpstan && yarn test unit",
"jslint": "eslint --ext .ts src/ts",
"jslint-ci": "eslint --ext .ts --quiet src/ts",
"ove": "mkdir -p web/assets/ove/ && cp node_modules/@deltablot/open-vector-editor-umd/* web/assets/ove/ && rm -f web/assets/ove/open-vector-editor.js*",
"phan": "phan --allow-polyfill-parser -k src/tools/phan-config.php",
"phpcs": "./vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php -v",
"phpcs-dry": "./vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php -v --dry-run --stop-on-violation",
"phpmetrics": "phpmetrics --report-html=metrics . && firefox metrics/index.html",
"phpstan": "./vendor/bin/phpstan analyse --no-progress --memory-limit 4G -c src/tools/phpstan.neon",
"pre-commit": "yarn static && yarn phpcs-dry && yarn csslint && yarn jslint",
"psalm": "psalm --no-progress -c=src/tools/psalm.xml",
"psalmall": "psalm -c=src/tools/psalm.xml --show-info=true",
"rector": "./vendor/bin/rector process src --config src/tools/rector.php",
"rector-dry": "./vendor/bin/rector process src --config src/tools/rector.php --dry-run",
"srcdoc": "phpDocumentor run --cache-folder /tmp -i ./cache -i ./uploads -d src/classes -d src/controllers -d src/exceptions -d src/interfaces -d src/models -d src/services -d src/traits -d web/app/controllers -t _srcdoc --setting=graphs.enabled=true",
"static": "yarn psalm && yarn phpstan",
"test": "tests/run.sh",
"tinymce": "cp node_modules/tinymce/skins/ui/oxide/fonts/tinymce-mobile.woff web/app/css/tinymce/fonts/tinymce-mobile.woff && cp node_modules/tinymce/skins/ui/oxide/*.min.css web/app/css/tinymce/",
"unit": "tests/run.sh unit",
"unit-ci": "php vendor/bin/codecept run unit",
"watchcss": "sass --quiet-deps --watch src/scss/main.scss:web/assets/elabftw.min.css src/scss/pdf.scss:web/assets/pdf.min.css",
"watchjs": "webpack-cli --config builder.js --mode=development --watch --progress",
"watchnode": "webpack-cli --config node-builder.js --mode=development --watch --progress"
},
"repository": "git+https://github.com/elabftw/elabftw.git",
"author": "Nicolas CARPi",
"license": "AGPL-3.0",
"bugs": {
"url": "https://github.com/elabftw/elabftw/issues"
},
"homepage": "https://www.elabftw.net"
}