Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
new_taobao
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
new_taobao
Commits
bc6e79f1
Commit
bc6e79f1
authored
Sep 16, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
697d0773
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
31 deletions
+47
-31
package.json
project/src/canvas/game/package.json
+44
-30
StartScene.ts
project/src/canvas/game/src/scenes/StartScene.ts
+2
-0
webpack.dev.js
project/src/canvas/game/webpack.dev.js
+1
-1
No files found.
project/src/canvas/game/package.json
View file @
bc6e79f1
{
{
"name"
:
"tbgame"
,
"name"
:
"tbgame"
,
"version"
:
"1.0.0"
,
"version"
:
"1.0.0"
,
"description"
:
""
,
"description"
:
""
,
"main"
:
"index.html"
,
"main"
:
"index.html"
,
"devDependencies"
:
{
"devDependencies"
:
{
"mock-webpack-plugin"
:
"^3.0.0"
,
"ali-oss"
:
"^4.11.4"
,
"ts-loader"
:
"^8.0.3"
,
"chalk"
:
"^2.3.0"
,
"typescript"
:
"^4.0.2"
,
"co"
:
"^4.6.0"
,
"webpack-cli"
:
"^3.3.12"
,
"del"
:
"^2.2.1"
,
"webpack-dev-server"
:
"^3.11.0"
,
"fs"
:
"0.0.2"
,
"webpack-merge"
:
"^5.1.4"
"imagemin"
:
"^7.0.1"
,
},
"imagemin-mozjpeg"
:
"^8.0.0"
,
"dependencies"
:
{},
"imagemin-pngquant"
:
"^8.0.0"
,
"scripts"
:
{
"mock-webpack-plugin"
:
"^2.0.0"
,
"psd"
:
"node scripts/psdH.js && node scripts/flushRes"
,
"path"
:
"^0.12.7"
,
"createModule"
:
"node scripts/createModule"
,
"progress"
:
"^2.0.0"
,
"flushRes"
:
"node scripts/flushRes"
,
"ts-loader"
:
"^4.0.0"
,
"handleRes"
:
"node scripts/delRel && node scripts/copyRes && node scripts/createTm && node scripts/textureMerge && node scripts/delTm && node scripts/imageMin"
,
"tslint"
:
"^5.9.1"
,
"upload"
:
"node scripts/upload"
,
"typescript"
:
"^4.0.2"
,
"build"
:
"npm run handleRes && node scripts/mergeJson && npm run upload && npm run buildTS"
,
"webpack"
:
"^4.1.0"
,
"watch"
:
"webpack --watch"
,
"webpack-cli"
:
"^3.1.1"
,
"dev"
:
"webpack-dev-server --open --config webpack.dev.js --host 0.0.0.0"
,
"webpack-dev-server"
:
"^3.1.0"
,
"buildTS"
:
"webpack --config webpack.prod.js && node scripts/mergeJs"
,
"webpack-merge"
:
"^4.1.2"
,
"buildTSAndCopy"
:
"webpack --config webpack.prod.js && node scripts/mergeJs && node scripts/copyJs"
,
"uglifyjs-webpack-plugin"
:
"^2.1.2"
,
"copyJs"
:
"node scripts/copyJs"
"psd"
:
"^3.2.0"
},
},
"author"
:
"MrKwon"
,
"dependencies"
:
{},
"license"
:
"ISC"
"scripts"
:
{
}
"psd"
:
"node scripts/psdH.js && node scripts/flushRes"
,
"createModule"
:
"node scripts/createModule"
,
"flushRes"
:
"node scripts/flushRes"
,
"handleRes"
:
"node scripts/delRel && node scripts/copyRes && node scripts/createTm && node scripts/textureMerge && node scripts/delTm && node scripts/imageMin"
,
"upload"
:
"node scripts/upload"
,
"build"
:
"npm run handleRes && node scripts/mergeJson && npm run upload && npm run buildTS"
,
"watch"
:
"webpack --watch"
,
"dev"
:
"webpack-dev-server --open --config webpack.dev.js --host 0.0.0.0"
,
"buildTS"
:
"webpack --config webpack.prod.js && node scripts/mergeJs"
,
"buildTSAndCopy"
:
"webpack --config webpack.prod.js && node scripts/mergeJs && node scripts/copyJs"
,
"copyJs"
:
"node scripts/copyJs"
},
"author"
:
"MrKwon"
,
"license"
:
"ISC"
}
project/src/canvas/game/src/scenes/StartScene.ts
View file @
bc6e79f1
...
@@ -7,5 +7,7 @@ export class StartScene extends Scene {
...
@@ -7,5 +7,7 @@ export class StartScene extends Scene {
var
gamecanvas
:
FYGE
.
Container
=
new
FYGE
.
Container
();
var
gamecanvas
:
FYGE
.
Container
=
new
FYGE
.
Container
();
gamecanvas
.
position
.
set
(
0
,
0
);
gamecanvas
.
position
.
set
(
0
,
0
);
this
.
addChild
(
gamecanvas
);
this
.
addChild
(
gamecanvas
);
console
.
log
(
'hello canvas '
)
}
}
}
}
project/src/canvas/game/webpack.dev.js
View file @
bc6e79f1
const
merge
=
require
(
'webpack-merge'
);
const
{
merge
}
=
require
(
'webpack-merge'
);
const
common
=
require
(
'./webpack.common.js'
);
const
common
=
require
(
'./webpack.common.js'
);
const
webpack
=
require
(
'webpack'
);
const
webpack
=
require
(
'webpack'
);
const
MockWebpackPlugin
=
require
(
'mock-webpack-plugin'
);
const
MockWebpackPlugin
=
require
(
'mock-webpack-plugin'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment