Skip to content

Commit

Permalink
transition work
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelybecker committed May 21, 2021
1 parent 6ffc5c1 commit 0592890
Show file tree
Hide file tree
Showing 8 changed files with 371 additions and 39 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"presets": ["@babel/preset-env"],
"presets": ["@babel/preset-typescript", "@babel/preset-env"],
"plugins": [["@babel/plugin-proposal-class-properties"]]
}
382 changes: 351 additions & 31 deletions package-lock.json

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,16 @@
"cannon": "^0.6.2",
"firebase": "^8.0.0",
"inquirer": "^7.2.0",
"loader-utils": "^2.0.0",
"speak-tts": "^2.0.8",
"three": "^0.128.0"
},
"devDependencies": {
"@babel/core": "^7.9.6",
"@babel/plugin-proposal-class-properties": "^7.13.0",
"@babel/preset-env": "^7.9.6",
"@babel/preset-typescript": "^7.13.0",
"@types/three": "^0.128.0",
"babel-loader": "^8.1.0",
"clean-webpack-plugin": "^3.0.0",
"compression-webpack-plugin": "^4.0.0",
Expand All @@ -44,7 +47,7 @@
"script-ext-html-webpack-plugin": "^2.1.4",
"shader-loader": "^1.3.1",
"style-loader": "^1.2.1",
"ts-loader": "^9.2.1",
"ts-loader": "^8.2.0",
"typescript": "^4.2.4",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11",
Expand Down
2 changes: 1 addition & 1 deletion src/engine/util/webxr/raycaster.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Vector3 } from "three";
import { Vector3 } from "@types/three";

export class SCRaycaster {
constructor(
Expand Down
Empty file added src/index.d.ts
Empty file.
File renamed without changes.
10 changes: 7 additions & 3 deletions src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{
"compilerOptions": {
"outDir": "./dist/",
"allowJs": true,
"typeRoots": ["node_modules/@types/"],
"noImplicitAny": true,
"module": "es6",
"target": "es5",
"jsx": "react",
"allowJs": true,
"moduleResolution": "node"
}
"moduleResolution": "node",
"types": ["three"]
},
"include": ["src/**"],
"exclude": ["node_modules", "**/*.spec.ts"]
}
9 changes: 7 additions & 2 deletions webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const APP_DIR = path.resolve(__dirname, "src/");
const BUILD_DIR = path.resolve(__dirname, "dist/");

module.exports = {
entry: APP_DIR + "/index.js",
entry: APP_DIR + "/index.ts",
output: {
path: BUILD_DIR,
filename: "./bundle.js",
Expand All @@ -17,6 +17,11 @@ module.exports = {
// test: /\.worker\.js$/,
// use: { loader: 'worker-loader' }
// },
{
test: /\.tsx?$/,
use: "ts-loader",
exclude: /node_modules/,
},
{
test: /\.html$/,
use: [
Expand Down Expand Up @@ -111,6 +116,6 @@ module.exports = {
}),
],
resolve: {
extensions: [".js", ".es6"],
extensions: [".js", ".es6", "ts"],
},
};

0 comments on commit 0592890

Please sign in to comment.