added jake task to build 'node-webkit' app
This commit is contained in:
Родитель
784c6eaa94
Коммит
3129064ef3
|
@ -2,6 +2,9 @@
|
|||
node_modules
|
||||
npm-debug.log
|
||||
|
||||
# node-webkit-builder
|
||||
nw_cache
|
||||
|
||||
# shell
|
||||
cdn-cache
|
||||
tdconfig.json
|
||||
|
|
26
Jakefile
26
Jakefile
|
@ -322,5 +322,31 @@ task('update-docs', [ 'build/client.js', 'default' ], { async: true }, function(
|
|||
)
|
||||
})
|
||||
|
||||
task('nw', [ 'default' ], { async : true }, function() {
|
||||
console.log('[I] building nw packages')
|
||||
jake.mkdirP('build/nw');
|
||||
['node-webkit/app.html',
|
||||
'node-webkit/logo.png',
|
||||
'node-webkit/package.json',
|
||||
'build/browser.js',
|
||||
'build/main.js',
|
||||
'build/shell.js',
|
||||
'build/runtime.js',
|
||||
'css/default.css',
|
||||
'css/editor.css'].forEach(function(f) { jake.cpR(f, 'build/nw') })
|
||||
var nwBuilder = require('node-webkit-builder');
|
||||
var nw = new nwBuilder({
|
||||
files: 'build/nw/**',
|
||||
platforms: ['win32'], //['osx32', 'osx64', 'win32', 'win64'],
|
||||
buildDir: 'build/nw_build',
|
||||
cacheDir: 'nw_cache',
|
||||
});
|
||||
nw.on('log', console.log);
|
||||
nw.build().then(function () {
|
||||
console.log('[I] nw packaged');
|
||||
complete();
|
||||
});
|
||||
})
|
||||
|
||||
|
||||
// vim: ft=javascript
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"main": "app.html",
|
||||
"name": "TouchDevelop",
|
||||
"version": "3.3.0",
|
||||
"main": "app.html",
|
||||
"node-main": "shell.js",
|
||||
"description": "TouchDevelop is a mobile and cloud friendly app creation environment.",
|
||||
"keywords": [ "TouchDevelop", "coding", "apps", "education" ],
|
||||
|
@ -16,11 +17,11 @@
|
|||
"resizable":true
|
||||
},
|
||||
"licenses": [{
|
||||
"type": "MIT",
|
||||
"type": "MIT"
|
||||
}],
|
||||
"repositories": [{
|
||||
"type": "git",
|
||||
"url": "http://github.com/microsoft/TouchDevelop.git",
|
||||
"path": "nw"
|
||||
"path": "node-webkit"
|
||||
}]
|
||||
}
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
{
|
||||
"devDependencies": {
|
||||
"jake": "latest",
|
||||
"typescript": "latest"
|
||||
"typescript": "latest",
|
||||
"node-webkit-builder":"latest"
|
||||
},
|
||||
"dependencies": {
|
||||
"tsd": "^0.5.7"
|
||||
|
|
Загрузка…
Ссылка в новой задаче