-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
63 lines (63 loc) · 3.13 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
{
"name": "dragula2",
"version": "0.0.0",
"author": "Prou Yann <[email protected]>",
"description": "Drag and drop so simple it hurts - Second edition",
"homepage": "https://github.com/toofff/dragula2",
"license": "MIT",
"main": "src/dragula.js",
"repository": {
"type": "git",
"url": "https://github.com/toofff/dragula2.git"
},
"scripts": {
"preinstall": "npx only-allow pnpm",
"prepare": "husky install",
"scripts": "pnpm exec browserify src/dragula.js --standalone dragula --debug --outfile dist/dragula.js && uglifyjs --mangle --compress --source-map url=dragula.min.js.map --output dist/dragula.min.js dist/dragula.js",
"start": "pnpm run watch:example && pnpm run watch:dragula && pnpm run generate:styles && pnpm run generate:styles:minify",
"build": "pnpm run scripts && pnpm run generate:styles && pnpm run generate:styles:minify",
"deploy": "pnpm run build && pnpm run deployment",
"deployment": "git add dist && pnpm version ${BUMP:-\"patch\"} && git add package.json && git commit -am \"Autogenerated pre-deployment commit\" && git reset HEAD~2 && git add . && git commit -am \"Release $(cat package.json | jq -r .version)\" && git push --tags && pnpm publish && git push",
"generate:styles": "pnpm exec cleancss -O2 --format beautify --source-map src/dragula.css --output dist/dragula.css",
"generate:styles:minify": "pnpm exec cleancss -O2 --source-map src/dragula.css --output dist/dragula.min.css",
"lint": "pnpm run lint:tool:eslint; pnpm run lint:tool:prettier",
"lint:fix": "pnpm run lint:tool:eslint --fix; pnpm run lint:tool:prettier --write",
"lint:tool:eslint": "pnpm exec eslint --color --no-inline-config \"./{__tests__,src}/**/*.js\"",
"lint:tool:prettier": "pnpm exec prettier --list-different \"**/*.{css,html,json,md}\"",
"test": "jest --maxWorkers=50%",
"test:ci": "jest --silent --maxWorkers=50%",
"test:watch": "jest --watchAll",
"test:old": "pnpm exec browserify --debug test/*.js | tape-run",
"test:old:watch": "pnpm exec hihat test/*.js -p tap-dev-tool",
"watch:dragula": "pnpm exec watchify -dvs dragula --outfile dist/dragula.js src/dragula.js",
"watch:example": "pnpm exec watchify --debug --verbose --outfile example/example.min.js example/example.js"
},
"devDependencies": {
"@commitlint/cli": "^16.2.1",
"@commitlint/config-conventional": "^16.2.1",
"@testing-library/dom": "8.19.1",
"@testing-library/jest-dom": "5.16.5",
"browserify": "^17.0.0",
"clean-css-cli": "^5.5.2",
"eslint": "8.32.0",
"eslint-config-airbnb-base": "15.0.0",
"eslint-config-prettier": "8.6.0",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-jest": "27.2.1",
"eslint-plugin-jest-dom": "4.0.3",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-testing-library": "5.9.1",
"hihat": "2.6.4",
"husky": "8.0.3",
"jest": "29.3.1",
"jest-environment-jsdom": "29.3.1",
"lint-staged": "^12.3.4",
"prettier": "^2.5.1",
"tap-dev-tool": "1.3.0",
"tape": "5.0.1",
"tape-run": "8.0.0",
"uglify-js": "^3.15.1",
"watchify": "^4.0.0"
}
}