Skip to content

Commit b42b75a

Browse files
committed
Use the destination file configured in the concat task.
1 parent 4f78600 commit b42b75a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Gruntfile.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = function(grunt){
1919
"doc": ["<%= natural_docs.docs.output %>"],
2020
"prepare-release": ["strophejs-<%= pkg.version %>"],
2121
"release": ["strophejs-<%= pkg.version %>.zip", "strophejs-<%= pkg.version %>.tar.gz"],
22-
"js": ["strophe.js", "strophe.min.js"]
22+
"js": ["<%= concat.dist.dest %>", "strophe.min.js"]
2323
},
2424

2525
qunit: {
@@ -57,7 +57,7 @@ module.exports = function(grunt){
5757
files:[
5858
{
5959
expand: true,
60-
src:['', 'strophe.min.js', 'LICENSE.txt', 'README.txt',
60+
src:['<%= concat.dist.dest %>', 'strophe.min.js', 'LICENSE.txt', 'README.txt',
6161
'contrib/**', 'examples/**', 'plugins/**', 'tests/**', 'doc/**'],
6262
dest:"strophejs-<%= pkg.version %>"
6363
}
@@ -66,7 +66,7 @@ module.exports = function(grunt){
6666
"prepare-doc": {
6767
files:[
6868
{
69-
src:['strophe.js'],
69+
src:['<%= concat.dist.dest %>'],
7070
dest:"<%= natural_docs.docs.inputs[0] %>"
7171
}
7272
]
@@ -93,7 +93,7 @@ module.exports = function(grunt){
9393
banner: '/*! <%= pkg.name %> v<%= pkg.version %> - built on <%= grunt.template.today("dd-mm-yyyy") %> */\n'
9494
},
9595
dist: {
96-
files: { 'strophe.min.js': ['strophe.js'] }
96+
files: { 'strophe.min.js': ['<%= concat.dist.dest %>'] }
9797
}
9898
},
9999

@@ -125,8 +125,8 @@ module.exports = function(grunt){
125125
grunt.loadNpmTasks("grunt-contrib-uglify");
126126
grunt.loadNpmTasks('grunt-contrib-jshint');
127127
grunt.loadNpmTasks('grunt-contrib-watch');
128-
grunt.loadNpmTasks("grunt-contrib-clean");
129128
grunt.loadNpmTasks("grunt-contrib-concat");
129+
grunt.loadNpmTasks("grunt-contrib-clean");
130130
grunt.loadNpmTasks('grunt-shell');
131131
grunt.loadNpmTasks('grunt-natural-docs');
132132
grunt.loadNpmTasks('grunt-mkdir');

0 commit comments

Comments
 (0)