Skip to content

Commit 3175946

Browse files
committed
update package versions. improve grunt build
1 parent a099fbb commit 3175946

File tree

3 files changed

+26
-21
lines changed

3 files changed

+26
-21
lines changed
Binary file not shown.

package.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Grunt-builder",
3-
"version": "0.0.1",
3+
"version": "0.6.5",
44
"main": "app/index.html",
55
"description": "Soundnode App is the Soundcloud for desktop",
66
"scripts": {
@@ -18,14 +18,14 @@
1818
"babel-preset-stage-0": "^6.0.15",
1919
"eslint": "^1.8.0",
2020
"eslint-plugin-react": "^3.7.1",
21-
"grunt": "^0.4.5",
22-
"grunt-contrib-clean": "^0.6.0",
23-
"grunt-contrib-jshint": "^0.11.3",
24-
"grunt-contrib-watch": "^0.6.1",
25-
"grunt-nw-builder": "^2.0.0",
26-
"grunt-sass": "^1.0.0",
27-
"grunt-shell": "^1.1.2",
28-
"load-grunt-config": "^0.18.0",
21+
"grunt": "^1.0.1",
22+
"grunt-contrib-clean": "^1.0.0",
23+
"grunt-contrib-jshint": "^1.0.0",
24+
"grunt-contrib-watch": "^1.0.0",
25+
"grunt-nw-builder": "^2.0.3",
26+
"grunt-sass": "^1.2.0",
27+
"grunt-shell": "^1.3.0",
28+
"load-grunt-config": "^0.19.2",
2929
"time-grunt": "^1.2.2",
3030
"webpack": "^1.12.2"
3131
},
@@ -36,6 +36,6 @@
3636
"dependencies": {
3737
"react": "^0.14.2",
3838
"react-dom": "^0.14.2",
39-
"universal-analytics": "^0.3.9"
39+
"universal-analytics": "^0.3.11"
4040
}
4141
}

tasks/nwjs.js

+16-11
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,27 @@
1+
// test if OS is windows
2+
var isWin = /^win/.test(process.platform);
3+
14
var config = {
25
options: {
36
buildDir: '<%= settings.dist %>', // Where the build version of my node-webkit app is saved
47
macIcns: '<%= settings.app %>/soundnode.icns',
5-
downloadUrl: 'http://www.soundnodeapp.com/build/',
6-
platforms: ['linux32', 'linux64', 'osx64', 'win32'],
7-
version: '0.12.3'
8+
winIco: '<%= settings.app %>/soundnode.ico',
9+
platforms: [
10+
'linux32',
11+
'linux64',
12+
'osx64',
13+
'win32'
14+
],
15+
version: '0.12.3',
16+
appVersion: null, // default to package.json version
17+
cacheDir: 'cache',
18+
zip: true
819
},
920
src: [
1021
'<%= settings.app %>/index.html',
1122
'<%= settings.app %>/package.json',
1223
'<%= settings.app %>/soundnode.icns',
24+
'<%= settings.app %>/soundnode.ico',
1325
'<%= settings.app %>/soundnode.png',
1426
'<%= settings.app %>/views/**/*',
1527
'<%= settings.app %>/public/js/**/*',
@@ -19,13 +31,6 @@ var config = {
1931
'./node_modules/universal-analytics/**/*',
2032
'./node_modules/mpris-service/**/*'
2133
]
22-
};
23-
24-
// test if OS is windows
25-
var isWin = /^win/.test(process.platform);
26-
27-
if ( isWin ) {
28-
config.options['winIco'] = '<%= settings.app %>/soundnode.ico';
29-
}
34+
};
3035

3136
module.exports = config;

0 commit comments

Comments
 (0)