isundil 6 жил өмнө
parent
commit
30748060b8

+ 2 - 0
.gitignore

@@ -0,0 +1,2 @@
+/src/config.js
+/node_modules

+ 26 - 0
Makefile

@@ -0,0 +1,26 @@
+
+SRC=	src/cli/resources.js	\
+		src/cli/ui.js
+
+OUTPUT=	public/script.min.js
+
+MAPFILE=	${OUTPUT}.map
+
+CLOSURE= src/cli/closure-compiler-v20190301.jar
+
+$(OUTPUT):all
+
+all:
+	java -jar ${CLOSURE} --compilation_level ADVANCED --language_in=ECMASCRIPT6 --language_out=ECMASCRIPT6_STRICT --warning_level=VERBOSE --js_output_file=${OUTPUT} ${SRC}
+
+debug:
+	echo "//# sourceMappingURL=${MAPFILE}" > ${OUTPUT}
+	java -jar ${CLOSURE} --compilation_level WHITESPACE_ONLY --language_in=ECMASCRIPT6 --language_out=ECMASCRIPT6_STRICT --warning_level=VERBOSE --create_source_map=${MAPFILE} ${SRC} >> ${OUTPUT}
+
+clean:
+	$(RM) ${OUTPUT} ${MAPFILE}
+
+re:	clean $(OUTPUT)
+
+.PHONY:	all debug clean re
+

+ 18 - 0
package.json

@@ -0,0 +1,18 @@
+{
+  "name": "totorobook",
+  "version": "1.0.0",
+  "description": "Numeric Book Shelf",
+  "main": "index.js",
+  "scripts": {
+    "test": "echo \"Error: no test specified\" && exit 1"
+  },
+  "repository": {
+    "type": "git",
+    "url": "git@git.knacki.info:isundil/totorobook.git"
+  },
+  "author": "isundil",
+  "license": "GPL-3.0-or-later",
+  "dependencies": {
+    "express": "^4.16.4"
+  }
+}

BIN
src/cli/closure-compiler-v20190301.jar


+ 9 - 0
src/config.js.sample

@@ -0,0 +1,9 @@
+
+modules.EXPORT = {
+    db: {
+        username: "totorobook",
+        password: "HackMe",
+        server: "localhost"
+    }
+};
+