Permalink
Browse files

Use gruntlerplate https://github.com/zachleat/gruntlerplate

  • Loading branch information...
zachleat committed Apr 22, 2014
1 parent 4f5e0b9 commit 60dc6db97c1c348ec9d6b5a1d09908fa84f5fa87
View
@@ -0,0 +1,3 @@
+{
+ "adjoining-classes": false
+}
View
@@ -0,0 +1,17 @@
+# http://editorconfig.org
+root = true
+
+[*]
+indent_style = space
+indent_size = 2
+end_of_line = lf
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = true
+
+[*.md]
+trim_trailing_whitespace = false
+
+[grunt/**]
+indent_style = tab
+indent_size = 2
View
@@ -0,0 +1 @@
+* text=auto
View
@@ -1 +1,4 @@
node_modules/
+temp/
+dist/
+bower_components/
View
@@ -0,0 +1,37 @@
+{
+ "curly": true,
+ "eqeqeq": true,
+ "eqnull": true,
+ "forin": false,
+ "immed": true,
+ "indent": 2,
+ "latedef": true,
+ "noarg": true,
+ "noempty": true,
+ "nonew": true,
+ "undef": true,
+ "unused": true,
+ "strict": true,
+ "trailing": true,
+ "browser": true,
+ "devel": true,
+ "jquery": true,
+ "node": true,
+ "predef": {
+ "asyncTest": false,
+ "deepEqual": false,
+ "equal": false,
+ "expect": false,
+ "module": false,
+ "notDeepEqual": false,
+ "notEqual": false,
+ "notStrictEqual": false,
+ "ok": false,
+ "QUnit": false,
+ "raises": false,
+ "start": false,
+ "stop": false,
+ "strictEqual": false,
+ "test": false
+ }
+}
View
@@ -1,7 +1,10 @@
language: node_js
node_js:
- - 0.10
+ - '0.10'
before_script:
- npm install -g grunt-cli
- - npm install grunt grunt-contrib-qunit
-script: grunt test -v
+ - npm install
+ - npm install bower
+ - bower install
+script: grunt -v
+
View
@@ -1,13 +1,35 @@
-module.exports = function(grunt) {
- grunt.initConfig({
- qunit: {
- files: ['test/*.html']
- }
- });
-
- grunt.loadNpmTasks('grunt-contrib-qunit');
-
- // A convenient task alias.
- grunt.registerTask('test', 'qunit');
+module.exports = function( grunt ) {
+ 'use strict';
+
+ function loadConfig( path ) {
+ var glob = require( "glob" ),
+ object = {},
+ key;
+
+ glob.sync( "*", {
+ cwd: path
+ }).forEach(function( option ) {
+ key = option.replace( /\.js$/, "" );
+ if( !object.hasOwnProperty( key ) ) {
+ object[ key ] = {};
+ }
+ grunt.util._.extend( object[ key ], require( path + option ) );
+ });
+
+ return object;
+ }
+
+ var config = {
+ pkg: grunt.file.readJSON( "package.json" ),
+ banner: grunt.file.read( "grunt/banner.txt" )
+ };
+
+ grunt.util._.merge( config, loadConfig( "./grunt/config-lib/" ), loadConfig( "./grunt/config/" ) );
+
+ grunt.initConfig( config );
+
+ require( "matchdep" ).filterDev( "grunt-*" ).forEach( grunt.loadNpmTasks );
+
+ grunt.loadTasks( "grunt" );
};
Oops, something went wrong.

0 comments on commit 60dc6db

Please sign in to comment.