Content-Length: 360274 | pFad | http://github.com/CreateJS/SoundJS/commit/0f45ba5b6bf6abb899f631530845e0c892c84890

83 Tweak the build to only append -NEXT when running a grunt next build. · CreateJS/SoundJS@0f45ba5 · GitHub
Skip to content

Commit 0f45ba5

Browse files
committed
Tweak the build to only append -NEXT when running a grunt next build.
1 parent 9b831ef commit 0f45ba5

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

build/Gruntfile.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ module.exports = function (grunt) {
88

99
// Default values
1010
version: 'NEXT',
11+
fileVersion: '-<%= version %>',
1112
name: 'soundjs',
1213

1314
// Setup doc names / paths.
14-
docsName: '<%= pkg.name %>_docs-<%= version %>',
15+
docsName: '<%= pkg.name %>_docs<%= fileVersion %>',
1516
docsZip: "<%= docsName %>.zip",
1617

1718
// Setup Uglify for JS minification.
@@ -30,9 +31,9 @@ module.exports = function (grunt) {
3031
},
3132
build: {
3233
files: {
33-
'output/<%= pkg.name.toLowerCase() %>-<%= version %>.min.js': getConfigValue('source'),
34-
'output/flashaudioplugin-<%= version %>.min.js': getConfigValue('flashaudioplugin_source'),
35-
'output/cordovaaudioplugin-<%= version %>.min.js': getConfigValue('cordovaaudioplugin_source'),
34+
'output/<%= pkg.name.toLowerCase() %><%= fileVersion %>.min.js': getConfigValue('source'),
35+
'output/flashaudioplugin<%= fileVersion %>.min.js': getConfigValue('flashaudioplugin_source'),
36+
'output/cordovaaudioplugin<%= fileVersion %>.min.js': getConfigValue('cordovaaudioplugin_source'),
3637
}
3738
}
3839
},
@@ -71,13 +72,13 @@ module.exports = function (grunt) {
7172
},
7273
build: {
7374
files: {
74-
'output/<%= pkg.name.toLowerCase() %>-<%= version %>.combined.js': combineSource([
75+
'output/<%= pkg.name.toLowerCase() %><%= fileVersion %>.js': combineSource([
7576
{cwd: '', config:'config.json', source:'source'}
7677
]),
77-
'output/flashaudioplugin-<%= version %>.combined.js': combineSource([
78+
'output/flashaudioplugin<%= fileVersion %>.js': combineSource([
7879
{cwd: '', config:'config.json', source:'flashaudioplugin_source'}
7980
]),
80-
'output/cordovaaudioplugin-<%= version %>.combined.js': combineSource([
81+
'output/cordovaaudioplugin<%= fileVersion %>.js': combineSource([
8182
{cwd: '', config:'config.json', source:'cordovaaudioplugin_source'}
8283
])
8384
}
@@ -135,7 +136,7 @@ module.exports = function (grunt) {
135136
},
136137
src: {
137138
files: [
138-
{expand: true, cwd:'./output/', src: '*<%=version %>*.js', dest: '../lib/'}
139+
{expand: true, cwd:'./output/', src: '*<%=fileVersion %>*.js', dest: '../lib/'}
139140
]
140141
}
141142
},
@@ -315,6 +316,7 @@ module.exports = function (grunt) {
315316
*/
316317
grunt.registerTask('setVersion', function () {
317318
grunt.config.set('version', grunt.config.get('pkg').version);
319+
grunt.config.set('fileVersion', '');
318320
});
319321

320322
/**

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/CreateJS/SoundJS/commit/0f45ba5b6bf6abb899f631530845e0c892c84890

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy