Skip to content

Commit

Permalink
chore(package): refactor package + husky
Browse files Browse the repository at this point in the history
  • Loading branch information
bartholomej committed Sep 21, 2022
1 parent a513f60 commit e15792f
Show file tree
Hide file tree
Showing 3 changed files with 256 additions and 108 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx pretty-quick --staged
200 changes: 95 additions & 105 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,106 +1,96 @@
{
"name": "@bartholomej/ngx-translate-extract",
"version": "8.0.2",
"description": "Extract strings from projects using ngx-translate",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"files": [
"bin/",
"dist/"
],
"bin": {
"ngx-translate-extract": "bin/cli.js"
},
"scripts": {
"build": "npm run clean && tsc",
"watch": "npm run clean && tsc --watch",
"clean": "rimraf ./dist",
"lint": "tslint --force './src/**/*.ts'",
"test": "cross-env TS_NODE_PROJECT=\"tsconfig.spec.json\" mocha -r ts-node/register tests/**/*.spec.ts",
"publish:next": "npm run build && npm publish --tag next --access public"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && npm test"
}
},
"prettier": {
"trailingComma": "none",
"printWidth": 145,
"useTabs": true,
"singleQuote": true
},
"type": "module",
"lint-staged": {
"{src,tests}/**/*.{ts}": [
"tslint --project tsconfig.json -c tslint.commit.json --fix",
"prettier --write"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/bartholomej/ngx-translate-extract.git"
},
"keywords": [
"angular",
"ionic",
"ngx-translate",
"extract",
"extractor",
"translate",
"translation",
"i18n",
"gettext"
],
"author": "Kim Biesbjerg <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/bartholomej/ngx-translate-extract/issues"
},
"homepage": "https://github.com/bartholomej/ngx-translate-extract",
"engines": {
"node": ">=12"
},
"config": {},
"devDependencies": {
"@types/braces": "^3.0.1",
"@types/chai": "^4.3.3",
"@types/flat": "^5.0.2",
"@types/gettext-parser": "4.0.1",
"@types/glob": "^8.0.0",
"@types/mocha": "^9.1.1",
"@types/node": "^16",
"braces": "^3.0.2",
"chai": "^4.3.6",
"cross-env": "^7.0.3",
"husky": "^8.0.1",
"lint-staged": "^13.0.3",
"mocha": "^10.0.0",
"prettier": "^2.7.1",
"rimraf": "^3.0.2",
"ts-node": "^10.4.0",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0",
"tslint-etc": "^1.13.10",
"typescript": "^4.5.2"
},
"peerDependencies": {
"@angular/compiler": ">=13.0.0",
"typescript": ">=4.4.0"
},
"dependencies": {
"@angular/compiler": "^13.1.2",
"@phenomnomnominal/tsquery": "^4.1.1",
"boxen": "^6.2.1",
"colorette": "^2.0.16",
"flat": "^5.0.2",
"gettext-parser": "^4.2.0",
"glob": "^7.2.0",
"path": "^0.12.7",
"terminal-link": "^3.0.0",
"yargs": "^17.5.1"
},
"publishConfig": {
"registry": "https://registry.npmjs.org"
}
}
"name": "@bartholomej/ngx-translate-extract",
"version": "8.0.2",
"description": "Extract strings from projects using ngx-translate",
"author": "Kim Biesbjerg <[email protected]>",
"license": "MIT",
"type": "module",
"scripts": {
"build": "npm run clean && tsc",
"watch": "npm run clean && tsc --watch",
"clean": "rimraf ./dist",
"lint": "tslint --force './src/**/*.ts'",
"test": "cross-env TS_NODE_PROJECT=\"tsconfig.spec.json\" mocha -r ts-node/register tests/**/*.spec.ts",
"publish:next": "npm run build && npm publish --tag next --access public",
"prepare": "husky install"
},
"devDependencies": {
"@types/braces": "^3.0.1",
"@types/chai": "^4.3.3",
"@types/flat": "^5.0.2",
"@types/gettext-parser": "4.0.1",
"@types/glob": "^8.0.0",
"@types/mocha": "^9.1.1",
"@types/node": "^16",
"braces": "^3.0.2",
"chai": "^4.3.6",
"cross-env": "^7.0.3",
"husky": "^8.0.1",
"mocha": "^10.0.0",
"prettier": "^2.7.1",
"pretty-quick": "^3.1.3",
"rimraf": "^3.0.2",
"ts-node": "^10.4.0",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0",
"tslint-etc": "^1.13.10",
"typescript": "^4.5.2"
},
"dependencies": {
"@angular/compiler": "^13.1.2",
"@phenomnomnominal/tsquery": "^4.1.1",
"boxen": "^6.2.1",
"colorette": "^2.0.16",
"flat": "^5.0.2",
"gettext-parser": "^4.2.0",
"glob": "^7.2.0",
"path": "^0.12.7",
"terminal-link": "^3.0.0",
"yargs": "^17.5.1"
},
"peerDependencies": {
"@angular/compiler": ">=13.0.0",
"typescript": ">=4.4.0"
},
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"files": [
"bin/",
"dist/"
],
"bin": {
"ngx-translate-extract": "bin/cli.js"
},
"prettier": {
"trailingComma": "none",
"printWidth": 145,
"useTabs": true,
"singleQuote": true
},
"repository": {
"type": "git",
"url": "git+https://github.com/bartholomej/ngx-translate-extract.git"
},
"keywords": [
"angular",
"ionic",
"ngx-translate",
"extract",
"extractor",
"translate",
"translation",
"i18n",
"gettext"
],
"bugs": {
"url": "https://github.com/bartholomej/ngx-translate-extract/issues"
},
"homepage": "https://github.com/bartholomej/ngx-translate-extract",
"engines": {
"node": ">=14"
},
"config": {},
"publishConfig": {
"registry": "https://registry.npmjs.org"
}
}
Loading

0 comments on commit e15792f

Please sign in to comment.