mirror of
https://github.com/garronej/ts-ci.git
synced 2025-11-30 21:43:05 +00:00
66 lines
2.1 KiB
JSON
Executable file
66 lines
2.1 KiB
JSON
Executable file
{
|
|
"name": "#{REPO_NAME}#",
|
|
"version": "0.0.0",
|
|
"description": "#{DESC}#",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/#{USER_OR_ORG}#/#{REPO_NAME}#.git"
|
|
},
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"scripts": {
|
|
"test": "node ./dist/test",
|
|
"cdn:bundle:.js": "simplifyify dist/index.js -s #{REPO_NAME}# -o dist/bundle.js --debug --bundle",
|
|
"cdn:bundle:.min.js": "terser dist/bundle.js -cmo dist/bundle.min.js",
|
|
"cdn:bundle": "npm run cdn:bundle:.js && npm run cdn:bundle:.min.js",
|
|
"cdn:esm": "tsc -p tsconfig.esm.json",
|
|
"cdn": "npm run cdn:bundle && npm run cdn:esm",
|
|
"build": "tsc && npm run cdn",
|
|
"enable_short_import_path": "npm run build && denoify_enable_short_npm_import_path",
|
|
"lint:check": "eslint . --ext .ts,.tsx",
|
|
"lint": "npm run lint:check -- --fix",
|
|
"_format": "prettier '**/*.{ts,tsx,json,md}'",
|
|
"format": "npm run _format -- --write",
|
|
"format:check": "npm run _format -- --list-different",
|
|
"clean": "rm -rf dist deno_dist node_modules mod.ts"
|
|
},
|
|
"lint-staged": {
|
|
"*.{ts,tsx}": [
|
|
"eslint --fix"
|
|
],
|
|
"*.{ts,tsx,json,md}": [
|
|
"prettier --write"
|
|
]
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged -v"
|
|
}
|
|
},
|
|
"author": "u/#{USER_OR_ORG}#",
|
|
"license": "MIT",
|
|
"files": [
|
|
"/dist/*.{d.ts,js,js.map}",
|
|
"/dist/tools/",
|
|
"/dist/zz_esm/",
|
|
"/src/*.ts",
|
|
"/src/tools/"
|
|
],
|
|
"keywords": [],
|
|
"homepage": "https://github.com/#{USER_OR_ORG}#/#{REPO_NAME}#",
|
|
"devDependencies": {
|
|
"typescript": "^3.9.0",
|
|
"@types/node": "^10.0.0",
|
|
"denoify": "0.2.15",
|
|
"evt": "1.7.11",
|
|
"simplifyify": "8.0.1",
|
|
"terser": "4.6.13",
|
|
"husky": "^4.2.1",
|
|
"prettier": "^1.19.1",
|
|
"eslint": "^7.1.0",
|
|
"@typescript-eslint/parser": "^3.0.1",
|
|
"@typescript-eslint/eslint-plugin": "^3.0.1",
|
|
"eslint-config-prettier": "^6.11.0",
|
|
"lint-staged": "^10.2.6"
|
|
}
|
|
}
|