aboutsummaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2024-01-21 16:45:46 -0500
committerLibravatar vnugent <public@vaughnnugent.com>2024-01-21 16:45:46 -0500
commitd396d5b58a2be0efa307e0e656efb40fa12c024d (patch)
treed9b6edda5f778450864e674c5d81c83969458554 /ci
parent335659f2a3d412aa040fd77d871366dc4d4f8501 (diff)
optional origin check, make config public, and create bundle package
Diffstat (limited to 'ci')
-rw-r--r--ci/bundle/Taskfile.yaml61
-rw-r--r--ci/bundle/package.json10
2 files changed, 71 insertions, 0 deletions
diff --git a/ci/bundle/Taskfile.yaml b/ci/bundle/Taskfile.yaml
new file mode 100644
index 0000000..f049bd5
--- /dev/null
+++ b/ci/bundle/Taskfile.yaml
@@ -0,0 +1,61 @@
+# https://taskfile.dev
+
+#Called by the vnbuild system to produce builds for my website
+#https://www.vaughnnugent.com/resources/software
+
+#This taskfile is designed to create a bundle of essentials plugins ready to use
+
+#The Module.Taskfile will build the plugins, we just need to copy the ones we want to use
+
+version: '3'
+
+vars:
+ PROJ_BUILD_OUT_DIR: 'src/bin/Release/net8.0/Publish/'
+ OUT_FILE_NAME: 'essentials-release'
+
+tasks:
+ postbuild_success:
+ dir: '{{.USER_WORKING_DIR}}'
+ cmds:
+ #clean temp dir
+ - defer: powershell -Command "rm -r temp -Force"
+
+ #make output directories
+ - cmd: powershell -Command "mkdir temp -Force" && powershell -Command "mkdir temp/plugins -Force"
+ ignore_error: true
+ - cmd: powershell -Command "mkdir bin -Force"
+ ignore_error: true
+
+ #copy account's plugin to output directory
+ - task: copy-plugin
+ vars:
+ NAME: 'VNLib.Plugins.Essentials.Accounts'
+ OUT_NAME: 'Essentials.Accounts'
+
+ #copy auth.social plugin to output directory
+ - task: copy-plugin
+ vars:
+ NAME: 'VNLib.Plugins.Essentials.Auth.Social'
+ OUT_NAME: 'Auth.Social'
+
+ #copy content.routing plugin to output directory
+ - task: copy-plugin
+ vars:
+ NAME: 'VNLib.Plugins.Essentials.Content.Routing'
+ OUT_NAME: 'PageRouter'
+
+ #tar temp dir and put in output
+ - cmd: cd temp && tar -czf "../bin/{{.OUT_FILE_NAME}}-{{.BUILD_VERSION}}.tgz" .
+
+ copy-plugin:
+ desc: "copy a single plugin project to its output directory"
+ cmds:
+ - cd '{{.MODULE_DIR}}/plugins' && powershell -Command "cp -Path {{.NAME}}/{{.PROJ_BUILD_OUT_DIR}} -Destination {{.PROJECT_DIR}}/temp/plugins/{{.OUT_NAME}} -Force -Recurse"
+
+ clean:
+ desc: "Cleans all build artifacts"
+ cmds:
+ - cmd: powershell -Command "rm -Recurse temp -Force"
+ ignore_error: true
+ - cmd: powershell -Command "rm -Recurse bin -Force"
+ ignore_error: true \ No newline at end of file
diff --git a/ci/bundle/package.json b/ci/bundle/package.json
new file mode 100644
index 0000000..702e532
--- /dev/null
+++ b/ci/bundle/package.json
@@ -0,0 +1,10 @@
+{
+ "name": "Essentials-Bundle",
+ "version": "0.1.0",
+ "type": "module",
+ "copyright": "Copyright \u00A9 2024 Vaughn Nugent",
+ "author": "Vaughn Nugent",
+ "description": "This package is a bundle of essential website plugins ready to be used for projects most web application projects",
+ "repository": "https://github.com/VnUgE/Simple-Bookmark/tree/master/ci/bundle",
+ "output_dir": "bin"
+} \ No newline at end of file