diff --git a/Gruntfile.js b/Gruntfile.js index ba09609..d21a77f 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -20,7 +20,7 @@ module.exports = function (grunt) { }, index: { src: 'index.js', - dest: 'build/index.min.js' + dest: 'build/intl-messageformat.min.js' }, localized: { expand: true, diff --git a/README.md b/README.md index 4117ca0..2c9bdc8 100644 --- a/README.md +++ b/README.md @@ -179,9 +179,9 @@ This package ships with locale data for the top-level locales (e.g. `en` but not * Load the base and then just the locale(s) that you need: `intl-messageformat/index.js` and `intl-messageformat/locale-data/{locale}.js`. -* Load the base with a single locale builtin: `intl-messageformat/build/index.{locale}.js')`. You can then optionally add more locale(s) as above. +* Load the base with a single locale builtin: `intl-messageformat/build/intl-messageformat.{locale}.js')`. You can then optionally add more locale(s) as above. -* Load all locales: `intl-messageformat/build/index.complete.js`. +* Load all locales: `intl-messageformat/build/intl-messageformat.complete.js`. ### Loading Locale Data in Node.js diff --git a/bower.json b/bower.json index b174146..273901b 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "intl-messageformat", - "main": "build/index.complete.min.js", + "main": "build/intl-messageformat.complete.min.js", "version": "0.0.1", "homepage": "https://github.com/yahoo/intl-messageformat", "authors": [ diff --git a/package.json b/package.json index 7dad04b..f746493 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "type": "git", "url": "git@github.com:yahoo/intl-messageformat.git" }, - "main": "build/index.complete.min.js", + "main": "build/intl-messageformat.complete.min.js", "directories": { "test": "tests" }, diff --git a/tasks/localize.js b/tasks/localize.js index 4b522bc..f94f3d5 100644 --- a/tasks/localize.js +++ b/tasks/localize.js @@ -12,7 +12,7 @@ module.exports = function(grunt) { srcFiles = fs.readdirSync(config.src); srcFiles.forEach(function(srcFile) { var srcPath = libpath.resolve(config.src, srcFile), - destPath = libpath.resolve(config.dest, 'index.' + srcFile), + destPath = libpath.resolve(config.dest, 'intl-messageformat.' + srcFile), out = library; out += grunt.file.read(srcPath); grunt.file.write(destPath, out, {encoding: 'utf8'}); diff --git a/tests/index.html b/tests/index.html index 56050d0..0425b12 100644 --- a/tests/index.html +++ b/tests/index.html @@ -10,7 +10,7 @@
- +