summaryrefslogtreecommitdiffstats
path: root/Gruntfile.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2013-10-09 02:20:52 -0700
committerkpdecker <kpdecker@gmail.com>2013-10-09 02:20:52 -0700
commit63bb459ac6a3b25d49265bc0ca1254540c06ddeb (patch)
tree6712fde441ba522fc0f24e57549c98c022e2dd7f /Gruntfile.js
parenta8cd3201b594cca546a8c151e144e11e957273ec (diff)
downloadhandlebars.js-63bb459ac6a3b25d49265bc0ca1254540c06ddeb.zip
handlebars.js-63bb459ac6a3b25d49265bc0ca1254540c06ddeb.tar.gz
handlebars.js-63bb459ac6a3b25d49265bc0ca1254540c06ddeb.tar.bz2
Generate dist file using es6-module-packager
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js17
1 files changed, 16 insertions, 1 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index ee00067..db27188 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -25,6 +25,21 @@ module.exports = function(grunt) {
connect: config('connect'),
transpile: config('transpile'),
+ packager: {
+ options: {
+ export: 'Handlebars'
+ },
+
+ global: {
+ files: [{
+ cwd: 'lib/',
+ expand: true,
+ src: ['handlebars*.js'],
+ dest: 'dist/'
+ }]
+ }
+ },
+
uglify: {
options: {
mangle: true,
@@ -49,7 +64,7 @@ module.exports = function(grunt) {
'parser',
'transpile:amd',
'transpile:cjs',
- 'concat',
+ 'packager',
'uglify']);
// Run a server. This is ideal for running the QUnit tests in the browser.