Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[tools] grunt integration

  • Loading branch information...
commit 946463bb5944f1ba2581bd80189b457fc6144dc7 1 parent 80fa511
@jgallen23 authored
Showing with 75 additions and 35 deletions.
  1. +0 −3  Makefile
  2. +0 −25 build.json
  3. +75 −0 grunt.js
  4. +0 −7 lib/copyright.js
View
3  Makefile
@@ -1,3 +0,0 @@
-boosh:
- smoosh make ./build.json
-
View
25 build.json
@@ -1,25 +0,0 @@
-{
- "JAVASCRIPT": {
- "DIST_DIR": "./dist",
- "jquery.framejax": [
- "./lib/copyright.js",
- "./lib/framejax.js"
- ]
- },
- "JSHINT_OPTS": {
- "boss": true,
- "forin": false,
- "curly": true,
- "debug": false,
- "devel": false,
- "evil": false,
- "regexp": false,
- "undef": false,
- "sub": true,
- "white": false,
- "indent": 2,
- "whitespace": false,
- "asi": true
- }
-}
-
View
75 grunt.js
@@ -0,0 +1,75 @@
+module.exports = function(grunt) {
+ grunt.initConfig({
+ info: '<json:component.json>',
+ meta: {
+ banner: '/*!\n'+
+ ' * <%= info.name %> - <%= info.description %>\n'+
+ ' * v<%= info.version %>\n'+
+ ' * <%= info.homepage %>\n'+
+ ' * copyright <%= info.copyright %> <%= grunt.template.today("yyyy") %>\n'+
+ ' * <%= info.license %> License\n'+
+ '*/'
+ },
+ lint: {
+ main: [
+ 'grunt.js',
+ 'component.json',
+ 'lib/**/*.js',
+ 'test/*.js'
+ ]
+ },
+ concat: {
+ dist: {
+ src: ['<banner>', 'lib/framejax.js'],
+ dest: 'dist/jquery.framejax.js'
+ }
+ },
+ min: {
+ dist: {
+ src: ['<banner>', 'dist/framejax.js'],
+ dest: 'dist/jquery.framejax.min.js'
+ }
+ },
+ watch: {
+ main: {
+ files: '<config:lint.main>',
+ tasks: 'default'
+ }
+ /*
+ ci: {
+ files: [
+ '<config:lint.main>',
+ 'test/index.html'
+ ],
+ tasks: 'default mocha'
+ }
+ */
+ },
+ /*
+ mocha: {
+ all: {
+ src: 'test/index.html',
+ options: {
+ //grep: 'auto'
+ },
+ run: true
+ }
+ },
+ */
+ reloadr: {
+ test: [
+ 'test/*',
+ 'dist/*'
+ ]
+ },
+ server:{
+ port: 8000,
+ base: '.'
+ }
+ });
+ //grunt.loadNpmTasks('grunt-mocha');
+ grunt.loadNpmTasks('grunt-reloadr');
+ grunt.registerTask('default', 'lint concat min');
+ grunt.registerTask('dev', 'server reloadr watch:main');
+ //grunt.registerTask('ci', 'server watch:ci');
+};
View
7 lib/copyright.js
@@ -1,7 +0,0 @@
-/*!
- * jquery.framejax
- * v0.1.1
- * https://github.com/jgallen23/framejax
- * copyright JGA 2012
- * MIT License
- */
Please sign in to comment.
Something went wrong with that request. Please try again.