solved gitignore

This commit is contained in:
Matei Adriel 2019-05-27 20:29:29 +03:00
parent 900272a9e1
commit 77ea975c7f
7 changed files with 8186 additions and 25 deletions

5
.gitignore vendored
View file

@ -1,2 +1,3 @@
node_modules/ node_modules
package-lock.json dist
coverege

21
LICENSE
View file

@ -1,21 +0,0 @@
MIT License
Copyright (c) 2019 Matei Adriel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

16
deploy.ts Normal file
View file

@ -0,0 +1,16 @@
import { publish } from "gh-pages"
console.log("Deploying...");
(async () => {
await new Promise((res, rej) => {
console.log("Updating github pages")
publish("dist", (err) => {
if (err)
rej(err)
console.log(`😄 Succesfully published to github pages`)
res(true)
})
})
})()

8155
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -5,8 +5,12 @@
"main": "./src/index.ts", "main": "./src/index.ts",
"scripts": { "scripts": {
"dev": "webpack-dev-server --open --mode development", "dev": "webpack-dev-server --open --mode development",
"build": "webpack --mode production" "build": "webpack --mode production",
"deploy": "nvmw use 12.2.0 && npm run build && ts-node deploy"
}, },
"sideEffects": [
"*.scss"
],
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/neverix/html5-game-template.git" "url": "git+https://github.com/neverix/html5-game-template.git"
@ -19,10 +23,14 @@
"homepage": "https://github.com/neverix/html5-game-template#readme", "homepage": "https://github.com/neverix/html5-game-template#readme",
"devDependencies": { "devDependencies": {
"@types/file-saver": "^2.0.1", "@types/file-saver": "^2.0.1",
"@types/gh-pages": "^2.0.0",
"@types/toastr": "^2.1.37", "@types/toastr": "^2.1.37",
"closure-webpack-plugin": "^2.0.1",
"css-loader": "^2.1.0", "css-loader": "^2.1.0",
"extract-text-webpack-plugin": "^4.0.0-beta.0", "extract-text-webpack-plugin": "^4.0.0-beta.0",
"file-loader": "^3.0.1", "file-loader": "^3.0.1",
"gh-pages": "^2.0.1",
"google-closure-compiler": "^20190513.0.0",
"html-loader": "^0.5.5", "html-loader": "^0.5.5",
"html-webpack-plugin": "^3.2.0", "html-webpack-plugin": "^3.2.0",
"node-sass": "^4.11.0", "node-sass": "^4.11.0",
@ -30,6 +38,7 @@
"source-map-loader": "^0.2.4", "source-map-loader": "^0.2.4",
"style-loader": "^0.23.1", "style-loader": "^0.23.1",
"ts-loader": "^5.3.3", "ts-loader": "^5.3.3",
"ts-node": "^8.2.0",
"typescript": "^3.3.3333", "typescript": "^3.3.3333",
"webpack": "^4.29.5", "webpack": "^4.29.5",
"webpack-cli": "^3.2.3", "webpack-cli": "^3.2.3",

View file

@ -14,7 +14,6 @@ manager.components.push(new Component("not",[200,500],[100,100]))
manager.components.push(new Component("true",[200,500],[100,100])) manager.components.push(new Component("true",[200,500],[100,100]))
manager.update() manager.update()
const handleEvent = <T>(e:T,func:(e:T) => any) => { const handleEvent = <T>(e:T,func:(e:T) => any) => {
if (manager.barAlpha.value == "0") if (manager.barAlpha.value == "0")
func(e) func(e)

View file

@ -1,5 +1,7 @@
const HtmlWebPackPlugin = require("html-webpack-plugin"); const HtmlWebPackPlugin = require("html-webpack-plugin");
const ExtractTextPlugin = require('extract-text-webpack-plugin'); const ExtractTextPlugin = require('extract-text-webpack-plugin');
const ClosurePlugin = require('closure-webpack-plugin');
module.exports = { module.exports = {
devtool: 'inline-source-map', devtool: 'inline-source-map',
module: { module: {