Skip to content

Commit

Permalink
feat(i18nDirective): fix issue with substitutions
Browse files Browse the repository at this point in the history
Solves problem of always passing in empty object
  • Loading branch information
doshprompt committed Jun 5, 2014
1 parent 2fa3271 commit edfff23
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 436 deletions.
29 changes: 13 additions & 16 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,21 +77,6 @@ module.exports = function (grunt) {
}
},

'json-replace': {
options: {
replace: {
description: 'angularjs localization, the good parts.'
},
space: ' '
},
bwr: {
files: [{
src: paths.distDir + '/bower.json',
dest: paths.distDir + '/bower.json'
}]
}
},

connect: {
options: {
port: 9001,
Expand Down Expand Up @@ -121,10 +106,22 @@ module.exports = function (grunt) {
configFile: "build/protractor.conf.js"
}
}
},

preprocess: {
options: {
inline: true,
context: {
VERSION: 'v<%= pkg.version %>'
}
},
bump: {
src: [ paths.distDir + '/angular-localization.js']
}
}
});

grunt.registerTask('build', ['clean', 'concat', 'uglify', 'compress', 'copy', 'json-replace']);
grunt.registerTask('build', ['clean', 'concat', 'preprocess', 'uglify', 'compress']);

grunt.registerTask('test', ['karma', 'connect:ngTest', 'protractor']);
};
21 changes: 0 additions & 21 deletions dist/LICENSE

This file was deleted.

Loading

0 comments on commit edfff23

Please sign in to comment.