From 5d9a59162e35aad1aefc75b14c417a39bf6da5cf Mon Sep 17 00:00:00 2001 From: jules Date: Tue, 28 Jan 2014 09:45:10 -0500 Subject: sane build process --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'package.json') diff --git a/package.json b/package.json index 8aa641a..4faacfc 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,8 @@ "grunt": "~0.4.1", "grunt-contrib-concat": "~0.3.0", "grunt-contrib-uglify": "~0.2.5", - "grunt-contrib-watch": "~0.5.3" + "grunt-contrib-watch": "~0.5.3", + "grunt-contrib-clean": "~0.5.0", + "grunt-dentist": "~0.2.0" } } -- cgit v1.2.3-70-g09d2 From 03d746887a9ca5ad7c2d0a40c0ca6ae877704d43 Mon Sep 17 00:00:00 2001 From: jules Date: Tue, 28 Jan 2014 10:02:19 -0500 Subject: grunt install task --- Gruntfile.js | 9 +++++++++ package.json | 1 + 2 files changed, 10 insertions(+) (limited to 'package.json') diff --git a/Gruntfile.js b/Gruntfile.js index 77ac474..db8e0c0 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -53,6 +53,13 @@ module.exports = function(grunt) { }, clean: { release: ["dist/app.concat.js","dist/app.init.js"], + }, + copy: { + release: { + files: [ + {expand: true, src: ['dist/*'], dest: '~/asdf/shader/', nonull: true}, + ] + }, }, watch: { files: ['dist/!(app.min|app.concat).js'], @@ -65,9 +72,11 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-clean'); + grunt.loadNpmTasks('grunt-contrib-copy'); grunt.loadNpmTasks('grunt-dentist'); // Default task(s). grunt.registerTask('default', ['dentist', 'concat', 'uglify']); + grunt.registerTask('install', ['dentist', 'concat', 'uglify', 'clean', 'copy']); }; diff --git a/package.json b/package.json index 4faacfc..53a3c10 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "grunt-contrib-uglify": "~0.2.5", "grunt-contrib-watch": "~0.5.3", "grunt-contrib-clean": "~0.5.0", + "grunt-contrib-copy": "~0.5.0", "grunt-dentist": "~0.2.0" } } -- cgit v1.2.3-70-g09d2 From 1e1966cc74c1e491fcf81439b2b6ee209c829907 Mon Sep 17 00:00:00 2001 From: jules Date: Thu, 30 Jan 2014 11:01:38 -0500 Subject: update grunt-dentist to remove stylesheets --- Gruntfile.js | 4 +++- dist/index.html | 44 ++------------------------------------------ package.json | 2 +- 3 files changed, 6 insertions(+), 44 deletions(-) (limited to 'package.json') diff --git a/Gruntfile.js b/Gruntfile.js index 04c7809..5ef6d87 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -5,11 +5,13 @@ module.exports = function(grunt) { pkg: grunt.file.readJSON('package.json'), dentist: { options: { - include: "app.min.js" + include_js: "app.min.js", + include_css: "app.css" }, build: { src: 'shader-combo.html', dest_js: 'dist/app.init.js', + dest_css: 'dist/app.css', dest_html: 'dist/index.html' } }, diff --git a/dist/index.html b/dist/index.html index c0126fa..26d4192 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1,48 +1,8 @@ - - + +