Skip to content

Commit bc110e3

Browse files
committed
reorganization + build pipeline
1 parent e5af5b8 commit bc110e3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+4892
-5482
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
.js

Makefile

+19-64
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,25 @@
1-
SOURCES = src/mm.js \
2-
src/promise.js \
3-
src/promise-addons.js \
4-
src/repo.js \
5-
src/item.js \
6-
src/map.js \
7-
src/keyboard.js \
8-
src/tip.js \
9-
src/action.js \
10-
src/clipboard.js \
11-
src/menu.js \
12-
src/command.js \
13-
src/command.edit.js \
14-
src/command.select.js \
15-
src/layout.js \
16-
src/layout.graph.js \
17-
src/layout.tree.js \
18-
src/layout.map.js \
19-
src/shape.js \
20-
src/shape.underline.js \
21-
src/shape.box.js \
22-
src/shape.ellipse.js \
23-
src/format.js \
24-
src/format.json.js \
25-
src/format.freemind.js \
26-
src/format.mma.js \
27-
src/format.mup.js \
28-
src/format.plaintext.js \
29-
src/backend.js \
30-
src/backend.local.js \
31-
src/backend.webdav.js \
32-
src/backend.image.js \
33-
src/backend.file.js \
34-
src/backend.firebase.js \
35-
src/backend.gdrive.js \
36-
src/ui.js \
37-
src/ui.layout.js \
38-
src/ui.shape.js \
39-
src/ui.value.js \
40-
src/ui.status.js \
41-
src/ui.color.js \
42-
src/ui.icon.js \
43-
src/ui.help.js \
44-
src/ui.notes.js \
45-
src/ui.io.js \
46-
src/ui.backend.js \
47-
src/ui.backend.file.js \
48-
src/ui.backend.webdav.js \
49-
src/ui.backend.image.js \
50-
src/ui.backend.local.js \
51-
src/ui.backend.firebase.js \
52-
src/ui.backend.gdrive.js \
53-
src/mouse.js \
54-
src/app.js
1+
MAKEOPTS = "-r"
552

56-
.PHONY: all push clean
3+
BIN := $(shell npm bin)
4+
TSC := $(BIN)/tsc
5+
LESSC := $(BIN)/lessc
6+
ESBUILD := $(BIN)/esbuild
7+
GCC := $(BIN)/google-closure-compiler
578

58-
all: my-mind.js
9+
JS := .js
10+
FLAG := $(JS)/.tsflag
11+
APP := my-mind.js
5912

60-
my-mind.js: $(SOURCES)
61-
@echo "/* My Mind web app: all source files combined. */" > $@
62-
@cat $^ >> $@
13+
all: $(APP)
6314

64-
push:
65-
@hg bookmark -f master
66-
@hg push ; true
67-
@hg push github ; true
15+
$(APP): $(FLAG)
16+
$(ESBUILD) --bundle $(JS)/$(APP) > $@
17+
18+
$(FLAG): $(shell find src -type f)
19+
$(TSC)
20+
touch $@
6821

6922
clean:
70-
@rm my-mind.js
23+
rm -rf $(JS) $(APP)
24+
25+
.PHONY: all clean

0 commit comments

Comments
 (0)