Browse Source

Upgrading packages munit:0.0.7, nlint:0.0.6

develop
Corey Hart 11 years ago
parent
commit
3504e22304
  1. 5
      .nlint.json
  2. 4
      README.md
  3. 6
      build/test.js
  4. 6
      package.json
  5. 10
      test/.nlint.json
  6. 1
      test/munit.js

5
.nodelint.json → .nlint.json

@ -1,10 +1,13 @@
{
"ignore": [
".git/",
"node_modules/"
],
"linters": {
"jshint": {
"boss": true
"node": true,
"boss": true,
"undef": true
}
}
}

4
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.

6
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/'
});

6
package.json

@ -4,7 +4,7 @@
"url": "http://codenothing.github.com/argv/",
"keywords": [ "cli", "argv", "options" ],
"author": "Corey Hart <[email protected]>",
"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"
}
}

10
test/.nlint.json

@ -0,0 +1,10 @@
{
"linters": {
"jshint": {
"predef": {
"munit": false,
"argv": false
}
}
}
}

1
test/munit.js

@ -0,0 +1 @@
global.argv = require( '../' );
Loading…
Cancel
Save