Commit 696df41be4f33081ef1725068283ee4357daf764
got tests passing (made manual changes to ava, not sure what's up)
Michael Williams committed on 4/11/2016, 12:15:11 AMParent: 73af4651aa5e2584c27e681ab2bfcfe2fdeb1cb3
Files changed
api.js | changed |
features/support/hooks.js | changed |
package.json | changed |
render.js | changed |
static.js | changed |
cmrh.js | added |
api.js | ||
---|---|---|
@@ -1,5 +1,5 @@ | ||
1 | -require('babel-core/register') | |
1 | +require('babel-register') | |
2 | 2 | |
3 | 3 | const config = require('app/config') |
4 | 4 | const createServer = require('app/api').createServer |
5 | 5 | const Url = require('url') |
features/support/hooks.js | ||
---|---|---|
@@ -1,6 +1,6 @@ | ||
1 | -require('babel-core/register') | |
2 | -require('css-modules-require-hook') | |
1 | +require('css-modules-require-hook')({}) | |
2 | +require('babel-register') | |
3 | 3 | |
4 | 4 | const _ = require('lodash') |
5 | 5 | const parallel = require('run-parallel') |
6 | 6 |
package.json | ||
---|---|---|
@@ -37,11 +37,12 @@ | ||
37 | 37 | "files": [ |
38 | 38 | "**/*.spec.js" |
39 | 39 | ], |
40 | 40 | "require": [ |
41 | - "babel-core/register", | |
42 | - "css-modules-require-hook" | |
43 | - ] | |
41 | + "./cmrh", | |
42 | + "babel-register" | |
43 | + ], | |
44 | + "babel": "inherit" | |
44 | 45 | }, |
45 | 46 | "repository": { |
46 | 47 | "type": "git", |
47 | 48 | "url": "git+https://github.com/enspiral-craftworks/business-stack.git" |
@@ -69,9 +70,9 @@ | ||
69 | 70 | "node": "^4.0.0", |
70 | 71 | "npm": "^3.0.0" |
71 | 72 | }, |
72 | 73 | "devDependencies": { |
73 | - "ava": "^0.14.0", | |
74 | + "ava": "^0.13.0", | |
74 | 75 | "babel-plugin-react-transform": "^2.0.0", |
75 | 76 | "browserify-hmr": "^0.3.1", |
76 | 77 | "cucumber": "^0.10.2", |
77 | 78 | "ecstatic-lr": "^1.0.1", |
@@ -98,8 +99,9 @@ | ||
98 | 99 | "babel-plugin-transform-object-rest-spread": "^6.1.18", |
99 | 100 | "babel-plugin-transform-runtime": "^6.5.2", |
100 | 101 | "babel-preset-es2015": "^6.1.18", |
101 | 102 | "babel-preset-react": "^6.1.18", |
103 | + "babel-register": "^6.7.2", | |
102 | 104 | "babel-runtime": "^6.3.19", |
103 | 105 | "babelify": "^7.2.0", |
104 | 106 | "body-parser": "^1.15.0", |
105 | 107 | "browserify": "github:ahdinosaur/node-browserify", |
render.js | ||
---|---|---|
@@ -1,6 +1,6 @@ | ||
1 | -require('babel-core/register') | |
2 | -require('css-modules-require-hook') | |
1 | +require('css-modules-require-hook')({}) | |
2 | +require('babel-register') | |
3 | 3 | |
4 | 4 | const config = require('app/config') |
5 | 5 | const createServer = require('app/render').createServer |
6 | 6 | const Url = require('url') |
static.js | ||
---|---|---|
@@ -1,5 +1,5 @@ | ||
1 | -require('babel-core/register') | |
1 | +require('babel-register') | |
2 | 2 | |
3 | 3 | const config = require('app/config') |
4 | 4 | const createServer = require('app/static').createServer |
5 | 5 | const Url = require('url') |
cmrh.js | ||
---|---|---|
@@ -1,0 +1,1 @@ | ||
1 | +require('css-modules-require-hook')({}) |
Built with git-ssb-web