-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
95 lines (95 loc) · 3.45 KB
/
package.json
File metadata and controls
95 lines (95 loc) · 3.45 KB
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
{
"name": "rexreplace",
"version": "7.1.1",
"description": "Smoothly search & replace in files from CLI.",
"author": "Mathias Rangel Wulff",
"funding": {
"paymail": "mwulff@moneybutton.com"
},
"license": "MIT",
"main": "src/engine.js",
"repository": {
"type": "git",
"url": "git+https://github.com/mathiasrw/rexreplace.git"
},
"bin": {
"rr": "bin/rexreplace.cli.js",
"rexreplace": "bin/rexreplace.cli.js"
},
"scripts": {
"test": "yarn build && yarn test-cli && yarn test-js",
"postbuild": "cp bin/rexreplace.cli.js bin/rexreplace.cli.min.js",
"version": "yarn build-minify",
"build": "yarn build-only",
"build-only": "tsc src/cli --outDir bin/ES6 -t ES6 && rollup -c",
"build-minify": "yarn build && yarn minify",
"minify": "echo '#!/usr/bin/env node' > bin/rexreplace.cli.min.js && npx google-closure-compiler --js=bin/rexreplace.cli.js >> bin/rexreplace.cli.min.js",
"prebuild": "rm -fr bin && yarn format",
"test-js": "echo todo: async mocha",
"test-minify": "yarn build-minify && yarn test-cli && yarn test-js",
"test-cli": "npm uninstall -g rexreplace && npm -g install ./ && yarn test-cli-only",
"test-cli-only": "bash test/cli/run.sh",
"test-speed": "bash test/speed/run.sh",
"prepublishOnly": "yarn is-git-clean && git fetch && git rebase origin && yarn test-minify && yarn load-options && yarn bump",
"postpublish": "git push --tag && git push && (open https://github.com/mathiasrw/rexreplace/releases || 1)",
"load-options": "rr -h | rr 'Options:(.+)Examples:' _ -ms | rr '\\n {26,}|\\n\\n *' ' ' | rr \"'\" '`' | rr '^ (-.+?), (--[^ ]+) *' '`€1` | **`€2`** ' | rr '(^---- . ----).+?(## Good to know)' '€1 + nl + pipe + nl + nl + €2' readme.md -jsT",
"test-format": "yarn prettier --list-different || (echo 'Please correct file formatting using `yarn format` and try again.' && exit 1)",
"format": "yarn prettier --write",
"prettier": "prettier '{src,test}/**/*.{scss,css,js,ts}'",
"bump": "bump --tag 'v%s' --all",
"is-git-clean": "(git diff --quiet --exit-code --cached && git diff --quiet --exit-code) || (echo Please commit or stash changes && exit 1)"
},
"keywords": [
"search",
"find",
"replace",
"regex",
"regexp",
"regular expression",
"sed"
],
"devDependencies": {
"@rollup/plugin-buble": "0.21.3",
"@rollup/plugin-commonjs": "20.0.0",
"@rollup/plugin-node-resolve": "13.0.6",
"@rollup/plugin-replace": "3.0.0",
"@types/node": "20.4.5",
"assert": "^2.0.0",
"magic-string": "0.30.1",
"mocha": "10.2.0",
"prettier": "3.0.0",
"rollup": "2.58.0",
"rollup-plugin-closure-compiler-js": "^1.0.6",
"rollup-plugin-filesize": "9.1.1",
"rollup-plugin-hashbang": "2.2.2",
"rollup-plugin-preserve-shebang": "1.0.1",
"rollup-plugin-progress": "1.1.2",
"rollup-plugin-typescript3": "1.1.3",
"typescript": "5.1.6",
"version-bump-prompt": "6.1.0",
"yarn": "1.22.19"
},
"resolutions": {
"ansi-regex": "^5.0.1"
},
"directories": {
"test": "test"
},
"dependencies": {
"ansi-regex": "6.2.0",
"globs": "0.1.4",
"yargs": "16.2.0"
},
"prettier": {
"useTabs": true,
"printWidth": 100,
"singleQuote": true,
"arrowParens": "always",
"bracketSpacing": false,
"trailingComma": "es5"
},
"bugs": {
"url": "https://github.com/mathiasrw/rexreplace/issues"
},
"homepage": "https://github.com/mathiasrw/rexreplace#readme"
}