-
Notifications
You must be signed in to change notification settings - Fork 49
/
package.json
67 lines (67 loc) · 2.98 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
{
"name": "@transloadit/jquery-sdk",
"keywords": [
"uploader",
"jquery uploader",
"transloadit",
"transload it"
],
"version": "3.3.5",
"scripts": {
"browserify": "browserify -t [ babelify --presets [ es2015 ] ] js/lib/*.js -o build/jquery.transloadit2-v3-latest.js",
"build": "npm run clean && npm run css && npm run browserify && npm run uglify && npm run inject_comment && npm run gzip && npm run versionify",
"clean": "rm -rf build/*",
"css": "mkdir -p build/css/img && cp css/transloadit.css build/css/transloadit2-v3-latest.css && cp -v css/img/* build/css/img/",
"dev": "npm run clean && npm run css && npm run browserify",
"fix": "biome check --write .",
"fix:unsafe": "biome check --write --unsafe .",
"gzip": "gzip --force --best < build/jquery.transloadit2-v3-latest.js > build/jquery.transloadit2-v3-latest.js.gz",
"inject_comment": "node inject_comment.js",
"inject": "cp -v build/css/transloadit2-v3-latest.css ${WEBSITEDIR:-~/code/content}/css/transloadit2-v3-latest.css && cp -v build/css/img/* ${WEBSITEDIR:-~/code/content}/css/img/ && cp -v build/jquery.transloadit2-v3*.js* ${WEBSITEDIR:-~/code/content}/js",
"link": "ln -nfs $(pwd) ${WEBSITEDIR:-../content}/jquery-sdk",
"lint": "biome check .",
"release:major": "env SEMANTIC=major npm run release",
"release:minor": "env SEMANTIC=minor npm run release",
"release:patch": "env SEMANTIC=patch npm run release",
"release": "npm version ${SEMANTIC:-patch} -m \"Release %s\" && git push --tags && git push && npm publish",
"test:e2e": "playwright test tests/e2e.test.js",
"test:server": "node tests/server.js",
"test:unit": "vitest run tests/unit --coverage",
"test:watch": "vitest watch tests/unit",
"test": "npm-run-all build lint test:unit test:e2e",
"uglify": "uglifyjs --comments --output build/jquery.transloadit2-v3-latest.js --source-map -- build/jquery.transloadit2-v3-latest.js",
"version": "node -e 'console.log(require(\"./package.json\").version)'",
"versionify": "cd build && for file in *.*; do cp -v ${file} $(echo ${file} |sed \"s/v3-latest/v$(npm run --silent version)/g\" ); done"
},
"files": [
"build",
"css",
"js"
],
"dependencies": {
"@playwright/test": "^1.47.2",
"socket.io-client": "1.7.4",
"tus-js-client": "1.8.0"
},
"devDependencies": {
"@biomejs/biome": "^1.9.3",
"@vitest/coverage-v8": "^2.1.1",
"babel-cli": "6.26.0",
"babel-core": "6.26.3",
"babel-plugin-add-module-exports": "1.0.4",
"babel-plugin-es6-promise": "1.1.1",
"babel-plugin-syntax-async-functions": "6.13.0",
"babel-plugin-transform-async-to-generator": "6.24.1",
"babel-plugin-transform-object-assign": "6.22.0",
"babel-preset-es2015": "6.24.1",
"babelify": "8.0.0",
"browserify": "17.0.0",
"es6-promise": "4.2.8",
"jquery": "3.7.1",
"jsdom": "^25.0.1",
"npm-run-all": "^4.1.5",
"uglify-js": "3.19.3",
"vitest": "^2.1.1"
},
"packageManager": "yarn@4.5.0"
}