Skip to content

Commit 7dc9ca7

Browse files
committed
add base node webkit compiling support
1 parent cdedec3 commit 7dc9ca7

File tree

4 files changed

+45
-13
lines changed

4 files changed

+45
-13
lines changed

Gruntfile.coffee

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = (grunt) ->
2+
grunt.loadNpmTasks 'grunt-node-webkit-builder'
3+
4+
grunt.initConfig
5+
nodewebkit:
6+
options:
7+
build_dir: './build'
8+
mac: true
9+
win: true
10+
linux32: false
11+
linux64: false
12+
keep_nw: true
13+
src: ['./public/**/*']

app.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# roots v2.0.6
22

33
# Files in this list will not be compiled - minimatch supported
4-
ignore_files: ['_*', 'readme*', '.gitignore', '.DS_Store', '*.conf', 'id_deploy', 'id_deploy.pub', 'README.md', 'building.md', 'Gruntfile.coffee']
5-
ignore_folders: ['.git', 'build']
4+
ignore_files: ['_*', 'readme*', '.gitignore', '.DS_Store', '*.conf', 'id_deploy', 'id_deploy.pub', 'README.md', 'building.md', 'Gruntfile.coffee', 'server.js', 'deploy', 'favicon.ico']
5+
ignore_folders: ['.git', 'build', 'node_modules']
66

77
# Layout file config
88
# `default` applies to all views. Override for specific

building.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
### How To Build
2+
3+
```npm install -g grunt-cli```
4+
```npm install```
5+
6+
```roots compile --compress```
7+
```grunt nodewebkit```
8+
```open build/releases/zoom-the-balloon/mac/zoom-the-balloon.app```

package.json

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,30 @@
11
{
2-
"name": "nko4-theteam",
2+
"main": "index.html",
3+
"name": "zoom-the-balloon",
4+
"description": "",
35
"version": "0.0.0",
4-
"description": ".͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠        ⚾🏇   🎎🎎🎎   🏇🏇🏇          ⚾     .͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠͠",
5-
"main": "server.js",
6-
"scripts": {
7-
"start": "node server.js"
6+
"nodejs": false,
7+
"window": {
8+
"title": "zoom-the-balloon",
9+
"toolbar": false,
10+
"frame": false,
11+
"width": 800,
12+
"height": 600,
13+
"position": "mouse",
14+
"min_width": 800,
15+
"min_height": 600,
16+
"max_width": 800,
17+
"max_height": 600
18+
},
19+
"devDependencies": {
20+
"grunt": "~0.4.1",
21+
"grunt-node-webkit-builder": "~0.1.11"
22+
},
23+
"webkit": {
24+
"plugin": true
825
},
926
"repository": {
1027
"type": "git",
1128
"url": "[email protected]:nko4/theteam.git"
12-
},
13-
"dependencies": {
14-
"nko": "*"
15-
},
16-
"engines": {
17-
"node": "0.10.x"
1829
}
1930
}

0 commit comments

Comments
 (0)