summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rw-r--r--scripts/main.mk4
-rwxr-xr-xscripts/node/create_node_scheme.sh (renamed from scripts/node/create_npm_scheme.sh)5
-rw-r--r--scripts/node/node.xcscheme (renamed from scripts/node/npm.xcscheme)6
4 files changed, 9 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 40dc9be305..3b0824a2bd 100644
--- a/Makefile
+++ b/Makefile
@@ -101,6 +101,9 @@ Xcode/node: ; $(RUN) HTTP=none ASSET=none CACHE=none Xcode/node
.PHONY: xnode
xnode: Xcode/node ; @open ./build/binding.xcodeproj
+nproj:
+ $(RUN) HTTP=none ASSET=none CACHE=none node/xproj
+ @open ./build/binding.xcodeproj
.PHONY: test
test: ; $(RUN) Makefile/test
diff --git a/scripts/main.mk b/scripts/main.mk
index aefd2690ed..c65a7aedde 100644
--- a/scripts/main.mk
+++ b/scripts/main.mk
@@ -112,8 +112,8 @@ node/configure:
node/xproj:
$(QUIET)$(ENV) $(NODE_PRE_GYP) configure --clang -- \
$(GYP_FLAGS) -f xcode -Dlibuv_cflags= -Dlibuv_ldflags= -Dlibuv_static_libs=
- $(QUIET)$(ENV) ./scripts/node/create_npm_scheme.sh test
- $(QUIET)$(ENV) ./scripts/node/create_npm_scheme.sh run test-suite
+ $(QUIET)$(ENV) ./scripts/node/create_node_scheme.sh "node test" "`npm bin tape`/tape platform/node/test/js/**/*.test.js"
+ $(QUIET)$(ENV) ./scripts/node/create_node_scheme.sh "npm run test-suite" "platform/node/test/render.test.js"
Makefile/node: Makefile/__project__ node/configure
@printf "$(TEXT_BOLD)$(COLOR_GREEN)* Building target node...$(FORMAT_END)\n"
diff --git a/scripts/node/create_npm_scheme.sh b/scripts/node/create_node_scheme.sh
index e5dae401c4..c0907f5d20 100755
--- a/scripts/node/create_npm_scheme.sh
+++ b/scripts/node/create_node_scheme.sh
@@ -1,7 +1,8 @@
#!/usr/bin/env bash
+NAME=$1
+shift
CMD=$@
DIR="build/binding.xcodeproj/xcshareddata/xcschemes"
-FILE="${DIR}/npm ${CMD}.xcscheme"
mkdir -p "${DIR}"
-sed "s#{{NODE_PATH}}#$(dirname `which node`)#;s#{{BLUEPRINT_IDENTIFIER}}#$(hexdump -n 12 -v -e '/1 "%02X"' /dev/urandom)#;s#{{WORKING_DIRECTORY}}#$(pwd)#;s#{{NPM_COMMAND}}#${CMD}#" scripts/node/npm.xcscheme > "${FILE}" \ No newline at end of file
+sed "s#{{NODE_PATH}}#$(dirname `which node`)#;s#{{BLUEPRINT_IDENTIFIER}}#$(hexdump -n 12 -v -e '/1 "%02X"' /dev/urandom)#;s#{{WORKING_DIRECTORY}}#$(pwd)#;s#{{NODE_ARGUMENT}}#${CMD}#" scripts/node/node.xcscheme > "${DIR}/${NAME}.xcscheme"
diff --git a/scripts/node/npm.xcscheme b/scripts/node/node.xcscheme
index e7ae4ece3d..52a89fb81f 100644
--- a/scripts/node/npm.xcscheme
+++ b/scripts/node/node.xcscheme
@@ -58,11 +58,7 @@
</MacroExpansion>
<CommandLineArguments>
<CommandLineArgument
- argument = "{{NODE_PATH}}/npm"
- isEnabled = "YES">
- </CommandLineArgument>
- <CommandLineArgument
- argument = "{{NPM_COMMAND}}"
+ argument = "{{NODE_ARGUMENT}}"
isEnabled = "YES">
</CommandLineArgument>
</CommandLineArguments>