Skip to content

Commit

Permalink
Fix missing cloudinary-jquery-file-upload.coffee.js.map error. Solved
Browse files Browse the repository at this point in the history
cloudinary/cloudinary_gem#199.

Build `js/jquery.cloudinary.js` by renaming `cloudinary-jquery-file-upload.coffee` and then compiling it instead of renaming `cloudinary-jquery-file-upload.js` after compiling
  • Loading branch information
Amir Tocker committed Jun 5, 2016
1 parent fe3e3a1 commit fc16284
Show file tree
Hide file tree
Showing 6 changed files with 2,877 additions and 10 deletions.
17 changes: 13 additions & 4 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ module.exports = (grunt)->
src: ['*.coffee']
dest: 'build'
ext: '.js'
legacy:
expand: false
bare: false
sourceMap: true
cwd: '.'
src: 'js/jquery.cloudinary.coffee'
dest: 'js/jquery.cloudinary.js'
ext: '.js'


uglify:
build:
Expand Down Expand Up @@ -136,8 +145,8 @@ module.exports = (grunt)->
dest: "js/"
}
{
src: 'build/cloudinary-jquery-file-upload.js'
dest: 'js/jquery.cloudinary.js'
src: 'build/cloudinary-jquery-file-upload.coffee'
dest: 'js/jquery.cloudinary.coffee'
}
]
dist:
Expand Down Expand Up @@ -274,8 +283,8 @@ module.exports = (grunt)->
grunt.loadNpmTasks('grunt-version')

grunt.registerTask('default', ['concat', 'coffee'])
grunt.registerTask('compile', ['clean:build', 'clean:js', 'concat', 'coffee', 'copy:backward-compatible', 'copy:dist'])
grunt.registerTask('build', ['clean', 'concat', 'coffee', 'jsdoc', 'copy:backward-compatible'])
grunt.registerTask('compile', ['clean:build', 'clean:js', 'concat', 'copy:backward-compatible', 'coffee', 'copy:dist'])
grunt.registerTask('build', ['clean', 'concat', 'copy:backward-compatible', 'coffee', 'jsdoc'])
grunt.registerTask('lodash', (name, target)->
lodashCalls = grunt.file.read('src/util/lodash.coffee').match(/_\.\w+/g)
include = []
Expand Down
17 changes: 13 additions & 4 deletions Gruntfile.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fc16284

Please sign in to comment.