From 42cca2bd3411e45f38c0419faed5ccd9e5b01dcf Mon Sep 17 00:00:00 2001 From: Chris Pettitt Date: Mon, 20 Oct 2014 20:16:39 -0700 Subject: [PATCH] Check in improved bower generation script --- src/release/make-bower.json.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/release/make-bower.json.js b/src/release/make-bower.json.js index 28cb6932..a3b7944b 100755 --- a/src/release/make-bower.json.js +++ b/src/release/make-bower.json.js @@ -2,18 +2,20 @@ // Renders the bower.json template and prints it to stdout +var packageJson = require("../../package.json"); + var template = { - name: "graphlib", - version: require("../../package.json").version, - main: [ "dist/graphlib.core.js", "dist/graphlib.core.min.js" ], + name: packageJson.name, + version: packageJson.version, + main: ["dist/" + packageJson.name + ".core.js", "dist/" + packageJson.name + ".core.min.js"], ignore: [ ".*", "README.md", "CHANGELOG.md", "Makefile", "browser.js", - "dist/graphlib.js", - "dist/graphlib.min.js", + "dist/" + packageJson.name + ".js", + "dist/" + packageJson.name + ".min.js", "index.js", "karma*", "lib/**", @@ -21,9 +23,7 @@ var template = { "src/**", "test/**" ], - dependencies: { - "lodash": "^2.4.1" - } + dependencies: packageJson.dependencies }; console.log(JSON.stringify(template, null, 2));