MAJOR refactor. shit’s broken though, yo

This commit is contained in:
Amrit Panesar committed 2017-03-24 16:43:53 -07:00
1 parent ca2c8d57cc
commit ff2ce99a19
5 files changed
+1222 -71

No files matched your search

+23 -3
View File
@@ -16,6 +16,11 @@ module.exports = function (grunt) {
browserify: {
default: {
options: {
browserifyOptions: {
debug: true
}
},
src: ['<%= pkg.grunt.src.path %>/debug.js', '<%= pkg.grunt.src.path %>/<%= pkg.grunt.src.script %>'],
dest: '<%= pkg.grunt.src.path %>/<%= pkg.grunt.build.script %>.js'
},
@@ -25,6 +30,20 @@ module.exports = function (grunt) {
}
},
exorcise: {
default: {
options: {
url: "http://localhost:63344/lint-neo-yt/src/app.map",
root: "../",
base: "../",
strict: true
},
files: {
'src/app.map': ['src/app.js']
}
}
},
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
@@ -68,14 +87,15 @@ module.exports = function (grunt) {
});
// Load the plugins.
grunt.loadNpmTasks('grunt-browserify');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-browserify');
grunt.loadNpmTasks('grunt-exorcise');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-cache-breaker');
// Default task(s).
grunt.registerTask('default', ['clean', 'browserify:default', 'copy', 'cachebreaker']);
grunt.registerTask('default', ['clean', 'browserify:default', 'exorcise:default', 'copy', 'cachebreaker']);
grunt.registerTask('build', ['clean', 'browserify:build', 'uglify:build', 'copy', 'cachebreaker']);
};