Skip to content

Commit cb9e8e8

Browse files
Merge branch 'feature/typescript-build' into develop
2 parents 493bdfd + 0103e2c commit cb9e8e8

File tree

6 files changed

+1924
-1
lines changed

6 files changed

+1924
-1
lines changed

.babelrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"presets": [
3+
"@babel/env",
4+
"@babel/preset-typescript"
5+
]
6+
}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
lib/
2+
node_modules/

package.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,19 @@
99
"lib": "lib"
1010
},
1111
"scripts": {
12+
"build": "npm run clean && babel src -d lib --extensions '.js,.ts'",
13+
"clean": "rimraf lib/*",
14+
"lint": "tsc; tslint -p ./",
1215
"test": "echo \"Error: no test specified\" && exit 1"
1316
},
1417
"dependencies": {},
15-
"devDependencies": {}
18+
"devDependencies": {
19+
"@babel/cli": "^7.0.0-beta.54",
20+
"@babel/core": "^7.0.0-beta.54",
21+
"@babel/preset-env": "^7.0.0-beta.54",
22+
"@babel/preset-typescript": "^7.0.0-beta.54",
23+
"rimraf": "^2.6.2",
24+
"tslint": "^5.11.0",
25+
"typescript": "^2.9.2"
26+
}
1627
}

tsconfig.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"compilerOptions": {
3+
"allowJs": true,
4+
"allowSyntheticDefaultImports": true,
5+
"baseUrl": "./",
6+
"rootDir": "./",
7+
"module": "es2015",
8+
"noEmit": true,
9+
"noUnusedLocals": true,
10+
"noUnusedParameters": true,
11+
"pretty": true,
12+
"skipLibCheck": true,
13+
"sourceMap": true
14+
},
15+
"include": [
16+
"src"
17+
]
18+
}

tslint.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": [
3+
"tslint:recommended"
4+
]
5+
}

0 commit comments

Comments
 (0)