commit f389e84fd905a64821643faf1a234a8e533a92af Author: deltreey Date: Thu Jul 16 01:14:46 2015 -0400 just the basic repo stuff diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1a815a8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.swp +.DS_Store +node_modules/ +npm-debug.log diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 0000000..efa28d6 --- /dev/null +++ b/.jshintrc @@ -0,0 +1,16 @@ +{ + "boss": true, + "curly": true, + "eqeqeq": true, + "eqnull": true, + "immed": true, + "latedef": true, + "mocha" : true, + "newcap": true, + "noarg": true, + "node": true, + "sub": true, + "undef": true, + "unused": true, + "esnext": true +} diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..6e5919d --- /dev/null +++ b/.travis.yml @@ -0,0 +1,3 @@ +language: node_js +node_js: + - "0.10" diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..a8fdd98 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,72 @@ +'use strict'; +module.exports = function (grunt) { + // Show elapsed time at the end + require('time-grunt')(grunt); + // Load all grunt tasks + require('load-grunt-tasks')(grunt); + + grunt.initConfig({ + jshint: { + options: { + jshintrc: '.jshintrc', + reporter: require('jshint-stylish') + }, + gruntfile: { + src: ['Gruntfile.js'] + }, + js: { + src: ['*.js'] + }, + test: { + src: ['test/**/*.js'] + } + }, + jsdoc: { + dist: { + src: ['index.js', 'test/*.js', 'README.md'], + options: { + destination: 'documentation', + template : 'node_modules/grunt-jsdoc/node_modules/ink-docstrap/template', + configure : 'jsdoc.conf.json' + } + } + }, + mochacli: { + options: { + reporter: 'nyan', + 'harmony-generators': true + }, + all: ['test/*.js'] + }, + watch: { + gruntfile: { + files: '<%= jshint.gruntfile.src %>', + tasks: ['jshint:gruntfile'] + }, + js: { + files: '<%= jshint.js.src %>', + tasks: ['jshint:js', 'mochacli'] + }, + test: { + files: '<%= jshint.test.src %>', + tasks: ['jshint:test', 'mochacli'] + } + }, + versioner: { + options: { + gitPush: false, + gitPushTag: false, + tagPrefix: '' + }, + default: { + files: { + './package.json': ['./package.json'] + } + } + } + }); + + grunt.registerTask('default', ['jshint', 'mochacli']); + grunt.registerTask('document', ['jsdoc']); + grunt.registerTask('update', ['document', 'versioner:default']); +}; diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..96b3e55 --- /dev/null +++ b/LICENSE @@ -0,0 +1,25 @@ +Copyright (c) 2015, Ted +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. Neither the name of Ted nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY TED ''AS IS'' AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL TED BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/jsdoc.conf.json b/jsdoc.conf.json new file mode 100644 index 0000000..f5c2449 --- /dev/null +++ b/jsdoc.conf.json @@ -0,0 +1,27 @@ +{ + "tags": { + "allowUnknownTags": true + }, + "plugins": ["plugins/markdown"], + "templates": { + "cleverLinks": false, + "monospaceLinks": false, + "dateFormat": "ddd MMM Do YYYY", + "outputSourceFiles": true, + "outputSourcePath": true, + "systemName": "wildstring", + "footer": "", + "copyright": "DocStrap Copyright © 2012-2014 The contributors to the JSDoc3 and DocStrap projects.", + "navType": "vertical", + "theme": "cosmo", + "linenums": true, + "collapseSymbols": false, + "inverseNav": true, + "highlightTutorialCode": true, + "protocol": "html://" + }, + "markdown": { + "parser": "gfm", + "hardwrap": true + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..b0294b2 --- /dev/null +++ b/package.json @@ -0,0 +1,36 @@ +{ + "name": "wildstring", + "version": "0.0.0", + "description": "Simple String Wildcard Handling", + "main": "index.js", + "scripts": { + "test": "grunt" + }, + "repository": { + "type": "git", + "url": "https://github.com/deltreey/wildstring" + }, + "keywords": ["wildcard", "string", "interpolation"], + "author": { + "name":"Ted", + "email": "suicidolt@gmail.com", + "url": "https://github.com/deltreey" + }, + "license": "MIT", + "bugs": { + "url": "https://github.com/deltreey/wildstring/issues" + }, + "dependencies": {}, + "devDependencies": { + "grunt-cli": "^0.1.13", + "grunt-contrib-jshint": "^0.11.0", + "grunt-contrib-nodeunit": "^0.4.1", + "grunt-contrib-watch": "^0.6.1", + "grunt-jsdoc": "^0.6.7", + "grunt-mocha-cli": "^1.12.0", + "grunt-versioner": "^0.1.7", + "jshint-stylish": "^1.0.1", + "load-grunt-tasks": "^3.1.0", + "time-grunt": "^1.1.0" + } +}