From c6a64c0cb0b82b856b3bdca38dd60929869b795c Mon Sep 17 00:00:00 2001 From: Gabriel Montalvo Date: Thu, 31 Mar 2016 00:37:38 -0400 Subject: [PATCH] super tiny cli for tiny compiler? This also adds a barebones package.json file and .gitignore. --- .gitignore | 76 ++++++++++++++++++++++++++++++++++++++ bin/super-tiny-compiler.js | 8 ++++ package.json | 19 ++++++++++ 3 files changed, 103 insertions(+) create mode 100644 .gitignore create mode 100644 bin/super-tiny-compiler.js create mode 100644 package.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..20d2d5c --- /dev/null +++ b/.gitignore @@ -0,0 +1,76 @@ +# Logs +logs +*.log + +# Runtime data +pids +*.pid +*.seed + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Compiled binary addons (http://nodejs.org/api/addons.html) +build/Release + +# Dependency directory +# Commenting this out is preferred by some people, see +# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git- +node_modules + +# Users Environment Variables +.lock-wscript + +# ========================= +# Operating System Files +# ========================= + +# OSX +# ========================= + +.DS_Store +.AppleDouble +.LSOverride + +# Thumbnails +._* + +# Files that might appear on external disk +.Spotlight-V100 +.Trashes + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +# Windows +# ========================= + +# Windows image file caches +Thumbs.db +ehthumbs.db + +# Folder config file +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msm +*.msp + +# Windows shortcuts +*.lnk + diff --git a/bin/super-tiny-compiler.js b/bin/super-tiny-compiler.js new file mode 100644 index 0000000..3c1d548 --- /dev/null +++ b/bin/super-tiny-compiler.js @@ -0,0 +1,8 @@ +#!/usr/bin/env node + +var meow = require('meow'); +var superTinyCompiler = require('../super-tiny-compiler'); +var cli = meow(); + +console.log(superTinyCompiler.compiler(cli.input[0])); + diff --git a/package.json b/package.json new file mode 100644 index 0000000..a48b2a2 --- /dev/null +++ b/package.json @@ -0,0 +1,19 @@ +{ + "name": "the-super-tiny-compiler", + "description": "Possibly the smallest compiler ever", + "scripts": { + "test": "node ./test" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/thejameskyle/the-super-tiny-compiler.git" + }, + "license": "SEE LICENSE IN ./LICENSE", + "bugs": { + "url": "https://github.com/thejameskyle/the-super-tiny-compiler/issues" + }, + "homepage": "https://github.com/thejameskyle/the-super-tiny-compiler#readme", + "dependencies": { + "meow": "^3.7.0" + } +}