Skip to content

Commit

Permalink
Adding Typescript Compiler (#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
thoov authored Aug 15, 2019
1 parent 244213e commit b4fb6a9
Show file tree
Hide file tree
Showing 5 changed files with 231 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
/npm-debug.log
/test/multidep
/test/fixtures/project/dist
/dist

yarn-error.log
18 changes: 14 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,23 @@
"homepage": "https://github.com/broccolijs/broccoli",
"license": "MIT",
"author": "Jo Liss <[email protected]>",
"main": "lib/index.js",
"main": "dist/index.js",
"types": "lib/index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/broccolijs/broccoli"
},
"scripts": {
"build": "tsc && yarn html",
"clean": "rm -rf dist",
"html": "copyfiles -u 1 lib/templates/*.html ./dist",
"lint": "eslint lib test",
"lint:fix": "eslint --fix lib test",
"prepare": "yarn build",
"pretest": "multidep test/multidep.json",
"test": "mocha",
"test:debug": "mocha --inspect-brk"
"test": "yarn build && mocha",
"test:debug": "yarn build && mocha --inspect-brk",
"watch": "tsc --watch"
},
"dependencies": {
"ansi-html": "^0.0.7",
Expand All @@ -51,8 +56,10 @@
"watch-detector": "^0.1.0"
},
"devDependencies": {
"@types/node": "^12.7.1",
"chai": "^4.1.2",
"chai-as-promised": "^7.1.1",
"copyfiles": "^2.1.1",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-mocha": "^5.0.0",
"eslint-plugin-node": "^6.0.1",
Expand All @@ -73,5 +80,8 @@
},
"engines": {
"node": "8.* || >= 10.*"
}
},
"files": [
"dist"
]
}
1 change: 1 addition & 0 deletions test/fixtures/project-ts/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
20 changes: 20 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"compilerOptions": {
"rootDir": "lib",
"outDir": "dist",
"declaration": false,
"strict": true,
"moduleResolution": "node",
"module": "commonjs",
"sourceMap": true,
"target": "es2017",
"baseUrl": ".",
"paths": {
"*": ["types/*"]
},
"allowJs": true
},
"include": [
"lib/**/*"
]
}
Loading

0 comments on commit b4fb6a9

Please sign in to comment.