summaryrefslogtreecommitdiffstats
path: root/Gruntfile.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2015-12-14 02:22:30 -0600
committerkpdecker <kpdecker@gmail.com>2015-12-14 02:31:13 -0600
commit8517352e209569f5a373d7a61ef4a673582d9616 (patch)
treebbd3f2a8a400fdb3329b1a55373313e19c4f17f2 /Gruntfile.js
parent63fdb92472cf7f6f8a576baa31f4aa2c5d1b643c (diff)
downloadhandlebars.js-8517352e209569f5a373d7a61ef4a673582d9616.zip
handlebars.js-8517352e209569f5a373d7a61ef4a673582d9616.tar.gz
handlebars.js-8517352e209569f5a373d7a61ef4a673582d9616.tar.bz2
Remove amd files from the build
Users can utilize the UMD library if they are still using require.js and if they need to have specific modules, they can consume the cjs or es6 modules via webpack or similar. Fix for #1096
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js47
1 files changed, 5 insertions, 42 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 97cfff0..73c5215 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -44,23 +44,6 @@ module.exports = function(grunt) {
},
babel: {
- options: {
- sourceMaps: 'inline',
- loose: ['es6.modules'],
- auxiliaryCommentBefore: 'istanbul ignore next'
- },
- amd: {
- options: {
- modules: 'amd'
- },
- files: [{
- expand: true,
- cwd: 'lib/',
- src: '**/!(index).js',
- dest: 'dist/amd/'
- }]
- },
-
cjs: {
options: {
modules: 'common'
@@ -102,25 +85,6 @@ module.exports = function(grunt) {
}
},
- requirejs: {
- options: {
- optimize: 'none',
- baseUrl: 'dist/amd/'
- },
- dist: {
- options: {
- name: 'handlebars',
- out: 'dist/handlebars.amd.js'
- }
- },
- runtime: {
- options: {
- name: 'handlebars.runtime',
- out: 'dist/handlebars.runtime.amd.js'
- }
- }
- },
-
uglify: {
options: {
mangle: true,
@@ -160,7 +124,7 @@ module.exports = function(grunt) {
all: {
options: {
build: process.env.TRAVIS_JOB_ID,
- urls: ['http://localhost:9999/spec/?headless=true', 'http://localhost:9999/spec/amd.html?headless=true'],
+ urls: ['http://localhost:9999/spec/?headless=true'],
detailedError: true,
concurrency: 4,
browsers: [
@@ -176,11 +140,12 @@ module.exports = function(grunt) {
sanity: {
options: {
build: process.env.TRAVIS_JOB_ID,
- urls: ['http://localhost:9999/spec/umd.html?headless=true', 'http://localhost:9999/spec/amd-runtime.html?headless=true', 'http://localhost:9999/spec/umd-runtime.html?headless=true'],
+ urls: ['http://localhost:9999/spec/umd.html?headless=true', 'http://localhost:9999/spec/umd-runtime.html?headless=true'],
detailedError: true,
concurrency: 2,
browsers: [
- {browserName: 'chrome'}
+ {browserName: 'chrome'},
+ {browserName: 'internet explorer', version: 10, platform: 'Windows 8'}
]
}
}
@@ -205,19 +170,17 @@ module.exports = function(grunt) {
'node',
'globals']);
- this.registerTask('amd', ['babel:amd', 'requirejs']);
this.registerTask('node', ['babel:cjs']);
this.registerTask('globals', ['webpack']);
this.registerTask('tests', ['concat:tests']);
- this.registerTask('release', 'Build final packages', ['eslint', 'amd', 'uglify', 'test:min', 'copy:dist', 'copy:components', 'copy:cdnjs']);
+ this.registerTask('release', 'Build final packages', ['eslint', 'uglify', 'test:min', 'copy:dist', 'copy:components', 'copy:cdnjs']);
// Load tasks from npm
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-copy');
- grunt.loadNpmTasks('grunt-contrib-requirejs');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-babel');