]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Add dev lib documentation
authorChocobozzz <me@florianbigard.com>
Tue, 7 Sep 2021 09:47:40 +0000 (11:47 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 7 Sep 2021 09:47:40 +0000 (11:47 +0200)
client/.gitignore
client/src/standalone/player/package.json
support/doc/development/lib.md [new file with mode: 0644]

index a02b6a6ccde6f8a3bde4ab7a6f84ddc4aa4bb7a4..7297b43fc46ac033296f5b75e816e3cb4917183c 100644 (file)
@@ -9,3 +9,5 @@
 /src/locale/target/player_*.xml
 /src/locale/target/server_*.xml
 /e2e/local.log
+/src/standalone/player/build
+/src/standalone/player/dist
index 985097af52f6857db971ae171b7d8605dd398440..78b3cd93f8b39d3dba45fa703d78af2732d5f2f4 100644 (file)
@@ -4,7 +4,7 @@
   "version": "0.0.4",
   "description": "API to communicate with the PeerTube player embed",
   "scripts": {
-    "test": "echo \"Error: no test specified\" && exit 1"
+    "build": "../../../node_modules/.bin/tsc && ../../../node_modules/.bin/webpack --mode production --config ./webpack.config.js"
   },
   "repository": {
     "type": "git",
diff --git a/support/doc/development/lib.md b/support/doc/development/lib.md
new file mode 100644 (file)
index 0000000..6b03721
--- /dev/null
@@ -0,0 +1,10 @@
+# Lib development documentation
+
+## @peertube/embed-api
+
+### Build
+
+```
+$ cd client/src/standalone/player/
+$ npm run build
+```