Permalink
Browse files

0.4.0 Release updates

- Updated packages to support 0.4.0 compatable versions
- Added peerDependencies to enforce version 0.4.0 grunt
  • Loading branch information...
1 parent 7423c1a commit 7f9290ab349b4964ef7499235585d0e4c5593e69 @indieisaconcept committed Feb 18, 2013
View
@@ -0,0 +1,14 @@
+{
+ "curly": true,
+ "eqeqeq": true,
+ "immed": true,
+ "latedef": true,
+ "newcap": true,
+ "noarg": true,
+ "sub": true,
+ "undef": true,
+ "boss": true,
+ "eqnull": true,
+ "node": true,
+ "es5": true
+}
View
@@ -13,25 +13,14 @@ module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
- lint: {
- all: ['Gruntfile.js', 'tasks/**/*.js', '<%= nodeunit.tests %>']
- },
-
jshint: {
+
options: {
- curly: true,
- eqeqeq: true,
- immed: true,
- latedef: true,
- newcap: true,
- noarg: true,
- sub: true,
- undef: true,
- boss: true,
- eqnull: true,
- node: true,
- es5: true
- }
+ jshintrc: '.jshintrc'
+ },
+
+ all_files: ['Gruntfile.js', 'tasks/**/*.js', '<%= nodeunit.tests %>']
+
},
// Before generating any new files, remove any previously-created files.
@@ -98,14 +87,12 @@ module.exports = function(grunt) {
// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-contrib-clean');
+ grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-nodeunit');
- // Whenever the "test" task is run, first clean the "tmp" dir, then run this
- // plugin's task(s), then test the result.
- //grunt.renameTask('test', 'nodeunit');
grunt.registerTask('test', 'clean styleguide nodeunit'.split(' '));
// By default, lint and run all tests.
- grunt.registerTask('default', 'lint test'.split(' '));
+ grunt.registerTask('default', 'jshint test'.split(' '));
};
View
@@ -242,6 +242,10 @@ In lieu of a formal styleguide, take care to maintain the existing coding style.
## Release History
+### 0.3.0
+
++ Grunt 0.4.0 support (~0.3.0 no longer supported)
+
### 0.2.0
+ Revised documentation
View
@@ -23,15 +23,19 @@
],
"main": "Gruntfile.js",
"engines": {
- "node": ">= 0.6.0"
+ "node": ">= 0.8.0"
},
"scripts": {
"test": "grunt test"
},
"devDependencies": {
- "grunt-contrib-nodeunit": "~0.1.0",
- "grunt-contrib-clean": "~0.3.1",
- "grunt": "0.4.0a"
+ "grunt": "~0.4.0",
+ "grunt-contrib-clean": "~0.4.0",
+ "grunt-contrib-jshint": "~0.1.1",
+ "grunt-contrib-nodeunit": "~0.1.2"
+ },
+ "peerDependencies": {
+ "grunt": "~0.4.0"
},
"dependencies": {
"grunt-lib-contrib": "~0.3.0",
View
@@ -137,7 +137,7 @@ module.exports = function(grunt) {
done = this.async(),
generator,
framework,
- files = this.file;
+ files = this.files;
framework = styleguide.framework || {
name: 'styledocco'
@@ -166,7 +166,7 @@ module.exports = function(grunt) {
if (filePath) {
pathExists = grunt.file.exists(filePath);
- styleguide.template[key] = pathExists ? filePath : grunt.file.expandFiles(filePath);
+ styleguide.template[key] = pathExists ? filePath : grunt.file.expand(filePath);
} else {
styleguide.template[key] = undefined;
}
@@ -186,15 +186,15 @@ module.exports = function(grunt) {
grunt.verbose.writeflags(styleguide, 'options');
- async.forEachSeries([files], function(file, next) {
+ async.forEachSeries(files, function(file, next) {
var files = file.src;
// rationalize file object
styleguide.files = {
file: file,
- src: files.length > 0 && files || grunt.file.exists(file.src) && file.src,
+ src: files.length > 0 && files || grunt.file.exists(file.orig.src) && file.orig.src,
dest: file.dest,
base: helpers.findBasePath(files)
@@ -206,7 +206,7 @@ module.exports = function(grunt) {
// identify the preporcess to use
styleguide.preprocessor = plugin.util.get.preprocessor(files);
- if(grunt.util._.isEmpty(styleguide.files.src)) {
+ if(_.isEmpty(styleguide.files.src)) {
grunt.fail.warn('Unable to generate styleguide; no valid source files were found.');
}
@@ -249,7 +249,7 @@ <h1 class="kss-title kss-title-main"> Overview </h1>
<script src="public/prettify.js"></script>
- <script src="../../../../templates/kss/public/prettify.js?v=1351123564000"></script>
+ <script src="../../../../templates/kss/public/prettify.js?v=1354621336000"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
@@ -150,7 +150,7 @@ <h1 class="kss-title"><span class="kss-ref">1.1</span> - Buttons</h1>
<script src="public/prettify.js"></script>
- <script src="../../../../templates/kss/public/prettify.js?v=1351123564000"></script>
+ <script src="../../../../templates/kss/public/prettify.js?v=1354621336000"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
@@ -200,7 +200,7 @@ <h1 class="kss-title"><span class="kss-ref">2.1.2</span> - Label/Textbox Pairs</
<script src="public/prettify.js"></script>
- <script src="../../../../templates/kss/public/prettify.js?v=1351123564000"></script>
+ <script src="../../../../templates/kss/public/prettify.js?v=1354621336000"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 7f9290a

Please sign in to comment.