Skip to content

Commit e0d060e

Browse files
authored
Merge pull request #39 from posthtml/slim
chore: remove husky, commitlint, prettier, tslint
2 parents f730091 + b7cdd72 commit e0d060e

10 files changed

Lines changed: 932 additions & 1922 deletions

File tree

.gitignore

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
/node_modules
2-
/lib
3-
/coverage
4-
51
.DS_Store
2+
/.vscode
3+
/coverage
4+
/lib
5+
/node_modules
66
yarn-debug.log*
7-
yarn-error.log*
8-
9-
*.tgz
7+
yarn-error.log*

.prettierignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
language: node_js
2-
node_js: stable
2+
node_js: 8
33
cache: yarn
44
after_success: npx codecov
File renamed without changes.

examples/basic/clean.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
const fs = require('fs-extra');
22

3-
function clean() {
4-
fs.removeSync('processed');
5-
fs.copySync('original', 'processed');
6-
}
7-
8-
clean();
3+
fs.removeSync('processed');
4+
fs.copySync('original', 'processed');

package.json

Lines changed: 6 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -8,57 +8,32 @@
88
"types": "lib/index.d.ts",
99
"scripts": {
1010
"develop": "tsc -w",
11-
"build": "tsc -p tsconfig.prod.json",
12-
"lint": "tslint --fix -p . -c tslint.json",
1311
"test": "jest --coverage",
1412
"test:tdd": "jest --watch",
15-
"prepublishOnly": "yarn build"
13+
"prepack": "tsc"
1614
},
1715
"dependencies": {
1816
"hasha": "^5.0.0",
1917
"posthtml": "^0.12.0"
2018
},
2119
"devDependencies": {
22-
"@commitlint/cli": "^8.2.0",
23-
"@commitlint/config-conventional": "^8.2.0",
24-
"@types/jest": "^25.1.1",
25-
"husky": "^4.2.1",
26-
"jest": "^25.1.0",
27-
"prettier": "^1.18.2",
28-
"pretty-quick": "^2.0.0",
29-
"ts-jest": "^25.2.1",
30-
"tslint": "^6.0.0",
31-
"tslint-config-prettier": "^1.18.0",
20+
"@types/jest": "^25.2.1",
21+
"jest": "^25.5.4",
22+
"ts-jest": "^25.4.0",
3223
"typescript": "^3.6.3"
3324
},
34-
"husky": {
35-
"hooks": {
36-
"pre-commit": "yarn lint && pretty-quick --staged",
37-
"pre-push": "yarn test",
38-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
39-
}
40-
},
41-
"prettier": {
42-
"tabWidth": 2,
43-
"semi": true,
44-
"singleQuote": true
45-
},
4625
"jest": {
4726
"preset": "ts-jest",
4827
"watchPathIgnorePatterns": [
4928
"<rootDir>/src/tests/__fixtures__"
5029
]
5130
},
52-
"commitlint": {
53-
"extends": [
54-
"@commitlint/config-conventional"
55-
]
56-
},
5731
"repository": {
5832
"type": "git",
5933
"url": "https://github.com/metonym/posthtml-hash.git"
6034
},
6135
"homepage": "https://github.com/metonym/posthtml-hash",
36+
"bugs": "https://github.com/metonym/posthtml-hash/issues",
6237
"keywords": [
6338
"posthtml",
6439
"posthtml plugin",
@@ -68,6 +43,5 @@
6843
],
6944
"files": [
7045
"lib"
71-
],
72-
"bugs": "https://github.com/metonym/posthtml-hash/issues"
46+
]
7347
}

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
"outDir": "lib",
99
"strict": true
1010
},
11-
"include": ["src"]
11+
"include": ["src"],
12+
"exclude": ["src/tests"]
1213
}

tsconfig.prod.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

tslint.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)