Skip to content

Commit

Permalink
Setting up tsdx 📈
Browse files Browse the repository at this point in the history
  • Loading branch information
pirelenito committed Oct 6, 2019
1 parent 5f7ea5a commit 84ba6c7
Show file tree
Hide file tree
Showing 12 changed files with 3,856 additions and 436 deletions.
3 changes: 0 additions & 3 deletions .eslintrc.json

This file was deleted.

6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
node_modules
tmp
*.log
.DS_Store
.rts2_cache_cjs
.rts2_cache_esm
.rts2_cache_umd
dist
7 changes: 0 additions & 7 deletions .prettierrc

This file was deleted.

50 changes: 27 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
{
"name": "git-revision-webpack-plugin",
"version": "3.0.4",
"description": "Simple webpack plugin that generates VERSION and COMMITHASH files during build",
"main": "lib/index.js",
"scripts": {
"format": "prettier --write \"**/*.@(json|js|ts)\"",
"test": "npm run test:lint && npm run test:unit",
"test:lint": "eslint --ext .ts --ext .tsx --ext js .",
"test:unit": "mocha recursive --reporter spec ./lib",
"test:unit-watch": "npm run test:unit -- --watch"
},
"engines": {
"node": ">=6.11.5"
},
"main": "dist/index.js",
"module": "dist/git-revision-webpack-plugin.esm.js",
"typings": "dist/index.d.ts",
"files": [
"lib"
"dist"
],
"repository": {
"type": "git",
Expand All @@ -33,16 +24,29 @@
"url": "https://github.com/pirelenito/git-revision-webpack-plugin/issues"
},
"homepage": "https://github.com/pirelenito/git-revision-webpack-plugin",
"scripts": {
"start": "tsdx watch",
"build": "tsdx build",
"test": "tsdx test",
"lint": "tsdx lint"
},
"peerDependencies": {},
"husky": {
"hooks": {
"pre-commit": "tsdx lint"
}
},
"prettier": {
"printWidth": 80,
"semi": true,
"singleQuote": true,
"trailingComma": "es5"
},
"devDependencies": {
"chai": "^4.1.2",
"eslint": "^6.5.1",
"eslint-config-prettier": "^6.4.0",
"file-loader": "^1.1.11",
"fs-extra": "^5.0.0",
"mocha": "^5.0.4",
"prettier": "1.18.2",
"rewire": "^3.0.2",
"sinon": "^4.4.8",
"webpack": "^4.1.1"
"@types/jest": "^24.0.18",
"husky": "^3.0.8",
"tsdx": "^0.9.3",
"tslib": "^1.10.0",
"typescript": "^3.6.3"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
30 changes: 30 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"include": ["src", "types"],
"compilerOptions": {
"target": "es5",
"module": "esnext",
"lib": ["dom", "esnext"],
"importHelpers": true,
"declaration": true,
"sourceMap": true,
"rootDir": "./",
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"strictPropertyInitialization": true,
"noImplicitThis": true,
"alwaysStrict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"moduleResolution": "node",
"baseUrl": "./",
"paths": {
"*": ["src/*", "node_modules/*"]
},
"jsx": "react",
"esModuleInterop": true
}
}
Loading

0 comments on commit 84ba6c7

Please sign in to comment.