]> gerrit.simantics Code Review - simantics/district.git/blobdiff - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/substack-input.js
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / node_modules / init-package-json / node_modules / promzard / example / substack-input.js
diff --git a/org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/substack-input.js b/org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/substack-input.js
new file mode 100644 (file)
index 0000000..bf7aedb
--- /dev/null
@@ -0,0 +1,61 @@
+module.exports = {
+    "name" : basename.replace(/^node-/, ''),
+    "version" : "0.0.0",
+    "description" : (function (cb) {
+        var fs = require('fs');
+        var value;
+        try {
+            var src = fs.readFileSync('README.markdown', 'utf8');
+            value = src.split('\n').filter(function (line) {
+                return /\s+/.test(line)
+                    && line.trim() !== basename.replace(/^node-/, '')
+                ;
+            })[0]
+                .trim()
+                .replace(/^./, function (c) { return c.toLowerCase() })
+                .replace(/\.$/, '')
+            ;
+        }
+        catch (e) {}
+        
+        return prompt('description', value);
+    })(),
+    "main" : prompt('entry point', 'index.js'),
+    "bin" : function (cb) {
+        var path = require('path');
+        var fs = require('fs');
+        var exists = fs.exists || path.exists;
+        exists('bin/cmd.js', function (ex) {
+            var bin
+            if (ex) {
+                var bin = {}
+                bin[basename.replace(/^node-/, '')] = 'bin/cmd.js'
+            }
+            cb(null, bin);
+        });
+    },
+    "directories" : {
+        "example" : "example",
+        "test" : "test"
+    },
+    "dependencies" : {},
+    "devDependencies" : {
+        "tap" : "~0.2.5"
+    },
+    "scripts" : {
+        "test" : "tap test/*.js"
+    },
+    "repository" : {
+        "type" : "git",
+        "url" : "git://github.com/substack/" + basename + ".git"
+    },
+    "homepage" : "https://github.com/substack/" + basename,
+    "keywords" : prompt(function (s) { return s.split(/\s+/) }),
+    "author" : {
+        "name" : "James Halliday",
+        "email" : "mail@substack.net",
+        "url" : "http://substack.net"
+    },
+    "license" : "MIT",
+    "engine" : { "node" : ">=0.6" }
+}