@ferlab/config
Advanced tools
Comparing version 1.0.0 to 1.0.2
@@ -23,2 +23,12 @@ #!/usr/bin/env node | ||
const copyCommitLintFile = () => { | ||
const source = `${__dirname}/templates/commitlint.config.js`; | ||
const target = `${process.cwd()}/commitlint.config.js`; | ||
fs.copyFile(source, target, err => { | ||
err ? console.log('ERROR: ', err) | ||
: console.log(`SUCCESS: ~${target.replace(os.homedir(), '')} is now updated`); | ||
}) | ||
} | ||
const huskyConfig = () => { | ||
@@ -55,2 +65,3 @@ const dest = `${process.cwd()}/.husky` | ||
copyEslintFile(); | ||
copyCommitLintFile(); | ||
huskyConfig(); |
{ | ||
"name": "@ferlab/config", | ||
"version": "1.0.0", | ||
"version": "1.0.2", | ||
"description": "Script and Standard Configuration for all ferlab project", | ||
@@ -5,0 +5,0 @@ "main": "config.js", |
@@ -6,3 +6,3 @@ { | ||
"lint:fix": "npm run lint -- --fix", | ||
"prepare": "husky install", | ||
"prepare": "npm run theme; husky install", | ||
"update:config": "npx @ferbab/config" | ||
@@ -12,3 +12,3 @@ }, | ||
"src/**/*.{ts,tsx}": [ | ||
"npm run lint&fix" | ||
"npm run lint:fix" | ||
] | ||
@@ -52,3 +52,5 @@ }, | ||
"eslint-plugin-sort-destructure-keys": "^1.4.0", | ||
"eslint-plugin-sort-keys-fix": "^1.1.2" | ||
"eslint-plugin-sort-keys-fix": "^1.1.2", | ||
"husky": "^8.0.1", | ||
"lint-staged": "^13.0.3" | ||
}, | ||
@@ -55,0 +57,0 @@ "prettier": { |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
9913
9
243
1
40