diff --git a/form/.gitignore b/form/.gitignore index 6b772c3b1a96c53eb307155fefcf698aef757188..86d943a9b2e8f3bb69fbe37fd8363962646b1d92 100644 --- a/form/.gitignore +++ b/form/.gitignore @@ -9,7 +9,6 @@ # dependencies /node_modules -/publish # profiling files chrome-profiler-events*.json diff --git a/form/publish/.keep b/form/publish/.keep new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/package.json b/package.json new file mode 100644 index 0000000000000000000000000000000000000000..3ea4ce52b037efdc3a7ec8f90a0cd936667d21ea --- /dev/null +++ b/package.json @@ -0,0 +1,16 @@ +{ + "name": "publish", + "version": "1.0.0", + "description": "", + "main": "build.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "build": "sh ./publish/build.sh", + "win": "cd publish && build.cmd" + }, + "author": "", + "license": "ISC", + "dependencies": { + "compressing": "^1.5.0" + } +} diff --git a/publish/build.cmd b/publish/build.cmd index 5971677f3617975b4c6f3e3d84e77cc5ecb92cde..359cf711ace5cbfb37e07082809e4623f73ff34a 100644 --- a/publish/build.cmd +++ b/publish/build.cmd @@ -1,2 +1,2 @@ -cd ../form & npm run publish & cd ../play & CocosCreator.exe --path "./" --build "configPath=../publish/buildConfig.json" --force & cd ../publish & node build.js +cd ../form & npm install & npm run publish & cd ../play & CocosCreator.exe --path "./" --build "platform=web-desktop;debug=true" --force & cd ../publish & node build.js pause