diff --git a/.nodelint.json b/.nlint.json similarity index 54% rename from .nodelint.json rename to .nlint.json index d91a693..aee77b6 100644 --- a/.nodelint.json +++ b/.nlint.json @@ -1,10 +1,13 @@ { "ignore": [ + ".git/", "node_modules/" ], "linters": { "jshint": { - "boss": true + "node": true, + "boss": true, + "undef": true } } } diff --git a/README.md b/README.md index af4ae08..36bbf4b 100644 --- a/README.md +++ b/README.md @@ -68,9 +68,9 @@ Types convert option values to useful js objects. They are defined along with ea * **string**: Ensure values are strings * **path**: Converts value into a fully resolved path. -* **int**: Converts value into an integer +* **integer | int**: Converts value into an integer * **float**: Converts value into a float number -* **boolean**: Converts value into a boolean object. 'true' and '1' are converted to true, everything else is false. +* **boolean | bool**: Converts value into a boolean object. 'true' and '1' are converted to true, everything else is false. * **csv**: Converts value into an array by splitting on comma's. * **list**: Allows for option to be defined multiple times, and each value added to an array * **[list|csv],[type]**: Combo type that allows you to create a list or csv and convert each individual value into a type. diff --git a/build/test.js b/build/test.js index 674033e..904597a 100644 --- a/build/test.js +++ b/build/test.js @@ -1,5 +1,4 @@ -global.munit = require( 'munit' ); -global.argv = require( '../' ); +var munit = global.munit = require( 'munit' ); // Only stop test suite when running make test if ( ! process.env.NODE_TEST_NO_SKIP ) { @@ -8,6 +7,5 @@ if ( ! process.env.NODE_TEST_NO_SKIP ) { // Render all tests munit.render( __dirname + '/../test/', { - junit: __dirname + '/results/', - junitPrefix: process.version.replace( /\./g, '_' ) + results: __dirname + '/results/' }); diff --git a/package.json b/package.json index e2281f3..61c2d51 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "url": "http://codenothing.github.com/argv/", "keywords": [ "cli", "argv", "options" ], "author": "Corey Hart ", - "version": "0.0.2", + "version": "0.0.3pre", "main": "./index.js", "engines": { "node": ">=0.6.10" @@ -15,7 +15,7 @@ "dependencies": { }, "devDependencies": { - "nlint": "0.0.4", - "munit": "0.0.5" + "nlint": "0.0.6", + "munit": "0.0.7" } } diff --git a/test/.nlint.json b/test/.nlint.json new file mode 100644 index 0000000..194d476 --- /dev/null +++ b/test/.nlint.json @@ -0,0 +1,10 @@ +{ + "linters": { + "jshint": { + "predef": { + "munit": false, + "argv": false + } + } + } +} diff --git a/test/munit.js b/test/munit.js new file mode 100644 index 0000000..28e2fff --- /dev/null +++ b/test/munit.js @@ -0,0 +1 @@ +global.argv = require( '../' );