Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasrw committed Oct 4, 2023
1 parent e578cf5 commit 21f5198
Show file tree
Hide file tree
Showing 5 changed files with 408 additions and 1,914 deletions.
Binary file modified bun.lockb
Binary file not shown.
189 changes: 89 additions & 100 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,101 +1,90 @@
{
"name": "rexreplace",
"version": "7.1.3-y",
"description": "Smoothly search & replace in files from CLI.",
"author": "Mathias Rangel Wulff",
"license": "MIT",
"type": "module",
"main": "src/engine.js",
"repository": {
"type": "git",
"url": "git+https://github.com/mathiasrw/rexreplace.git"
},
"bin": {
"rr": "src/env/bun.ts",
"rexreplace_node": "bin/rexreplace.cli.js",
"rexreplace": "src/env/bun.ts"
},
"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": "swc src/ -d dist/ && bun build --target node src/env/node.ts --outfile bin/rexreplace.cli.js ",
"build-minify": "bun build --target node src/env/node.ts --outfile bin/rexreplace.cli.min.js --minify",
"prebuild": "rm -fr bin dist # && yarn format",
"test-js": "echo todo: async mocha",
"test-minify": "yarn build-minify && yarn test-cli && yarn test-js",
"test-cli": "(true || (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/main && 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": "1.0.2",
"@rollup/plugin-commonjs": "25.0.3",
"@rollup/plugin-node-resolve": "15.1.0",
"@rollup/plugin-replace": "5.0.2",
"@swc/cli": "^0.1.62",
"@swc/core": "^1.3.90",
"@types/node": "^20.6.2",
"@types/yargs": "^17.0.24",
"assert": "^2.0.0",
"bun-types": "^1.0.2",
"magic-string": "0.30.3",
"mocha": "10.2.0",
"prettier": "3.0.3",
"rollup": "2.79.1",
"rollup-plugin-closure-compiler-js": "^1.0.6",
"rollup-plugin-filesize": "9.1.2",
"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",
"ts-node": "^10.9.1",
"typescript": "5.2.2",
"version-bump-prompt": "6.1.0",
"yarn": "1.22.19"
},
"resolutions": {
"ansi-regex": "5.0.1",
"tough-cookie": "4.1.3"
},
"directories": {
"test": "test"
},
"dependencies": {
"chalk": "^5.3.0",
"fast-glob": "^3.3.1",
"fs-extra": "^11.1.1",
"globs": "0.1.4",
"yargs": "17.7.2"
},
"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"
}
"name": "rexreplace",
"version": "7.1.3-y",
"description": "Smoothly search & replace in files from CLI.",
"author": "Mathias Rangel Wulff",
"license": "MIT",
"type": "module",
"main": "src/engine.js",
"repository": {
"type": "git",
"url": "git+https://github.com/mathiasrw/rexreplace.git"
},
"bin": {
"rr": "src/env/bun.ts",
"rexreplace_node": "bin/rexreplace.cli.js",
"rexreplace": "src/env/bun.ts"
},
"scripts": {
"test": "yarn build && yarn test-cli && yarn test-js",
"version": "yarn build-minify",
"build": "yarn build-only",
"postbuild": "npx rexreplace@7 '^(#!.+\\n)?' '$1import { createRequire as createImportMetaRequire } from 'module'; import.meta.require ||= (id) => createImportMetaRequire(import.meta.url)(id);\\n' -GM bin/rexreplace.cli.js && cp bin/rexreplace.cli.js bin/rexreplace.cli.min.js",
"build-only": "swc src/ -d dist/ && bun build --target node src/env/node.ts --outfile bin/rexreplace.cli.js ",
"build-minify": "bun build --target node src/env/node.ts --outfile bin/rexreplace.cli.min.js --minify",
"prebuild": "rm -fr bin dist # && yarn format",
"test-js": "echo todo: async mocha",
"test-minify": "yarn build-minify && yarn test-cli && yarn test-js",
"test-cli": "(true || (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/main && 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": {
"@swc/cli": "^0.1.62",
"@swc/core": "^1.3.90",
"@types/node": "^20.6.2",
"@types/yargs": "^17.0.24",
"assert": "^2.0.0",
"bun-types": "^1.0.2",
"magic-string": "0.30.3",
"mocha": "10.2.0",
"prettier": "3.0.3",
"ts-node": "^10.9.1",
"typescript": "5.2.2",
"version-bump-prompt": "6.1.0",
"yarn": "1.22.19"
},
"resolutions": {
"ansi-regex": "5.0.1",
"tough-cookie": "4.1.3"
},
"directories": {
"test": "test"
},
"dependencies": {
"argmate": "../argmate",
"chalk": "^5.3.0",
"fast-glob": "^3.3.1",
"fs-extra": "^11.1.1",
"globs": "0.1.4"
},
"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"
}
Loading

0 comments on commit 21f5198

Please sign in to comment.