initial commit

master
thatcosmonaut 2019-09-24 17:01:54 -07:00
commit dbc08d2eac
9 changed files with 2849 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
node_modules

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# AnimationTool
The animation tool used by Scrambler

5
app/page.ts Normal file
View File

@ -0,0 +1,5 @@
export class Page {
public Load() {
// do load here
}
}

4
index.ts Normal file
View File

@ -0,0 +1,4 @@
import { Page } from './app/page';
const page = new Page();
page.Load();

27
package.json Normal file
View File

@ -0,0 +1,27 @@
{
"name": "animationtool",
"version": "1.0.0",
"description": "The animation tool by Scrambler",
"main": "main.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "webpack --config webpack/prod.config.js",
"start:dev": "webpack-dev-server --config webpack/dev.config.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/MoonsideGames/AnimationTool.git"
},
"author": "",
"license": "UNLICENSED",
"bugs": {
"url": "https://github.com/MoonsideGames/AnimationTool/issues"
},
"homepage": "https://github.com/MoonsideGames/AnimationTool#readme",
"devDependencies": {
"prettier": "^1.18.2",
"tslint": "^5.20.0",
"tslint-config-prettier": "^1.18.0",
"webpack-dev-server": "^3.8.1"
}
}

2750
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load Diff

3
tslint.json Normal file
View File

@ -0,0 +1,3 @@
{
"extends": [ "tslint:latest", "tslint-config-prettier" ]
}

31
webpack/dev.config.js Normal file
View File

@ -0,0 +1,31 @@
const path = require("path");
module.exports = {
mode: "development",
devtool: "inline-source-map",
entry: "./index.ts",
output: {
filename: "bundle.js"
},
resolve: {
// Add `.ts` and `.tsx` as a resolvable extension.
extensions: [".ts", ".tsx", ".js"]
},
module: {
rules: [
// all files with a `.ts` or `.tsx` extension will be handled by `ts-loader`
{
test: /\.tsx?$/,
loader: "ts-loader",
options: {
allowTsInNodeModules: true
}
}
]
},
devServer: {
contentBase: path.join(__dirname, '../dist'),
compress: false,
port: 8080
}
};

25
webpack/prod.config.js Normal file
View File

@ -0,0 +1,25 @@
const path = require("path");
module.exports = {
mode: "production",
entry: "./index.ts",
output: {
filename: "bundle.js"
},
resolve: {
// Add `.ts` and `.tsx` as a resolvable extension.
extensions: [".ts", ".tsx", ".js"]
},
module: {
rules: [
// all files with a `.ts` or `.tsx` extension will be handled by `ts-loader`
{
test: /\.tsx?$/,
loader: "ts-loader",
options: {
allowTsInNodeModules: true
}
}
]
}
};