Skip to content

Commit

Permalink
Skeleton for app
Browse files Browse the repository at this point in the history
  • Loading branch information
pjcozzi committed Oct 3, 2015
1 parent db96a61 commit e6eac0b
Show file tree
Hide file tree
Showing 8 changed files with 77 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
@@ -0,0 +1,3 @@
**/node_modules
.DS_Store
Thumbs.db
7 changes: 7 additions & 0 deletions LICENSE.md
@@ -0,0 +1,7 @@
Copyright 2015 Analytical Graphics, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
5 changes: 5 additions & 0 deletions bin/wetzel.js
@@ -0,0 +1,5 @@
#!/usr/bin/env node
"use strict";
var generateMarkdown = require('../');

process.stdout.write(generateMarkdown());
2 changes: 2 additions & 0 deletions index.js
@@ -0,0 +1,2 @@
"use strict";
module.exports = require('./lib/generateMarkdown');
11 changes: 11 additions & 0 deletions lib/defaultValue.js
@@ -0,0 +1,11 @@
"use strict";
var defined = require('./defined');

module.exports = defaultValue;

function defaultValue(a, b) {
if (defined(a)) {
return a;
}
return b;
}
7 changes: 7 additions & 0 deletions lib/defined.js
@@ -0,0 +1,7 @@
"use strict";

module.exports = defined;

function defined(value) {
return (value !== undefined) && (value !== null);
}
9 changes: 9 additions & 0 deletions lib/generateMarkdown.js
@@ -0,0 +1,9 @@
"use strict";
var defined = require('./defined');
var defaultValue = require('./defaultValue');

module.exports = generateMarkdown;

function generateMarkdown() {
return 'generateMarkdown';
}
33 changes: 33 additions & 0 deletions package.json
@@ -0,0 +1,33 @@
{
"name": "wetzel",
"version": "0.0.1",
"description": "Generate Markdown documentation from JSON Schema",
"license": "Apache-2.0",
"author": {
"name": "Patrick Cozzi",
"email": "pcozzi@agi.com",
"url": "https://twitter.com/pjcozzi"
},
"keywords": [
"json schema",
"markdown"
],
"homepage": "https://github.com/AnalyticalGraphicsInc/wetzel",
"repository": {
"type": "git",
"url": "git@github.com:AnalyticalGraphicsInc/wetzel.git"
},
"bugs": {
"url": "https://github.com/AnalyticalGraphicsInc/wetzel/issues"
},
"scripts": {
"jshint": "./node_modules/jshint/bin/jshint *.js **/*.js --exclude build/**/*.js"
},
"directories": {
"bin": "./bin",
"lib": "./lib"
},
"devDependencies": {
"jshint": "^2.6.0"
}
}

0 comments on commit e6eac0b

Please sign in to comment.