Skip to content

Commit

Permalink
example require when not cloning repo
Browse files Browse the repository at this point in the history
  • Loading branch information
patapizza committed Apr 14, 2016
1 parent c93f711 commit a753676
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/joke.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// Joke example
// See https://wit.ai/patapizza/example-joke

// When not cloning the `node-wit` repo, replace the `require` like so:
// const Wit = require('node-wit').Wit;
const Wit = require('../').Wit;

const token = (() => {
Expand Down
3 changes: 3 additions & 0 deletions examples/messenger.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
const bodyParser = require('body-parser');
const express = require('express');
const request = require('request');

// When not cloning the `node-wit` repo, replace the `require` like so:
// const Wit = require('node-wit').Wit;
const Wit = require('../').Wit;

// Webserver parameter
Expand Down
2 changes: 2 additions & 0 deletions examples/quickstart.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// Quickstart example
// See https://wit.ai/l5t/Quickstart

// When not cloning the `node-wit` repo, replace the `require` like so:
// const Wit = require('node-wit').Wit;
const Wit = require('../').Wit;

const token = (() => {
Expand Down
2 changes: 2 additions & 0 deletions examples/template.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict';

// When not cloning the `node-wit` repo, replace the `require` like so:
// const Wit = require('node-wit').Wit;
const Wit = require('../').Wit;

const token = (() => {
Expand Down

0 comments on commit a753676

Please sign in to comment.