diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..04c01ba --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules/ +dist/ \ No newline at end of file diff --git a/jquery-1.10.2.min.js b/lib/js/jquery-1.10.2.min.js similarity index 100% rename from jquery-1.10.2.min.js rename to lib/js/jquery-1.10.2.min.js diff --git a/package.json b/package.json new file mode 100644 index 0000000..4314c41 --- /dev/null +++ b/package.json @@ -0,0 +1,27 @@ +{ + "name": "tetris-battle", + "version": "1.0.0", + "description": "forFun", + "main": "index.js", + "repository": "https://github.com/s956142/tetris-battle.git", + "author": "Benson Cho ", + "license": "MIT", + "scripts": { + "build": "webpack --mode=production --node-env=production", + "build:dev": "webpack --mode=development", + "build:prod": "webpack --mode=production --node-env=production", + "watch": "webpack --watch" + }, + "devDependencies": { + "@types/jquery": "^3.5.29", + "@webpack-cli/generators": "^3.0.7", + "clean-webpack-plugin": "^4.0.0", + "copy-webpack-plugin": "^12.0.2", + "html-webpack-plugin": "^5.6.0", + "typescript": "^5.4.5", + "webpack": "^5.91.0" + }, + "dependencies": { + "ts-loader": "^9.5.1" + } +} diff --git a/gameOver.png b/public/img/gameOver.png similarity index 100% rename from gameOver.png rename to public/img/gameOver.png diff --git a/public/img/tetris.png b/public/img/tetris.png new file mode 100644 index 0000000..54f0053 Binary files /dev/null and b/public/img/tetris.png differ diff --git a/index.html b/src/index.html similarity index 93% rename from index.html rename to src/index.html index 2821e97..d864062 100644 --- a/index.html +++ b/src/index.html @@ -2,7 +2,8 @@ - + +