Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
hampsterx committed Apr 21, 2016
1 parent ecda499 commit f65500b
Show file tree
Hide file tree
Showing 10 changed files with 89 additions and 100 deletions.
2 changes: 1 addition & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var browserify = require('browserify')
var target = "dist/predicthq.js"

var b = browserify({standalone: 'PredictHQ', debug:false, expose: 'deps'})
b.add('./index.js')
b.add('./src/client.js')

b.transform('babelify')

Expand Down
166 changes: 77 additions & 89 deletions dist/predicthq.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/predicthq.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"test": "NODE_ENV=test node_modules/mocha/bin/mocha --require babel-core/register test",
"test_browser": "ACCESS_TOKEN=$(node -r dotenv/config -e 'console.log(process.env.ACCESS_TOKEN)'); ENDPOINT_URL=$(node -r dotenv/config -e 'console.log(process.env.ENDPOINT_URL)'); node_modules/mocha-phantomjs/bin/mocha-phantomjs --web-security no -b -R dot test/browser/runner.html?endpoint=${ENDPOINT_URL}\\&token=${ACCESS_TOKEN}",
"update": "node node_modules/npm-check-updates/bin/npm-check-updates --upgradeAll",
"build": "NODE_ENV=production node node_modules/browserify/bin/cmd.js index.js -t babelify | node_modules/uglify-js/bin/uglifyjs -o dist/predicthq.js; node build.js",
"build": "NODE_ENV=production node node_modules/browserify/bin/cmd.js src/client.js -t babelify | node_modules/uglify-js/bin/uglifyjs -o dist/predicthq.js; node build.js",
"list_lodash_methods": "node_modules/lodash-modularize/bin/lodash-modularize src/**/**/*.js --list -g _",
"lodash": "lodash_methods=$(npm run --silent list_lodash_methods | sed -e \"s/\\x1b\\[.\\{1,5\\}m//g\"); node_modules/lodash-cli/bin/lodash -o dist/lodash.custom.js include=$lodash_methods",
"coverage": "node_modules/.bin/babel-node node_modules/babel-istanbul/lib/cli.js cover node_modules/mocha/bin/_mocha -- test",
Expand Down
1 change: 1 addition & 0 deletions src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class Client {

}

export default Client
export {
Client
}
2 changes: 1 addition & 1 deletion test/test_accounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ _.extend(global, require('./shared'))

import {logger} from "../src/utils"

import Client from '../index'
import Client from '../src/client'

// Logging Levels
logger.getLogger("predicthq.client").setLevel('DEBUG')
Expand Down
2 changes: 1 addition & 1 deletion test/test_events_search.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ _.extend(global, require('./shared'))

import {logger} from "../src/utils"

import Client from '../index'
import Client from '../src/client'

// Logging Levels
logger.getLogger("predicthq.client").setLevel('DEBUG')
Expand Down
2 changes: 1 addition & 1 deletion test/test_events_validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import _ from "lodash"
_.extend(global, require('./shared'))

import Client from '../index'
import Client from '../src/client'

let c = new Client()

Expand Down
2 changes: 1 addition & 1 deletion test/test_places.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ _.extend(global, require('./shared'))

import {logger} from "../src/utils"

import Client from '../index'
import Client from '../src/client'

// Logging Levels
logger.getLogger("predicthq.client").setLevel('DEBUG')
Expand Down
2 changes: 1 addition & 1 deletion test/test_users.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ _.extend(global, require('./shared'))

import {logger} from "../src/utils"

import Client from '../index'
import Client from '../src/client'

// Logging Levels
logger.getLogger("predicthq.client").setLevel('DEBUG')
Expand Down

0 comments on commit f65500b

Please sign in to comment.