Skip to content

Commit 01accea

Browse files
Jed Maojedmao
Jed Mao
authored andcommitted
Update compile scripts, intro source maps
1 parent 8fc9e93 commit 01accea

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
.*
2+
*.map
3+
*.spec.*
24
.nyc_output/
35
.vscode/
46
coverage/

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
"main": "dist/lib/plugin.js",
66
"types": "dist/lib/plugin.d.ts",
77
"scripts": {
8-
"build": "tsc",
9-
"build:watch": "tsc --watch",
10-
"cover": "nyc ava",
11-
"lint": "npm run tslint",
12-
"prepublish": "npm run lint && npm run build",
13-
"test": "npm run lint && npm run build && npm run cover",
8+
"clean": "rimraf coverage dist *.log",
9+
"compile": "tsc",
10+
"compile:watch": "tsc --watch",
11+
"prepublish": "npm test",
12+
"pretest": "npm run tslint && npm run clean && npm run compile",
13+
"test": "nyc ava",
1414
"test:watch": "ava --watch",
1515
"tslint": "tslint --project tsconfig.json"
1616
},
@@ -65,6 +65,7 @@
6565
"@types/node": "^7.0.5",
6666
"ava": "^0.18.2",
6767
"nyc": "^10.1.2",
68+
"rimraf": "^2.6.0",
6869
"tslint": "^4.4.2",
6970
"typescript": "^2.2.1"
7071
}

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"newLine": "LF",
88
"outDir": "dist",
99
"rootDir": "src",
10+
"sourceMap": true,
1011
"lib": [
1112
"es2015"
1213
]

0 commit comments

Comments
 (0)