Permalink
Browse files

Update from node-template

Refresh for cohort 016
  • Loading branch information...
racheltstevens
racheltstevens committed Feb 27, 2017
1 parent 59c8f2f commit 9ac7585dcc36482e37f858063e9c9c963228b198
Showing with 54 additions and 200 deletions.
  1. +11 −185 .gitignore
  2. +1 −1 Gruntfile.js
  3. +21 −0 bin/index.js
  4. +3 −2 grunt/aliases.json
  5. +0 −8 grunt/mochaTest.json
  6. +5 −0 grunt/mochacli.json
  7. +5 −0 grunt/nodemon.json
  8. +1 −0 grunt/paths.json
  9. +7 −4 package.json
@@ -1,61 +1,15 @@

# Created by https://www.gitignore.io/api/node,osx,linux,windows,ruby,node,rails,express,ember
# Created by https://www.gitignore.io/api/macos,linux

### Node ###
# Logs
logs
*.log
npm-debug.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules
jspm_packages

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history


### OSX ###
### macOS ###
*.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
@@ -64,7 +18,6 @@ Icon
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
@@ -85,80 +38,12 @@ Temporary Items
# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

### 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


### Ruby ###
*.gem
*.rbc
/.config
/coverage/
/InstalledFiles
/pkg/
/spec/reports/
/spec/examples.txt
/test/tmp/
/test/version_tmp/
/tmp/

# Used by dotenv library to load environment variables.
# .env

## Specific to RubyMotion:
.dat*
.repl_history
build/
*.bridgesupport
build-iPhoneOS/
build-iPhoneSimulator/

## Specific to RubyMotion (use of CocoaPods):
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# vendor/Pods/

## Documentation cache and generated files:
/.yardoc/
/_yardoc/
/doc/
/rdoc/

## Environment normalization:
/.bundle/
/vendor/bundle
/lib/bundler/man/

# for a library or gem, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# Gemfile.lock
# .ruby-version
# .ruby-gemset

# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc
# End of https://www.gitignore.io/api/macos,linux

# Created by https://www.gitignore.io/api/node

### Node ###
# Logs
@@ -203,70 +88,11 @@ jspm_packages
# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

### Rails ###
*.rbc
capybara-*.html
.rspec
/log
/tmp
/db/*.sqlite3
/db/*.sqlite3-journal
/public/system
/coverage/
/spec/tmp
**.orig
rerun.txt
pickle-email-*.html

# TODO Comment out this rule if you are OK with secrets being uploaded to the repo
config/initializers/secret_token.rb

# Only include if you have production secrets in this file, which is no longer a Rails default
# config/secrets.yml

# dotenv
# TODO Comment out this rule if environment variables can be committed
.env

## Environment normalization:
/.bundle
/vendor/bundle

# these should all be checked in to normalize the environment:
# Gemfile.lock, .ruby-version, .ruby-gemset

# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc

# if using bower-rails ignore default bower_components path bower.json files
/vendor/assets/bower_components
*.bowerrc
bower.json

# Ignore pow environment settings
.powenv

# Ignore Byebug command history file.
.byebug_history


#!! ERROR: express is undefined. Use list command to see defined gitignore types !!#

### Ember ###
# see https://github.com/ember-cli/ember-cli/blob/master/blueprints/app/files/gitignore
# compiled output
/dist
/tmp
# Yarn Integrity file
.yarn-integrity

# dependencies
/node_modules
/bower_components

# misc
/.sass-cache
/connect.lock
/coverage/*
/libpeerconnection.log
npm-debug.log
testem.log
# End of https://www.gitignore.io/api/node
@@ -4,7 +4,7 @@
// http://www.html5rocks.com/en/tutorials/tooling/supercharging-your-gruntfile/
// discuss how to break up gruntfiles

module.exports = function(grunt) {
module.exports = function (grunt) {

require('time-grunt')(grunt);
require('load-grunt-config')(grunt);
@@ -0,0 +1,21 @@
#!/usr/bin/env node
'use strict';

const example = require('../lib/example');

const success = (data) => console.log('data', data);
const failure = (error) => console.error('error', error);

success(example.sync(false));

example.async(false, (error, data) => {
if (error) {
failure(error);
} else {
success(data);
}
});

example.promise(false)
.then(success)
.catch(failure);
@@ -1,6 +1,7 @@
{
"default": ["nag"],
"default": ["nag", "test"],
"nag": ["jshint", "jsonlint:all", "jscs:status"],
"reformat": ["jscs:write"],
"test": ["mochaTest:test"]
"server": ["nodemon:server"],
"test": ["mochacli:all"]
}

This file was deleted.

Oops, something went wrong.
@@ -0,0 +1,5 @@
{
"options": {
},
"all": ["<%= paths.src.spec %> "]
}
@@ -0,0 +1,5 @@
{
"server": {
"script": "bin/index.js"
}
}
@@ -1,6 +1,7 @@
{
"src": {
"all": [
"bin/**/*.js",
"lib/**/*.js",
"spec/**/*.spec.js"
],
@@ -1,7 +1,10 @@
{
"name": "ga-wdi-boston.node-api-promises",
"version": "0.0.1",
"version": "0.1.0",
"private": true,
"scripts": {
"start": "node bin/index.js"
},
"license": {
"software": "GNU GPLv3",
"content": "CC­BY­NC­SA 4.0"
@@ -12,13 +15,13 @@
"chai-as-promised": "^6.0.0",
"grunt": "^1.0.1",
"grunt-concurrent": "^2.3.1",
"grunt-contrib-jshint": "^1.0.0",
"grunt-contrib-jshint": "^1.1.0",
"grunt-jscs": "^3.0.1",
"grunt-jsonlint": "^1.1.0",
"grunt-mocha-test": "^0.13.2",
"grunt-mocha-cli": "^3.0.0",
"grunt-nodemon": "^0.4.2",
"load-grunt-config": "^0.19.2",
"mocha": "^3.1.2",
"mocha": "^3.2.0",
"time-grunt": "^1.4.0"
}
}

0 comments on commit 9ac7585

Please sign in to comment.