Skip to content

Commit

Permalink
Merge pull request #2309 from Automattic/update/remove-shared-dir
Browse files Browse the repository at this point in the history
SSR: Remove shared directory
  • Loading branch information
ehg committed Jan 15, 2016
2 parents c67aa87 + 8388bce commit 0ed9283
Show file tree
Hide file tree
Showing 157 changed files with 163 additions and 168 deletions.
2 changes: 1 addition & 1 deletion CREDITS.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
#### client/components/tinymce/plugins/wptextpattern
#### client/lib/media/constants.js
#### client/post-editor/media-modal/markup.js
#### shared/lib/formatting/index.js
#### client/lib/formatting/index.js
```text
WordPress - Web publishing software
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RUN wget https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x6
ln -sf /usr/local/node/bin/node /usr/local/bin/ && \
rm node-v$NODE_VERSION-linux-x64.tar.gz

ENV NODE_PATH /calypso/server:/calypso/shared
ENV NODE_PATH /calypso/server:/calypso/client

# Install base npm packages to take advantage of the docker cache
COPY ./package.json /calypso/package.json
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ NODE_BIN := $(THIS_DIR)/node_modules/.bin
NODE ?= node
NPM ?= $(NODE) $(shell which npm)
BUNDLER ?= $(BIN)/bundler
SASS ?= $(NODE_BIN)/node-sass --include-path 'client:shared'
SASS ?= $(NODE_BIN)/node-sass --include-path 'client'
RTLCSS ?= $(NODE_BIN)/rtlcss
AUTOPREFIXER ?= $(NODE_BIN)/autoprefixer
RECORD_ENV ?= $(BIN)/record-env
Expand All @@ -27,7 +27,7 @@ ALL_DEVDOCS_JS ?= $(THIS_DIR)/server/devdocs/bin/generate-devdocs-index

# files used as prereqs
SASS_FILES := $(shell \
find client shared assets \
find client assets \
-type f \
-name '*.scss' \
)
Expand Down Expand Up @@ -58,7 +58,7 @@ CALYPSO_ENV ?= $(NODE_ENV)

export NODE_ENV := $(NODE_ENV)
export CALYPSO_ENV := $(CALYPSO_ENV)
export NODE_PATH := server:shared:.
export NODE_PATH := server:client:.

.DEFAULT_GOAL := install

Expand Down Expand Up @@ -111,7 +111,7 @@ i18n-lint:

# Skip files that are auto-generated
mixedindentlint: node_modules/mixedindentlint
@echo "$(JS_FILES)\n$(SASS_FILES)" | xargs $(NODE_BIN)/mixedindentlint --ignore-comments --exclude="client/config/index.js" --exclude="shared/components/gridicon/index.jsx"
@echo "$(JS_FILES)\n$(SASS_FILES)" | xargs $(NODE_BIN)/mixedindentlint --ignore-comments --exclude="client/config/index.js" --exclude="client/components/gridicon/index.jsx"

# keep track of the current CALYPSO_ENV so that it can be used as a
# prerequisite for other rules
Expand Down
2 changes: 1 addition & 1 deletion bin/gridiconFormatChecker
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fs.readFile( filename, 'utf8', function ( err, data ) {
if ( result !== '' ) {
console.error( result );
console.log( '\033[mValid gridiconsizes are ' + validIconSizes.join( 'px, ' ) + 'px' );
console.log( '\033[mIf you need any of those Gridicons to have a non-standard size, please, add \'nonStandardSize\' as a property. See https://github.com/Automattic/wp-calypso/tree/master/shared/components/gridicon#props \n' );
console.log( '\033[mIf you need any of those Gridicons to have a non-standard size, please, add \'nonStandardSize\' as a property. See https://github.com/Automattic/wp-calypso/tree/master/client/components/gridicon#props \n' );
process.exit( 1 );
} else {
process.exit( 0 );
Expand Down
2 changes: 1 addition & 1 deletion bin/run-all-tests
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ __cleanup() {
trap __cleanup SIGINT SIGTERM

# Run all tests
find {$BASEDIR/../client,$BASEDIR/../server,$BASEDIR/../shared} -name Makefile | run_test_fast
find {$BASEDIR/../client,$BASEDIR/../server} -name Makefile | run_test_fast
2 changes: 1 addition & 1 deletion client/auth/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ REPORTER ?= spec
MOCHA ?= ../../node_modules/.bin/mocha

test:
@NODE_ENV=test NODE_PATH=test:../../client:../../shared $(MOCHA) --compilers jsx:babel/register --reporter $(REPORTER)
@NODE_ENV=test NODE_PATH=test:../../client $(MOCHA) --compilers jsx:babel/register --reporter $(REPORTER)

.PHONY: test
2 changes: 1 addition & 1 deletion client/components/bulk-select/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ REPORTER ?= spec
NODE_BIN := $(shell npm bin)
MOCHA ?= ../../../node_modules/.bin/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := test:$(BASE_DIR)/client

test:
@NODE_ENV=test NODE_PATH=$(NODE_PATH) $(MOCHA) --compilers jsx:babel/register --reporter $(REPORTER)
Expand Down
2 changes: 1 addition & 1 deletion client/components/count/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ REPORTER ?= spec
NODE_BIN := $(shell npm bin)
MOCHA ?= ../../../node_modules/.bin/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := test:$(BASE_DIR)/client

test:
@NODE_ENV=test NODE_PATH=$(NODE_PATH) $(MOCHA) --compilers jsx:babel/register --reporter $(REPORTER)
Expand Down
2 changes: 1 addition & 1 deletion client/components/forms/counted-textarea/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ COMPILERS ?= jsx:babel/register
NODE_BIN := $(shell npm bin)
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := test:$(BASE_DIR)/client

# In order to simply stub modules, add test to the NODE_PATH
test:
Expand Down
2 changes: 1 addition & 1 deletion client/components/forms/form-phone-input/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ COMPILERS ?= jsx:babel/register
NODE_BIN := $(shell npm bin)
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := test:$(BASE_DIR)/client

# In order to simply stub modules, add test to the NODE_PATH
test:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion client/components/theme/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ COMPILERS ?= jsx:babel/register
NODE_BIN := $(shell npm bin)
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := test:$(BASE_DIR)/client

# In order to simply stub modules, add test to the NODE_PATH
test:
Expand Down
2 changes: 1 addition & 1 deletion client/components/themes-list/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ COMPILERS ?= jsx:babel/register
NODE_BIN := $(shell npm bin)
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/shared:$(BASE_DIR)/client
NODE_PATH := test:$(BASE_DIR)/client

# In order to simply stub modules, add test to the NODE_PATH
test:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ REPORTER ?= spec
NODE_BIN := $(shell npm bin)
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := test:$(BASE_DIR)/client

test:
@NODE_ENV=test NODE_PATH=$(NODE_PATH) $(MOCHA) --compilers js:babel/register --reporter $(REPORTER)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ REPORTER ?= spec
NODE_BIN := $(shell npm bin)
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := test:$(BASE_DIR)/client

test:
@NODE_ENV=test NODE_PATH=$(NODE_PATH) $(MOCHA) --compilers js:babel/register --reporter $(REPORTER)
Expand Down
2 changes: 1 addition & 1 deletion client/components/token-field/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ REPORTER ?= spec
NODE_BIN := $(shell npm bin)
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := test:$(BASE_DIR)/client

test:
@NODE_ENV=test NODE_PATH=$(NODE_PATH) $(MOCHA) --compilers jsx:babel/register --reporter $(REPORTER)
Expand Down
2 changes: 1 addition & 1 deletion client/devdocs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ COMPILERS ?= jsx:babel/register
NODE_BIN := $(shell npm bin)
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := test:$(BASE_DIR)/client

# In order to simply stub modules, add test to the NODE_PATH
test:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion client/lib/accept/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ REPORTER ?= spec
NODE_BIN := $(shell npm bin)
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := test:$(BASE_DIR)/client

test:
@NODE_ENV=test NODE_PATH=$(NODE_PATH) $(MOCHA) --compilers jsx:babel/register --reporter $(REPORTER)
Expand Down
2 changes: 1 addition & 1 deletion client/lib/ads/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ REPORTER ?= spec
NODE_BIN := $(shell npm bin)
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := test:$(BASE_DIR)/client

# In order to simply stub modules, add test to the NODE_PATH
test:
Expand Down
2 changes: 1 addition & 1 deletion client/lib/auth-code-request-store/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ REPORTER ?= spec
NODE_BIN := $(shell npm bin)
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := test:$(BASE_DIR)/client

# In order to simply stub modules, add test to the NODE_PATH
test:
Expand Down
2 changes: 1 addition & 1 deletion client/lib/cart-values/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ REPORTER ?= spec
NODE_BIN := $(shell npm bin)
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := test:$(BASE_DIR)/client

# In order to simply stub modules, add test to the NODE_PATH
test:
Expand Down
2 changes: 1 addition & 1 deletion client/lib/cart/store/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ REPORTER ?= spec
NODE_BIN := $(shell npm bin)
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := test:$(BASE_DIR)/client


# In order to simply stub modules, add test to the NODE_PATH
Expand Down
2 changes: 1 addition & 1 deletion client/lib/comment-like-store/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ REPORTER ?= spec
NODE_BIN := $(shell npm bin)
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := test:$(BASE_DIR)/client

# In order to simply stub modules, add test to the NODE_PATH
test:
Expand Down
2 changes: 1 addition & 1 deletion client/lib/comment-store/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ REPORTER ?= spec
NODE_BIN := $(shell npm bin)
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := test:$(BASE_DIR)/client

# In order to simply stub modules, add test to the NODE_PATH
test:
Expand Down
2 changes: 1 addition & 1 deletion client/lib/credit-card-details/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ REPORTER ?= spec
NODE_BIN := $(shell npm bin)
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := test:$(BASE_DIR)/client

# In order to simply stub modules, add test to the NODE_PATH
test:
Expand Down
2 changes: 1 addition & 1 deletion client/lib/domains/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
NODE_BIN := $(shell npm bin)
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := test:$(BASE_DIR)/client
COMPILERS ?= js:babel/register
REPORTER ?= spec
UI ?= bdd
Expand Down
2 changes: 1 addition & 1 deletion client/lib/domains/email-forwarding/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
NODE_BIN := $(shell npm bin)
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := test:$(BASE_DIR)/client
COMPILERS ?= js:babel/register
REPORTER ?= spec
UI ?= bdd
Expand Down
2 changes: 1 addition & 1 deletion client/lib/domains/nameservers/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
NODE_BIN := $(shell npm bin)
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := test:$(BASE_DIR)/client
COMPILERS ?= js:babel/register
REPORTER ?= spec
UI ?= bdd
Expand Down
2 changes: 1 addition & 1 deletion client/lib/domains/whois/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
NODE_BIN := $(shell npm bin)
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := test:$(BASE_DIR)/client
COMPILERS ?= js:babel/register
REPORTER ?= spec
UI ?= bdd
Expand Down
2 changes: 1 addition & 1 deletion client/lib/email-followers/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
NODE_BIN := $(shell npm bin)
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := test:$(BASE_DIR)/client
COMPILERS ?= js:babel/register
REPORTER ?= spec
UI ?= bdd
Expand Down
2 changes: 1 addition & 1 deletion client/lib/features-list/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
NODE_BIN := $(shell npm bin)
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := test:$(BASE_DIR)/client
COMPILERS ?= js:babel/register
REPORTER ?= spec
UI ?= bdd
Expand Down
2 changes: 1 addition & 1 deletion client/lib/feed-post-store/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
NODE_BIN := $(shell npm bin)
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := test:$(BASE_DIR)/client
COMPILERS ?= js:babel/register
REPORTER ?= spec
UI ?= bdd
Expand Down
2 changes: 1 addition & 1 deletion client/lib/feed-store/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
NODE_BIN := $(shell npm bin)
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := test:$(BASE_DIR)/client
COMPILERS ?= js:babel/register
REPORTER ?= spec
UI ?= bdd
Expand Down
2 changes: 1 addition & 1 deletion client/lib/feed-stream-store/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
NODE_BIN := $(shell npm bin)
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := test:$(BASE_DIR)/client
COMPILERS ?= js:babel/register
REPORTER ?= spec
UI ?= bdd
Expand Down
2 changes: 1 addition & 1 deletion client/lib/follow-list/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
NODE_BIN := $(shell npm bin)
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := test:$(BASE_DIR)/client
COMPILERS ?= js:babel/register
REPORTER ?= spec
UI ?= bdd
Expand Down
2 changes: 1 addition & 1 deletion client/lib/followers/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ COMPILERS ?= js:babel/register
NODE_BIN := $(shell npm bin)
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := test:$(BASE_DIR)/client

# In order to simply stub modules, add test to the NODE_PATH
test:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ REPORTER ?= spec
NODE_BIN := $(shell npm bin)
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := test:$(BASE_DIR)/client

# In order to simply stub modules, add test to the NODE_PATH
test:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion client/lib/geocoding/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ REPORTER ?= spec
NODE_BIN := $(shell npm bin)
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := $(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := $(BASE_DIR)/client

test:
@NODE_ENV=test NODE_PATH=$(NODE_PATH) $(MOCHA) --compilers jsx:babel/register,js:babel/register --reporter $(REPORTER)
Expand Down
2 changes: 1 addition & 1 deletion client/lib/happiness-engineers/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ REPORTER ?= spec
NODE_BIN := $(shell npm bin)
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := test:$(BASE_DIR)/client

# In order to simply stub modules, add test to the NODE_PATH
test:
Expand Down
2 changes: 1 addition & 1 deletion client/lib/help-search/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
NODE_BIN := $(shell npm bin)
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := test:$(BASE_DIR)/client
COMPILERS ?= js:babel/register
REPORTER ?= spec
UI ?= bdd
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ COMPILERS ?= js:babel/register
NODE_BIN := ../../../node_modules/.bin
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := test:$(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := test:$(BASE_DIR)/client

# In order to simply stub modules, add test to the NODE_PATH
test:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion client/lib/interval/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ REPORTER ?= spec
NODE_BIN := $(shell npm bin)
MOCHA ?= $(NODE_BIN)/mocha
BASE_DIR := $(NODE_BIN)/../..
NODE_PATH := $(BASE_DIR)/client:$(BASE_DIR)/shared
NODE_PATH := $(BASE_DIR)/client

test:
@NODE_ENV=test NODE_PATH=$(NODE_PATH) $(MOCHA) --compilers js:babel/register --reporter $(REPORTER) --ui bdd
Expand Down
Loading

0 comments on commit 0ed9283

Please sign in to comment.