jeffy-g/rm-cstyle-cmts

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
  "name": "rm-cstyle-cmts",
  "version": "3.3.13",
  "description": "remove c style comments from text file(javascript source, json file etc...",
  "private": false,
  "main": "./cjs/index.js",
  "types": "./index.d.ts",
  "unpkg": "./umd/index.js",
  "sideEffects": false,
  "author": "jeffy-g",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/jeffy-g/rm-cstyle-cmts/issues"
  },
  "homepage": "https://github.com/jeffy-g/rm-cstyle-cmts#readme",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/jeffy-g/rm-cstyle-cmts.git"
  },
  "files": [
    "package.json",
    "README.md",
    "LICENSE",
    "cjs",
    "umd",
    "webpack",
    "*.d.ts"
  ],
  "keywords": [
    "typescript",
    "javascript",
    "remove",
    "delete",
    "comment",
    "comments",
    "strip",
    "json",
    "text"
  ],
  "engines": {
    "node": ">=12"
  },
  "defs": {
    "projectname": "rm-cstyle-cmts"
  },
  "scripts": {
    "all": "yarn clean && yarn lint && yarn dist && yarn webpack && yarn copy:types && yarn preserve:jsdoc",
    "bench": "node -v && node ./build/cjs/bench/ -f samples/es6.js -l 2000 -ol 10 | node ./build/cjs/bench/ -p",
    "benchmark": "cd etc/bench && yarn install && yarn start",
    "build:test": "tsc -m commonjs -t es2019 __tests__/test.ts",
    "build": "tsc && yarn fire:tool fix_import_path",
    "clean": "rimraf -g build/* dist/* logs/*.tsbuildinfo",
    "copy:files": "yarn fire:tool copyfiles",
    "copy:types": "yarn fire:tool copytypes",
    "dist": "rimraf -g \"dist/!(webpack|umd)\" && yarn build && yarn copy:files && orgpkg -p -k defs",
    "fire:tool": "bash scripts/tool.sh",
    "grmc-test:cjs": "node scripts/batch-rmc-test.js -progress -collectRegex -showNoops -timeMeasure -collectJSDocTag",
    "ic": "rimraf yarn.lock node_modules && yarn install",
    "lint": "eslint src/**/*.ts",
    "jstool": "node ./scripts/tiny/tools",
    "patch:tag": "yarn fire:tool patch_with_tag",
    "preserve:jsdoc": "yarn jstool -cmd rmc -rmc4ts -basePath \"./dist/cjs,./dist/cjs/gulp\" -test \"/\\.(js|d\\.ts)$/\"",
    "pretest": "rimraf -g ./coverage/*",
    "test": "bash -c \"[ -z $JEST_CONF ] && JEST_CONF=jest.config.js; jest --silent=false -c=$JEST_CONF\"",
    "toggle:cmts": "yarn jstool -cmd cmtTrick -targets \"js-scanner.ts,\" -basePath src",
    "ts:check": "tsc --noemit",
    "up": "yarn upgrade-interactive --latest",
    "v": "yarn jstool -cmd version -extras \"./src/index.ts,\"",
    "webpack": "npm run fire:tool -- webpack",
    "git:push": "yarn fire:tool force-push",
    "postgit:push": "git gc --aggressive --prune=now",
    "strip:strict": "yarn jstool -cmd stripSome -regex \"/.use strict.;\\s/g\" -targets \"dist/cjs/index.js,dist/cjs/js-scanner.js,dist/cjs/gulp/index.js\""
  },
  "//": [
    "NOTE: `strip:strict` use for publish (dist)"
  ],
  "devDependencies": {
    "@jeffy-g/cpx": "^1.6.4",
    "@types/gulp": "^4.0.17",
    "@types/jest": "^29.5.11",
    "@types/vinyl": "^2.0.11",
    "@typescript-eslint/eslint-plugin": "^8.0.0",
    "@typescript-eslint/parser": "^8.0.0",
    "ansi-colors": "^4.1.3",
    "eslint": "^9.0.0",
    "gulp": "^5.0.0",
    "jest": "^29.7.0",
    "organize-pkg": "^1.3.0",
    "replace": "^1.2.2",
    "rimraf": "^6.0.0",
    "ts-jest": "^29.1.1",
    "ts-loader": "^9.5.1",
    "typescript": "^5.3.3",
    "webpack": "^5.89.0",
    "webpack-cli": "^5.1.4"
  }
}