]> gerrit.simantics Code Review - simantics/district.git/commitdiff
Adding missing bin folder in integrated tile server 00/400/1
authorjsimomaa <jani.simomaa@gmail.com>
Tue, 4 Apr 2017 06:55:06 +0000 (09:55 +0300)
committerjsimomaa <jani.simomaa@gmail.com>
Tue, 4 Apr 2017 06:55:06 +0000 (09:55 +0300)
refs #6958

Change-Id: I598b394c67b0f32e1fa88f867dc5ee37f1eb361c

org.simantics.maps.server/node/.gitignore [new file with mode: 0644]
org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/bin/node-gyp-bin/node-gyp [new file with mode: 0644]
org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/bin/node-gyp-bin/node-gyp.cmd [new file with mode: 0644]
org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/bin/npm [new file with mode: 0644]
org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/bin/npm-cli.js [new file with mode: 0644]
org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/bin/npm.cmd [new file with mode: 0644]
org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/bin/read-package-json.js [new file with mode: 0644]

diff --git a/org.simantics.maps.server/node/.gitignore b/org.simantics.maps.server/node/.gitignore
new file mode 100644 (file)
index 0000000..ed1c95e
--- /dev/null
@@ -0,0 +1,2 @@
+# allow bin
+!node-v4.8.0-win-x64/node_modules/npm/bin/
\ No newline at end of file
diff --git a/org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/bin/node-gyp-bin/node-gyp b/org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/bin/node-gyp-bin/node-gyp
new file mode 100644 (file)
index 0000000..70efb6f
--- /dev/null
@@ -0,0 +1,6 @@
+#!/usr/bin/env sh
+if [ "x$npm_config_node_gyp" = "x" ]; then
+  node "`dirname "$0"`/../../node_modules/node-gyp/bin/node-gyp.js" "$@"
+else
+  "$npm_config_node_gyp" "$@"
+fi
diff --git a/org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/bin/node-gyp-bin/node-gyp.cmd b/org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/bin/node-gyp-bin/node-gyp.cmd
new file mode 100644 (file)
index 0000000..083c9c5
--- /dev/null
@@ -0,0 +1,5 @@
+if not defined npm_config_node_gyp (
+  node "%~dp0\..\..\node_modules\node-gyp\bin\node-gyp.js" %*
+) else (
+  node "%npm_config_node_gyp%" %*
+)
diff --git a/org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/bin/npm b/org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/bin/npm
new file mode 100644 (file)
index 0000000..5acd6fb
--- /dev/null
@@ -0,0 +1,34 @@
+#!/bin/sh
+(set -o igncr) 2>/dev/null && set -o igncr; # cygwin encoding fix
+
+basedir=`dirname "$0"`
+
+case `uname` in
+    *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
+esac
+
+NODE_EXE="$basedir/node.exe"
+if ! [ -x "$NODE_EXE" ]; then
+  NODE_EXE=node
+fi
+
+NPM_CLI_JS="$basedir/node_modules/npm/bin/npm-cli.js"
+
+case `uname` in
+  *MINGW*)
+    NPM_PREFIX=`"$NODE_EXE" "$NPM_CLI_JS" prefix -g`
+    NPM_PREFIX_NPM_CLI_JS="$NPM_PREFIX/node_modules/npm/bin/npm-cli.js"
+    if [ -f "$NPM_PREFIX_NPM_CLI_JS" ]; then
+      NPM_CLI_JS="$NPM_PREFIX_NPM_CLI_JS"
+    fi
+    ;;
+  *CYGWIN*)
+    NPM_PREFIX=`"$NODE_EXE" "$NPM_CLI_JS" prefix -g`
+    NPM_PREFIX_NPM_CLI_JS="$NPM_PREFIX/node_modules/npm/bin/npm-cli.js"
+    if [ -f "$NPM_PREFIX_NPM_CLI_JS" ]; then
+      NPM_CLI_JS="$NPM_PREFIX_NPM_CLI_JS"
+    fi
+    ;;
+esac
+
+"$NODE_EXE" "$NPM_CLI_JS" "$@"
diff --git a/org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/bin/npm-cli.js b/org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/bin/npm-cli.js
new file mode 100644 (file)
index 0000000..ace40ca
--- /dev/null
@@ -0,0 +1,75 @@
+#!/usr/bin/env node
+;(function () { // wrapper in case we're in module_context mode
+
+// windows: running "npm blah" in this folder will invoke WSH, not node.
+if (typeof WScript !== "undefined") {
+  WScript.echo("npm does not work when run\n"
+              +"with the Windows Scripting Host\n\n"
+              +"'cd' to a different directory,\n"
+              +"or type 'npm.cmd <args>',\n"
+              +"or type 'node npm <args>'.")
+  WScript.quit(1)
+  return
+}
+
+
+process.title = "npm"
+
+var log = require("npmlog")
+log.pause() // will be unpaused when config is loaded.
+log.info("it worked if it ends with", "ok")
+
+var path = require("path")
+  , npm = require("../lib/npm.js")
+  , npmconf = require("../lib/config/core.js")
+  , errorHandler = require("../lib/utils/error-handler.js")
+
+  , configDefs = npmconf.defs
+  , shorthands = configDefs.shorthands
+  , types = configDefs.types
+  , nopt = require("nopt")
+
+// if npm is called as "npmg" or "npm_g", then
+// run in global mode.
+if (path.basename(process.argv[1]).slice(-1)  === "g") {
+  process.argv.splice(1, 1, "npm", "-g")
+}
+
+log.verbose("cli", process.argv)
+
+var conf = nopt(types, shorthands)
+npm.argv = conf.argv.remain
+if (npm.deref(npm.argv[0])) npm.command = npm.argv.shift()
+else conf.usage = true
+
+
+if (conf.version) {
+  console.log(npm.version)
+  return
+}
+
+if (conf.versions) {
+  npm.command = "version"
+  conf.usage = false
+  npm.argv = []
+}
+
+log.info("using", "npm@%s", npm.version)
+log.info("using", "node@%s", process.version)
+
+process.on("uncaughtException", errorHandler)
+
+if (conf.usage && npm.command !== "help") {
+  npm.argv.unshift(npm.command)
+  npm.command = "help"
+}
+
+// now actually fire up npm and run the command.
+// this is how to use npm programmatically:
+conf._exit = true
+npm.load(conf, function (er) {
+  if (er) return errorHandler(er)
+  npm.commands[npm.command](npm.argv, errorHandler)
+})
+
+})()
diff --git a/org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/bin/npm.cmd b/org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/bin/npm.cmd
new file mode 100644 (file)
index 0000000..880554d
--- /dev/null
@@ -0,0 +1,19 @@
+:: Created by npm, please don't edit manually.
+@ECHO OFF
+
+SETLOCAL
+
+SET "NODE_EXE=%~dp0\node.exe"
+IF NOT EXIST "%NODE_EXE%" (
+  SET "NODE_EXE=node"
+)
+
+SET "NPM_CLI_JS=%~dp0\node_modules\npm\bin\npm-cli.js"
+FOR /F "delims=" %%F IN ('CALL "%NODE_EXE%" "%NPM_CLI_JS%" prefix -g') DO (
+  SET "NPM_PREFIX_NPM_CLI_JS=%%F\node_modules\npm\bin\npm-cli.js"
+)
+IF EXIST "%NPM_PREFIX_NPM_CLI_JS%" (
+  SET "NPM_CLI_JS=%NPM_PREFIX_NPM_CLI_JS%"
+)
+
+"%NODE_EXE%" "%NPM_CLI_JS%" %*
diff --git a/org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/bin/read-package-json.js b/org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/bin/read-package-json.js
new file mode 100644 (file)
index 0000000..3e5a0c7
--- /dev/null
@@ -0,0 +1,22 @@
+var argv = process.argv
+if (argv.length < 3) {
+  console.error("Usage: read-package.json <file> [<fields> ...]")
+  process.exit(1)
+}
+
+var fs = require("fs")
+  , file = argv[2]
+  , readJson = require("read-package-json")
+
+readJson(file, function (er, data) {
+  if (er) throw er
+  if (argv.length === 3) console.log(data)
+  else argv.slice(3).forEach(function (field) {
+    field = field.split(".")
+    var val = data
+    field.forEach(function (f) {
+      val = val[f]
+    })
+    console.log(val)
+  })
+})