| author | Eric Roberts
<eric@devl.me> 2026-08-26 18:32:34 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-08-26 18:36:11 UTC |
| parent | 97952664266347d17124677fc389fae2ce385dab |
| .prettierrc | +1 | -0 |
| Makefile | +9 | -3 |
| npm/package.json | +5 | -1 |
diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..906cc67 --- /dev/null +++ b/.prettierrc @@ -0,0 +1 @@ +useTabs: true diff --git a/Makefile b/Makefile index 484f298..618d22b 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,14 @@ HAXE_PATH=$$HOME/Software/haxe-4.3.1/hxnodejs/12,1,0/src CJSTOESM=npx -p typescript@6 -p cjstoesm cjstoesm -.PHONY: all test doc hx-build-dep cpp/libborogove.dso npm/borogove-browser.js npm/borogove.js cpp playwright ci +.PHONY: all test doc format format-check hx-build-dep cpp/libborogove.dso npm/borogove-browser.js npm/borogove.js cpp playwright ci all: npm libborogove.batteriesincluded.so .WAIT libborogove.so libborogove.a test: haxe test.hxml -ci: test playwright +ci: format-check test playwright mkdir -p .cache haxe testjs.hxml haxe testcpp.hxml @@ -59,7 +59,7 @@ npm/borogove.js: printf "\nexport class borogove_Presence {}\n" >> npm/borogove.d.ts $(RM) npm/*.bak -npm: npm/borogove-browser.js npm/borogove.js borogove/persistence/IDB.js borogove/persistence/MediaStoreCache.js borogove/persistence/sqlite-worker1.mjs +npm: format-check npm/borogove-browser.js npm/borogove.js borogove/persistence/IDB.js borogove/persistence/MediaStoreCache.js borogove/persistence/sqlite-worker1.mjs cp borogove/persistence/IDB.js npm cp borogove/persistence/MediaStoreCache.js npm cp borogove/persistence/sqlite-worker1.mjs npm @@ -160,3 +160,9 @@ doc: clean: $(RM) npm/*.js npm/*.mjs npm/*.d.ts npm/*.map npm/borogove-enums.ts npm/borogove-browser-enums.ts $(RM) -r cpp/src cpp/include cpp/obj cpp/*.h cpp/*.dso.hash cpp/Build.xml cpp/Options.txt cpp/Borogove.swift libborogove.so + +format: + npx --no-install prettier --w '**/*.{ts,js}' --ignore-path .gitignore + +format-check: + npx --no-install prettier --c '**/*.{ts,js}' --ignore-path .gitignore diff --git a/npm/package.json b/npm/package.json index c4dcb95..acbb4d2 100644 --- a/npm/package.json +++ b/npm/package.json @@ -3,7 +3,10 @@ "version": "0.0.1", "homepage": "https://borogove.dev", "description": "An SDK that makes it easy to build your own custom chat experience", - "keywords": ["chat", "xmpp"], + "keywords": [ + "chat", + "xmpp" + ], "main": "index.js", "type": "module", "files": [ @@ -37,6 +40,7 @@ "devDependencies": { "@playwright/test": "1.60.0", "@sqlite.org/sqlite-wasm": "^3.53.0-build1", + "prettier": "3.3.3", "typescript": "^5.4.5" } }