solved gitignore
This commit is contained in:
parent
900272a9e1
commit
77ea975c7f
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
|||
node_modules/
|
||||
package-lock.json
|
||||
node_modules
|
||||
dist
|
||||
coverege
|
||||
|
|
21
LICENSE
21
LICENSE
|
@ -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
16
deploy.ts
Normal 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
8155
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
11
package.json
11
package.json
|
@ -5,8 +5,12 @@
|
|||
"main": "./src/index.ts",
|
||||
"scripts": {
|
||||
"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": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/neverix/html5-game-template.git"
|
||||
|
@ -19,10 +23,14 @@
|
|||
"homepage": "https://github.com/neverix/html5-game-template#readme",
|
||||
"devDependencies": {
|
||||
"@types/file-saver": "^2.0.1",
|
||||
"@types/gh-pages": "^2.0.0",
|
||||
"@types/toastr": "^2.1.37",
|
||||
"closure-webpack-plugin": "^2.0.1",
|
||||
"css-loader": "^2.1.0",
|
||||
"extract-text-webpack-plugin": "^4.0.0-beta.0",
|
||||
"file-loader": "^3.0.1",
|
||||
"gh-pages": "^2.0.1",
|
||||
"google-closure-compiler": "^20190513.0.0",
|
||||
"html-loader": "^0.5.5",
|
||||
"html-webpack-plugin": "^3.2.0",
|
||||
"node-sass": "^4.11.0",
|
||||
|
@ -30,6 +38,7 @@
|
|||
"source-map-loader": "^0.2.4",
|
||||
"style-loader": "^0.23.1",
|
||||
"ts-loader": "^5.3.3",
|
||||
"ts-node": "^8.2.0",
|
||||
"typescript": "^3.3.3333",
|
||||
"webpack": "^4.29.5",
|
||||
"webpack-cli": "^3.2.3",
|
||||
|
|
|
@ -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.update()
|
||||
|
||||
|
||||
const handleEvent = <T>(e:T,func:(e:T) => any) => {
|
||||
if (manager.barAlpha.value == "0")
|
||||
func(e)
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
const HtmlWebPackPlugin = require("html-webpack-plugin");
|
||||
const ExtractTextPlugin = require('extract-text-webpack-plugin');
|
||||
const ClosurePlugin = require('closure-webpack-plugin');
|
||||
|
||||
module.exports = {
|
||||
devtool: 'inline-source-map',
|
||||
module: {
|
||||
|
|
Loading…
Reference in a new issue