Skip to content

Commit 37c25e4

Browse files
committed
chore(cli): building with ts
1 parent 5f85432 commit 37c25e4

File tree

6 files changed

+19
-54
lines changed

6 files changed

+19
-54
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ coverage/
1111
types/
1212
reports/
1313
.stryker-tmp
14-
smelly-report.html
14+
smelly-report.html
15+
build/

cli/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env node
2+
require('./src/bin/find-smells.js');

cli/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
"version": "0.0.4",
44
"private": false,
55
"description": "Find out the smells in your tests, suggestions for correction and the theory behind them",
6-
"main": "dist/cli.js",
6+
"main": "build/index.js",
77
"types": "./types/src/index.d.ts",
88
"bin": "dist/cli.js",
99
"dependencies": {
10+
"commander": "^12.1.0",
1011
"esprima": "^4.0.1",
1112
"handlebars": "^4.7.8"
1213
},
@@ -30,12 +31,10 @@
3031
"sinon": "^19.0.2",
3132
"ts-loader": "*",
3233
"ts-mocha": "^10.0.0",
33-
"ts-node": "^10.9.2",
34-
"webpack": "*",
35-
"webpack-cli": "*"
34+
"ts-node": "^10.9.2"
3635
},
3736
"scripts": {
38-
"compile": "webpack",
37+
"build": "rm -rf build/ && tsc && cp index.js build/",
3938
"watch": "webpack --watch",
4039
"clean": "rm -rf out/ dist/ types/",
4140
"compile-tests": "npm run clean && tsc -p . --outDir out",

cli/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"ES2020",
88
"dom"
99
],
10+
"outDir": "./build",
1011
"sourceMap": true,
1112
"rootDir": ".",
1213
"strict": true, /* enable all strict type-checking options */

cli/webpack.config.js

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

package-lock.json

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)