Browse Source

Initial commit

master
Forest Belton 3 years ago
commit
56c75db2a8
7 changed files with 10244 additions and 0 deletions
  1. +3
    -0
      .babelrc
  2. +2
    -0
      .gitignore
  3. +0
    -0
      index.ts
  4. +10177
    -0
      package-lock.json
  5. +19
    -0
      package.json
  6. +13
    -0
      tsconfig.json
  7. +30
    -0
      webpack.config.js

+ 3
- 0
.babelrc View File

@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-env"]
}

+ 2
- 0
.gitignore View File

@ -0,0 +1,2 @@
dist/build
node_modules

+ 0
- 0
index.ts View File


+ 10177
- 0
package-lock.json
File diff suppressed because it is too large
View File


+ 19
- 0
package.json View File

@ -0,0 +1,19 @@
{
"name": "rojs",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"ts-loader": "^9.2.6",
"typescript": "^4.4.4",
"webpack": "^5.58.2",
"webpack-cli": "^4.9.0",
"webpack-dev-server": "^4.3.1"
}
}

+ 13
- 0
tsconfig.json View File

@ -0,0 +1,13 @@
{
"compilerOptions": {
"allowJs": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"module": "es6",
"moduleResolution": "node",
"noImplicitAny": true,
"outDir": "./dist/",
"sourceMap": true,
"target": "es5"
}
}

+ 30
- 0
webpack.config.js View File

@ -0,0 +1,30 @@
const path = require("path");
const webpack = require("webpack");
module.exports = {
devServer: {
contentBase: path.join(__dirname, "dist"),
port: 9000,
},
devtool: "inline-source-map",
entry: ["./index.ts"],
mode: process.env.NODE_ENV === "production" ? "production" : "development",
module: {
rules: [
{
test: /\.ts$/,
exclude: /node_modules/,
use: "ts-loader",
},
],
},
output: {
path: path.join(__dirname, "dist", "build"),
filename: "bundle.js",
},
performance: {
maxEntrypointSize: 512000,
maxAssetSize: 512000,
},
plugins: [new webpack.EnvironmentPlugin({ NODE_ENV: "development" })],
};

Loading…
Cancel
Save