aboutsummaryrefslogtreecommitdiff
path: root/front-end
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2023-08-10 22:08:54 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2023-08-10 22:08:54 -0400
commit277dd634e169e7341272e304f715a542047396d7 (patch)
tree66c07a3605e8c8762007ac34233cd73655162a38 /front-end
parent7cb2e971e43df248d8eed585e4a96d79492e4e79 (diff)
Introduce builds using vnbuild for the websitev0.1.1
Diffstat (limited to 'front-end')
-rw-r--r--front-end/.env2
-rw-r--r--front-end/Taskfile.yaml28
-rw-r--r--front-end/package-lock.json2
-rw-r--r--front-end/package.json10
4 files changed, 40 insertions, 2 deletions
diff --git a/front-end/.env b/front-end/.env
index 1b4c9eb..cae7853 100644
--- a/front-end/.env
+++ b/front-end/.env
@@ -1,5 +1,5 @@
#The base url for all api requests
-VITE_API_URL="/api"
+VITE_API_URL="/"
VITE_CORS_ENABLED=false
#The VNLib.Plugins.Essentials.Accounts plugin security header value
diff --git a/front-end/Taskfile.yaml b/front-end/Taskfile.yaml
new file mode 100644
index 0000000..86bf0dc
--- /dev/null
+++ b/front-end/Taskfile.yaml
@@ -0,0 +1,28 @@
+
+#taskfile for building the libraries for admin and clients and creating their packages
+
+version: '3'
+
+tasks:
+
+ build:
+ cmds:
+ #install deps and run build
+ - npm install
+ - npm run build
+
+ #copy artifacts to temp directory
+ postbuild_success:
+ cmds:
+ - powershell -Command "mkdir bin -Force"
+ #tar the dist output and put it in the output dir
+ - cd dist && tar -czf '../bin/release.tgz' .
+
+ #clean hook
+ clean:
+ ignore_error: true
+ cmds:
+ - cmd: powershell -Command "Remove-Item -Recurse -Force node_modules"
+ - cmd: powershell -Command "Remove-Item -Recurse -Force dist"
+ - cmd: powershell -Command "Remove-Item -Recurse -Force bin"
+ - cmd: powershell -Command "Remove-Item release.tgz" \ No newline at end of file
diff --git a/front-end/package-lock.json b/front-end/package-lock.json
index f4aa9e6..868d074 100644
--- a/front-end/package-lock.json
+++ b/front-end/package-lock.json
@@ -7,6 +7,7 @@
"": {
"name": "@vnuge/cmnext-front-end",
"version": "0.1.1",
+ "license": "agpl3",
"dependencies": {
"@chenfengyuan/vue-qrcode": "^2.0.0",
"@fontsource/nunito": "^5.0.3",
@@ -53,6 +54,7 @@
}
},
"../lib/admin": {
+ "name": "@vnuge/cmnext-admin",
"version": "0.1.1",
"license": "agpl3",
"devDependencies": {
diff --git a/front-end/package.json b/front-end/package.json
index c41c456..091599c 100644
--- a/front-end/package.json
+++ b/front-end/package.json
@@ -3,13 +3,21 @@
"private": true,
"version": "0.1.1",
"type": "module",
- "main": "index.html",
+ "copyright": "Copyright \u00A9 2023 Vaughn Nugent",
"description": "The CMNext admin web UI, built with Tailwindcss and Vuejs",
+ "repository": "https://github.com/VnUgE/CMNext/tree/master/front-end",
+ "author": "Vaughn Nugent",
+ "output_dir": "bin",
+
+ "main": "index.html",
+ "license": "agpl3",
+
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
+
"dependencies": {
"@chenfengyuan/vue-qrcode": "^2.0.0",
"@fontsource/nunito": "^5.0.3",