-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
bingliang
committed
Aug 14, 2019
1 parent
c893420
commit 96e00d1
Showing
30 changed files
with
12,279 additions
and
11,662 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
registry=https://registry.npmjs.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- add tsconfig.json (with strict on) | ||
- convert all js files to ts | ||
- remove applyMatrix3 from Vector3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// module.exports = function(config) { | ||
// config.set({ | ||
// frameworks: ["jasmine", "karma-typescript"], | ||
// files: [ | ||
// "src/**/*.ts" // *.tsx for React Jsx | ||
// ], | ||
// preprocessors: { | ||
// "**/*.ts": "karma-typescript" // *.tsx for React Jsx | ||
// }, | ||
// reporters: ["progress", "karma-typescript"], | ||
// browsers: ["Chrome"] | ||
// }); | ||
// }; | ||
|
||
module.exports = function(config) { | ||
config.set({ | ||
|
||
basePath: '../../', | ||
frameworks: ["jasmine", "karma-typescript"], | ||
plugins: ['karma-jasmine', "karma-typescript", | ||
'karma-webpack', | ||
'karma-mocha', | ||
'karma-chrome-launcher', | ||
'karma-firefox-launcher', | ||
'karma-coverage'], | ||
|
||
files: [ | ||
// 'test/*_test.ts', | ||
'test/**/*_test.ts' | ||
], | ||
|
||
karmaTypescriptConfig: { | ||
compilerOptions: { | ||
module: "commonjs" | ||
}, | ||
tsconfig: "./tsconfig.json", | ||
}, | ||
|
||
preprocessors: { | ||
"**/*.ts": ["karma-typescript"] | ||
}, | ||
reporters: ["progress", "karma-typescript"], | ||
|
||
// reporters: ["progress", "kjhtml", "spec", "karma-typescript"], | ||
|
||
// browsers: ["Chrome"] | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
const path = require('path'); | ||
|
||
module.exports = { | ||
entry: './src/index.ts', | ||
devtool: 'inline-source-map', | ||
module: { | ||
rules: [ | ||
{ | ||
use: 'ts-loader', | ||
exclude: /node_modules/ | ||
} | ||
] | ||
}, | ||
resolve: { | ||
extensions: [ '.ts' ] | ||
}, | ||
output: { | ||
filename: 'bundle.js', | ||
path: path.resolve(__dirname, 'dist') | ||
} | ||
}; |
Oops, something went wrong.