Assume development dependencies are installed locally

This is compatible with what "npm install" does and allows for isolated
development environment.
This commit is contained in:
David Majda 2012-11-10 15:08:38 +01:00
parent 32e372be92
commit 51e126882b
2 changed files with 12 additions and 9 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
browser/*
node_modules/*

View file

@ -19,12 +19,14 @@ MODULES = utils \
# ===== Directories =====
SRC_DIR = src
LIB_DIR = lib
BIN_DIR = bin
BROWSER_DIR = browser
SPEC_DIR = spec
BENCHMARK_DIR = benchmark
SRC_DIR = src
LIB_DIR = lib
BIN_DIR = bin
BROWSER_DIR = browser
SPEC_DIR = spec
BENCHMARK_DIR = benchmark
NODE_MODULES_DIR = node_modules
NODE_MODULES_BIN_DIR = $(NODE_MODULES_DIR)/.bin
# ===== Files =====
@ -38,9 +40,9 @@ VERSION_FILE = VERSION
# ===== Executables =====
JSHINT = jshint
UGLIFYJS = uglifyjs
JASMINE_NODE = jasmine-node
JSHINT = $(NODE_MODULES_BIN_DIR)/jshint
UGLIFYJS = $(NODE_MODULES_BIN_DIR)/uglifyjs
JASMINE_NODE = $(NODE_MODULES_BIN_DIR)/jasmine-node
PEGJS = $(BIN_DIR)/pegjs
BENCHMARK_RUN = $(BENCHMARK_DIR)/run