Permalink
Browse files

First working skeleton of build.

  • Loading branch information...
1 parent fe4b91d commit fa727a18de85f458e2694caa8767aec2187c1e96 @abierbaum abierbaum committed Mar 8, 2013
Showing with 2,779 additions and 0 deletions.
  1. +59 −0 Gruntfile.js
  2. +1,550 −0 extension/deps/handlebars-1.0.0.js
  3. +4 −0 extension/deps/jquery-1.7.2.min.js
  4. +1,104 −0 extension/deps/underscore.js
  5. +29 −0 extension/manifest.json
  6. +18 −0 package.json
  7. +15 −0 pt_tweaks.pem
View
@@ -0,0 +1,59 @@
+/*jshint debug:true, node:true */
+
+// TODO:
+// -
+
+module.exports = function(grunt) {
+ var _ = grunt.util._;
+
+ // -- LOAD GRUNT PLUGINS -- //
+ grunt.loadNpmTasks('grunt-contrib-jshint');
+ grunt.loadNpmTasks('grunt-contrib-watch');
+ grunt.loadNpmTasks('grunt-crx');
+
+ // --- HELPERS --- //
+ var glg = grunt.log.write;
+ glg('Starting');
+ debugger;
+
+ // --- CREATE CONFIGURATION --- //
+ var config = {
+ pkg: grunt.file.readJSON('package.json'),
+ manifest: grunt.file.readJSON('extension/manifest.json')
+ };
+
+ config.crx = {
+ pt_extension: {
+ src: 'extension/',
+ dest: 'build',
+ privateKey: 'pt_tweaks.pem',
+ filename: '<%= pkg.name %>-<%= manifest.version %>.crx',
+ baseURL: 'http://not.here.com'
+ }
+ };
+
+
+ /** JSHINT: Linting for all the files */
+ config.jshint = {
+ options: {
+ jshintrc: 'jshintrc'
+ },
+ build : ['Gruntfile.js'],
+ app : ['extension/src/*.js']
+ };
+ /** WATCH:
+ * provide a fast development watch and a slower full everything watch.
+ */
+ config.watch = {
+ full : {
+ files : ['Gruntfile.js', 'extension/src/*.js'],
+ tasks : ['jshint']
+ }
+ };
+
+ // -- REGISTER AND SETUP TASK ALIASES -- //
+ grunt.initConfig(config);
+
+ grunt.registerTask('dev', ['jshint', 'watch:full']);
+ grunt.registerTask('default', ['dev']);
+};
Oops, something went wrong.

0 comments on commit fa727a1

Please sign in to comment.