Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
hello_canvas
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
hello_canvas
Commits
8dbf83d0
Commit
8dbf83d0
authored
Aug 31, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
08e554f2
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
4694 additions
and
4 deletions
+4694
-4
app.jsx
project/src/app.jsx
+3
-3
output.js
project/src/canvas/game/output.js
+1562
-0
output.js.map
project/src/canvas/game/output.js.map
+1
-0
package.json
project/src/canvas/game/package.json
+1
-0
output.js
project/src/canvas/game/released/output.js
+1563
-0
copyJs.js
project/src/canvas/game/scripts/copyJs.js
+1
-1
output.js
project/src/pages/pagecanvas/output.js
+1563
-0
No files found.
project/src/app.jsx
View file @
8dbf83d0
...
...
@@ -3,15 +3,15 @@ import ReactDOM from "react-dom";
import
"./app.less"
;
import
{
MOCK_STATUS
}
from
'../sparkrc'
;
MOCK_STATUS
&&
(
require
(
'../mock/index'
));
import
MD
from
'./MD'
;
import
MD
from
'.
.
/MD'
;
MD
();
//此处为spark-cli动态生成
import
Page
mycanvaspage
from
"./pages/pagemycanvaspage/pagemycanvaspage
.jsx"
;
import
Page
Canvas
from
"./pages/pagecanvas/pagecanvas
.jsx"
;
class
App
extends
Component
{
render
()
{
return
(
<
Page
mycanvaspage
></
Pagemycanvaspage
>
<
Page
Canvas
></
PageCanvas
>
);
}
}
...
...
project/src/canvas/game/output.js
0 → 100644
View file @
8dbf83d0
This diff is collapsed.
Click to expand it.
project/src/canvas/game/output.js.map
0 → 100644
View file @
8dbf83d0
This diff is collapsed.
Click to expand it.
project/src/canvas/game/package.json
View file @
8dbf83d0
...
...
@@ -36,6 +36,7 @@
"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"
,
...
...
project/src/canvas/game/released/output.js
0 → 100644
View file @
8dbf83d0
This diff is collapsed.
Click to expand it.
project/src/canvas/game/scripts/copyJs.js
View file @
8dbf83d0
...
...
@@ -6,7 +6,7 @@ var fs = require("fs");
// fs.readFileSync("./output.js")
// )
// var endPath = 'D:/duibaGame/测试项目0527/taobaominiTest/client/pages/index1/';
var
endPath
=
'
D:/duibaGame/淘宝项目/babycareXiaoxiaoleTBminiTry/client/pages/index
/'
;
var
endPath
=
'
/Users/wanghongyuan/hello_canvas/project/src/pages/pagecanvas
/'
;
var
version
=
Math
.
round
(
new
Date
().
getTime
()
/
1000
);
// fs.writeFileSync(endPath + "output." + version + ".js", fs.readFileSync("./released/output.js"));
fs
.
writeFileSync
(
endPath
+
"output.js"
,
fs
.
readFileSync
(
"./released/output.js"
));
...
...
project/src/pages/pagecanvas/output.js
0 → 100644
View file @
8dbf83d0
This diff is collapsed.
Click to expand it.
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