grunt-i18n-rename
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "grunt-i18n-rename", | ||
"description": "Browserify centric plugin that allows multiple builds, rename files with known extensions in order to provide internationalised single page apps", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"homepage": "https://github.com/amido/grunt-i18n-rename", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -25,3 +25,3 @@ /* | ||
grunt.task.run(config.task); | ||
var root = config.root || ''; | ||
var root = config.root || '.'; | ||
var task = config.task; | ||
@@ -33,3 +33,3 @@ config.locales.forEach(function(locale) { | ||
grunt.registerTask(preName, 'copied the files over', function() { | ||
var results = grunt.file.expand(root + '**/*.' + locale + '.*'); | ||
var results = grunt.file.expand(root + '/**/*.' + locale + '.*'); | ||
results.forEach(function (localeFilePath) { | ||
@@ -46,3 +46,3 @@ var defaultFilePath = localeFilePath.replace('.' + locale + '.js', '.js'); | ||
grunt.registerTask(postName, 'copied the files over', function() { | ||
var results = grunt.file.expand(root + '**/*-old.*'); | ||
var results = grunt.file.expand(root + '/**/*-old.*'); | ||
results.forEach(function(backupFilePath) { | ||
@@ -49,0 +49,0 @@ var defaultFilePath = backupFilePath.replace('-old.js', '.js'); |
10217