Skip to content

Commit 84ba6c7

Browse files
committed
Setting up tsdx 📈
1 parent 5f7ea5a commit 84ba6c7

12 files changed

Lines changed: 3856 additions & 436 deletions

.eslintrc.json

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

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
node_modules
22
tmp
3+
*.log
4+
.DS_Store
5+
.rts2_cache_cjs
6+
.rts2_cache_esm
7+
.rts2_cache_umd
8+
dist

.prettierrc

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

package.json

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
11
{
22
"name": "git-revision-webpack-plugin",
33
"version": "3.0.4",
4-
"description": "Simple webpack plugin that generates VERSION and COMMITHASH files during build",
5-
"main": "lib/index.js",
6-
"scripts": {
7-
"format": "prettier --write \"**/*.@(json|js|ts)\"",
8-
"test": "npm run test:lint && npm run test:unit",
9-
"test:lint": "eslint --ext .ts --ext .tsx --ext js .",
10-
"test:unit": "mocha recursive --reporter spec ./lib",
11-
"test:unit-watch": "npm run test:unit -- --watch"
12-
},
13-
"engines": {
14-
"node": ">=6.11.5"
15-
},
4+
"main": "dist/index.js",
5+
"module": "dist/git-revision-webpack-plugin.esm.js",
6+
"typings": "dist/index.d.ts",
167
"files": [
17-
"lib"
8+
"dist"
189
],
1910
"repository": {
2011
"type": "git",
@@ -33,16 +24,29 @@
3324
"url": "https://github.com/pirelenito/git-revision-webpack-plugin/issues"
3425
},
3526
"homepage": "https://github.com/pirelenito/git-revision-webpack-plugin",
27+
"scripts": {
28+
"start": "tsdx watch",
29+
"build": "tsdx build",
30+
"test": "tsdx test",
31+
"lint": "tsdx lint"
32+
},
33+
"peerDependencies": {},
34+
"husky": {
35+
"hooks": {
36+
"pre-commit": "tsdx lint"
37+
}
38+
},
39+
"prettier": {
40+
"printWidth": 80,
41+
"semi": true,
42+
"singleQuote": true,
43+
"trailingComma": "es5"
44+
},
3645
"devDependencies": {
37-
"chai": "^4.1.2",
38-
"eslint": "^6.5.1",
39-
"eslint-config-prettier": "^6.4.0",
40-
"file-loader": "^1.1.11",
41-
"fs-extra": "^5.0.0",
42-
"mocha": "^5.0.4",
43-
"prettier": "1.18.2",
44-
"rewire": "^3.0.2",
45-
"sinon": "^4.4.8",
46-
"webpack": "^4.1.1"
46+
"@types/jest": "^24.0.18",
47+
"husky": "^3.0.8",
48+
"tsdx": "^0.9.3",
49+
"tslib": "^1.10.0",
50+
"typescript": "^3.6.3"
4751
}
4852
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)