Panagiotis Papadopoulos
19abd14058
build(build-server): use build dir for build and dist for final archive output
2025-03-09 18:59:54 +01:00
Panagiotis Papadopoulos
9bd31698e1
build(copy-trilium): use "|" as sed separator
...
allows us to avoid having to escape "/"
2025-03-09 18:59:54 +01:00
Panagiotis Papadopoulos
1ae5c43010
build(copy-trilium): do all the work inside build dir, no target directory needed anymore
...
-> all of these steps will eventually be merged with copy-dist script to have a unified copying script
2025-03-09 18:59:54 +01:00
Panagiotis Papadopoulos
f8b06f0634
build(copy-trilium): get rid of unecessary copying of files
...
-> already handled by "build:prepare-dist" step
2025-03-09 18:59:54 +01:00
Panagiotis Papadopoulos
930be2de05
build(copy-dist): copy LICENSE and README as well
...
copied over from copy-trilium.sh script
2025-03-09 18:59:54 +01:00
Panagiotis Papadopoulos
c89d86acb1
build(copy-trilium): use "build:prepare-dist" build script
2025-03-09 18:59:54 +01:00
Panagiotis Papadopoulos
d65281bfa5
build(copy-trilium): use npm ci
2025-03-09 18:59:54 +01:00
Panagiotis Papadopoulos
607f9096aa
build: output into "build" folder again → "dist" will be used for the final output in archive form
...
this will allow for cleaner separation -> build for the output from the build stage (i.e. TS/Webpack + asset copying) and dist for the archive format of the build folder
2025-03-09 18:59:54 +01:00
Panagiotis Papadopoulos
907b8c503e
build: copy package-lock.json into dist folder as well
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
3553d64060
build(Docker/ci): get rid of running partial build locally
...
this is now handled fully inside Docker.
exception for "test_docker" job in "main-docker"
-> it seems that one needs to be there still, since it runs Playwright tests from outside the container
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
2973d38db0
build(Docker): move server-package.json preparation into Dockerfile
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
e389592017
build(copy-dist): copying build folder is not required anymore
...
TS and Webpack build into the dist folder directly now
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
3032156b45
build(copy-dist): execute code in try/catch -> get rid of function
...
since we don't export this anywhere, might as well just call the steps directly
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
d75cf8c11e
build(copy-dist): consolidate nodeModules copying into a single loop
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
a816abb372
build(copy-dist): use sync copying
...
since this is a "standalone" script we are running and no other JS scritps are running "in the background", there's no real benefit for async here.
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
37f1525d0e
build(copy-dist): remove unused paths
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
dbeae62709
build(copy-dist): simplify "copyNodeModuleFileOrFolder" copying
...
there's no benefit from stripping "node_modules/" from the string, to later add it again using the `DEST_DIR_NODE_MODULES` constant
=> just copy directly into the `DEST_DIR` folder and preserver the `node_modules` part in the path
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
ac3e96291a
build(copy-dist): simplify "build" copying
...
there's no need to read the folder structure and then copy each single file in a loop
=> just copy the whole folder and be done with it :-)
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
9ac451e2b2
build(copy-dist): consolidate files and folder copying into one asset copying job
...
there's no benefit in having them split up like before
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
dbc2df0820
build(copy-dist): consolidate folder copying
...
the "srcDirsToCopy" block is useless now, we can just use the previous dirsToCopy to achieve the exact same thing
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
24382d8176
build(copy-dist): avoid copying over the app dir into dist
...
we have the bundled "app-dist" already in the "dist", copying over the original unbundled "app" folder serves no benefit here
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
af5e4ee3b5
build(copy-dist): copy over required folders/files from "public" folder
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
135101f57b
build(copy-dist): do not copy build folder into src folder
...
stop the build folder from being copied into the dist/src subfolder
→ there is no sense in doing that
→ the contents of the build folder are corretly copied previously already (see line 26ff)
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
60a2b56636
chore(copy-dist): removee unnecesary copy of tsconfig.webpack.json
...
webpack bundling already ran before this script, so there is no need to copy this file over
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
6c4a1732ad
build(copy-trilium): use npm run build:ts
2025-03-07 23:14:56 +01:00
Elian Doran
e76601cd21
fix(bin): empty package.json
2025-03-07 23:58:41 +02:00
Elian Doran
e252b491ba
chore(bin): make less error-tolerant
2025-03-07 23:57:31 +02:00
Elian Doran
555dcc956e
chore(release): 0.92.3-beta
2025-03-07 23:55:26 +02:00
Panagiotis Papadopoulos
f8c8b9eb3f
build(build-server): stop copying dump-db during build
2025-03-05 09:28:41 +01:00
Panagiotis Papadopoulos
2beaaa95bf
chore(prettier): fix code style
2025-03-02 20:47:57 +01:00
Elian Doran
f6224d9ec4
Merge pull request #1168 from TriliumNext/chore_bootstrap-ts-ignore
...
build: bundle bootstrap with webpack
2025-02-22 14:57:47 +02:00
Elian Doran
50d491b432
build(release): update master branch automatically
2025-02-22 14:25:31 +02:00
Elian Doran
899ad6450a
build(release): use different commit message
2025-02-22 14:02:13 +02:00
Panagiotis Papadopoulos
e7d204dfd2
chore(copy-dist): remove now unneeded manual copying of bootstrap dir
...
webpack is taking care of that for us
2025-02-22 11:56:56 +01:00
Elian Doran
324233be50
Merge pull request #1201 from TriliumNext/chore_fix-copy-dist-log
...
chore(copy-dist): "unpack" log messages before printing
2025-02-16 15:00:41 +02:00
Panagiotis Papadopoulos
dd4f8a8c27
chore(copy-dist): "unpack" log messages before printing
...
previously it was printin all messages as part of an array, i.e.
["message"]
After spreading the array, we get the desired out
"message"
2025-02-15 13:08:13 +01:00
Panagiotis Papadopoulos
11a9dfd693
Merge branch 'develop' into chore_npm-scripts-namescape
2025-02-15 09:02:23 +01:00
Elian Doran
9299f90b85
feat(docs): internal API docs
2025-02-15 00:33:12 +02:00
Elian Doran
81d5d16e1a
chore(bin): convert generate-openapi to typescript
2025-02-15 00:02:00 +02:00
Elian Doran
2fe6881d73
Merge pull request #1192 from FliegendeWurst/openapi-docs-2
...
More OpenAPI docs
2025-02-14 23:57:39 +02:00
FliegendeWurst
a115214070
Document some note, branch, tree routes
2025-02-14 09:40:38 +01:00
Panagiotis Papadopoulos
9cddb1deac
chore(scripts): namespace "build:webpack"
2025-02-14 08:41:34 +01:00
Panagiotis Papadopoulos
47002aa95a
chore(scripts): namespace "chore:update-build-info"
2025-02-14 08:38:18 +01:00
FliegendeWurst
0f0ebed78a
Document sync push/pull
2025-02-13 23:51:42 +01:00
Elian Doran
508908ded8
Merge pull request #1173 from TriliumNext/fix_etapi-openapi-integration
...
build: fix missing copying of etapi.openapi.yaml in build process
2025-02-13 21:49:04 +02:00
FliegendeWurst
be4b74e791
Automated OpenAPI spec generation
2025-02-13 17:02:03 +01:00
Panagiotis Papadopoulos
010783102a
build: fix missing copying of etapi.openapi.yaml into dist folder
...
fixes build via electron-forge
2025-02-12 23:09:20 +01:00
Panagiotis Papadopoulos
61e56023d4
refactor(electron-forge/deb): make desktop.ejs easier to read
...
in theory we could use variables in ejs, but unfortunately electron uses lodash template to create the file, which itself DOES NOT like any let/const/var assignments – wasted a bit of time finding this out, before coming up with this solution
2025-02-02 22:25:56 +01:00
Elian Doran
2baf75d0c1
feat(electron): custom icon for the windows installer
2025-02-01 14:39:36 +02:00
Elian Doran
495fce7594
feat(tray): use template for menu icons
2025-02-01 12:57:51 +02:00