Permalink
Browse files

Build desktop app with grunt

  • Loading branch information...
pboyer committed Dec 15, 2013
1 parent a62a990 commit e8e6f6fff39088ebec2472d783847a2579e9763c
Showing with 37 additions and 32 deletions.
  1. +1 −1 .editorconfig
  2. +1 −0 .gitignore
  3. +22 −25 Gruntfile.js
  4. +1 −1 app/index.html
  5. +6 −4 app/package.json
  6. +6 −1 package.json
View
@@ -9,7 +9,7 @@ root = false
# Change these settings to your own preference
indent_style = space
indent_size = 4
indent_size = 2
# We recommend you to keep these unchanged
end_of_line = lf
View
@@ -4,3 +4,4 @@ dist
.sass-cache
app/bower_components
.tmp/
dist_desktop
View
@@ -80,17 +80,6 @@ module.exports = function (grunt) {
dist: ['.tmp', '<%= yeoman.dist %>/*'],
server: '.tmp'
},
// jshint: {
// options: {
// jshintrc: '.jshintrc'
// },
// all: [
// 'Gruntfile.js',
// '<%= yeoman.app %>/scripts/{,*/}*.js',
// '!<%= yeoman.app %>/scripts/vendor/*',
// 'test/spec/{,*/}*.js'
// ]
// },
mocha: {
all: {
options: {
@@ -137,19 +126,6 @@ module.exports = function (grunt) {
}
}
},
// useminPrepare: {
// html: '<%= yeoman.app %>/index.html',
// options: {
// dest: '<%= yeoman.dist %>'
// }
// },
// usemin: {
// html: ['<%= yeoman.dist %>/{,*/}*.html'],
// css: ['<%= yeoman.dist %>/styles/{,*/}*.css'],
// options: {
// dirs: ['<%= yeoman.dist %>']
// }
// },
imagemin: {
dist: {
files: [{
@@ -198,7 +174,18 @@ module.exports = function (grunt) {
"dist/index.html": ["app/index.html"]
}
}
},
},
nodewebkit: {
options: {
version: '0.8.1',
build_dir: './dist_desktop', // Where the build version of my node-webkit app is saved
mac: true, // We want to build it for mac
win: false, // We want to build it for win
linux32: false, // We don't need linux32
linux64: false // We don't need linux64
},
src: ['./dist/**'] // Your node-wekit app
}
});
grunt.renameTask('regarde', 'watch');
@@ -232,6 +219,16 @@ module.exports = function (grunt) {
'processhtml'
]);
grunt.registerTask('desktop', [
'clean:dist',
'requirejs',
'imagemin',
'cssmin',
'copy',
'processhtml',
'nodewebkit'
]);
grunt.registerTask('default', [
'test',
'build'
View
@@ -170,7 +170,7 @@ <h3 class="help-title">Select multiple nodes</h3>
</script> -->
<!-- Application source. -->
<!-- build:[src] /source.min.js -->
<!-- build:[src] source.min.js -->
<script data-main="/scripts/main" src="/bower_components/requirejs/require.js"></script>
<!-- /build -->
View
@@ -1,10 +1,12 @@
// config file for node-webkit
{
"name": "flood",
"version": "0.0.4",
"description": "A visual programming language for JavaScript, based on Scheme",
"main": "index.html",
"window": {
"toolbar": false,
"width": 800,
"height": 600
"frame": true
}
}
}
View
@@ -1,8 +1,12 @@
{
"name": "flood",
"version": "0.0.4",
"dependencies": {},
"description": "A visual programming language for JavaScript, based on Scheme",
"dependencies": {
},
"devDependencies": {
"grunt-node-webkit-builder": "~0.1.13",
"grunt": "0.4.2",
"grunt-processhtml": "~0.2.6",
"grunt-contrib-copy": "0.4.1",
@@ -27,4 +31,5 @@
"engines": {
"node": ">=0.10.0"
}
}

0 comments on commit e8e6f6f

Please sign in to comment.