Skip to content

Commit

Permalink
Using the org versions of dagre & graphlib
Browse files Browse the repository at this point in the history
  • Loading branch information
rustedgrail committed Jun 2, 2023
1 parent 10e37c7 commit 27c2d7c
Show file tree
Hide file tree
Showing 9 changed files with 8,359 additions and 426 deletions.
8 changes: 0 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ DEMO_FILES = $(shell find demo -type f)
SRC_FILES = index.js lib/version.js $(shell find lib -type f -name '*.js')
BUILD_FILES = $(addprefix $(BUILD_DIR)/dist/, \
$(MOD).js $(MOD).min.js \
$(MOD).core.js $(MOD).core.min.js \
$(DEMO_FILES))

DIRS = $(BUILD_DIR) $(BUILD_DIR)/dist $(BUILD_DIR)/dist/demo
Expand All @@ -45,7 +44,6 @@ test: browser-test demo-test node-test

browser-test: $(BUILD_FILES)
$(KARMA) start --single-run $(KARMA_OPTS)
$(KARMA) start karma.core.conf.js --single-run $(KARMA_OPTS)

demo-test: test/demo-test.js | $(BUILD_FILES)
echo $(PHANTOMJS) $<
Expand All @@ -63,12 +61,6 @@ $(BUILD_DIR)/dist/$(MOD).js: index.js $(SRC_FILES) | $(BUILD_DIR)/dist node_modu
$(BUILD_DIR)/dist/$(MOD).min.js: $(BUILD_DIR)/dist/$(MOD).js | $(BUILD_DIR)/dist
@$(UGLIFY) $< --comments '@license' --source-map --output $@

$(BUILD_DIR)/dist/$(MOD).core.js: index.js $(SRC_FILES) | $(BUILD_DIR)/dist node_modules
@$(BROWSERIFY) $< > $@ --no-bundle-external -s dagreD3

$(BUILD_DIR)/dist/$(MOD).core.min.js: $(BUILD_DIR)/dist/$(MOD).core.js | $(BUILD_DIR)/dist
@$(UGLIFY) $< --comments '@license' --source-map --output $@

$(BUILD_DIR)/dist/demo/%: demo/% | $(BUILD_DIR)/dist/demo
@cp $< $@

Expand Down
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
],
"dependencies": {
"d3": "^5.14",
"dagre": "^0.8.5",
"graphlib": "^2.1.8",
"@dagrejs/dagre": "1.0.2",
"g@dagrejs/raphlib": "2.1.13",
"lodash": "^4.17.15"
}
}
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
* THE SOFTWARE.
*/
module.exports = {
graphlib: require("./lib/graphlib"),
dagre: require("./lib/dagre"),
graphlib: require("@dagrejs/graphlib"),
dagre: require("@dagrejs/dagre"),
intersect: require("./lib/intersect"),
render: require("./lib/render"),
util: require("./lib/util"),
Expand Down
82 changes: 0 additions & 82 deletions karma.core.conf.js

This file was deleted.

18 changes: 0 additions & 18 deletions lib/dagre.js

This file was deleted.

19 changes: 0 additions & 19 deletions lib/graphlib.js

This file was deleted.

2 changes: 1 addition & 1 deletion lib/render.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var _ = require("./lodash");
var d3 = require("./d3");
var layout = require("./dagre").layout;
var layout = require("@dagrejs/dagre").layout;

module.exports = render;

Expand Down
Loading

0 comments on commit 27c2d7c

Please sign in to comment.