Browse Source

change build for test servers, bump version to 0.3.1

kb/add-usage-guide
Trent Larson 6 months ago
parent
commit
ccea2486e4
  1. 11
      .env.development
  2. 19
      README.md
  3. 8
      package-lock.json
  4. 5
      package.json
  5. 1
      project.task.yaml
  6. 2
      vue.config.js

11
.env.development

@ -1,6 +1,7 @@
# Only the variables that start with VUE_APP_ are seen in the application process.env in Vue.
# this won't resolve as a URL on production; it's a URN only found in the test system
VUE_APP_BVC_MEETUPS_PROJECT_CLAIM_ID=https://endorser.ch/entity/01HNTZYJJXTGT0EZS3VEJGX7AK
VUE_APP_DEFAULT_ENDORSER_API_SERVER=http://localhost:3000
VUE_APP_DEFAULT_IMAGE_API_SERVER=http://localhost:3002
# I tried setting values here and using `vue-cli-service build --mode development`
# but it didn't create some things in "dist":
# - the "css" directory with the CSS extracted from Vue files
# - the sw_scripts-combined* files
#
# ¯\_(ツ)_/¯

19
README.md

@ -34,11 +34,24 @@ npm run lint
* Update the project.task.yaml & CHANGELOG.md & the version in package.json, run `npm install`.
* If production: change package.json to remove "_Test". Also record what version is on production.
* Record what version is currently on production.
* `npm run build-dev` for test servers or `npm run build` for production.
* Run the correct build
* Get on the server and back up the time-safari folder.
* Production
```
# This picks up values from .env.production
npm run build
```
* Development
```
# Set test values. (See .env.development for more details.)
# The test BVC_MEETUPS_PROJECT_CLAIM_ID does not resolve as a URL because it's only in the test DB and the prod redirect won't redirect there.
APP_TITLE="TimeSafari_Test" VUE_APP_BVC_MEETUPS_PROJECT_CLAIM_ID=https://endorser.ch/entity/01HNTZYJJXTGT0EZS3VEJGX7AK VUE_APP_DEFAULT_ENDORSER_API_SERVER=http://localhost:3000 VUE_APP_DEFAULT_IMAGE_API_SERVER=http://localhost:3002 npm run build
```
* Get on the server and back up the DB and the time-safari folder.
* `rsync -azvu -e "ssh -i ~/.ssh/..." dist ubuntutest@test.timesafari.app:time-safari`

8
package-lock.json

@ -1,12 +1,12 @@
{
"name": "TimeSafari_Test",
"version": "0.3.0",
"name": "TimeSafari",
"version": "0.3.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "TimeSafari_Test",
"version": "0.3.0",
"name": "TimeSafari",
"version": "0.3.1",
"dependencies": {
"@dicebear/collection": "^5.3.5",
"@dicebear/core": "^5.3.5",

5
package.json

@ -1,11 +1,10 @@
{
"name": "TimeSafari_Test",
"version": "0.3.0",
"name": "TimeSafari",
"version": "0.3.1",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"build-dev": "vue-cli-service build --mode development",
"lint": "vue-cli-service lint"
},
"dependencies": {

1
project.task.yaml

@ -1,6 +1,7 @@
tasks :
- bug maybe - a new give remembers the previous project
- alert & stop if give amount < 0
- onboarding video

2
vue.config.js

@ -3,6 +3,7 @@ const { gitDescribeSync } = require("git-describe");
const { exec } = require("child_process");
process.env.VUE_APP_GIT_HASH = gitDescribeSync().hash;
const APP_TITLE = process.env.APP_TITLE || require("./package.json").name;
module.exports = defineConfig({
transpileDependencies: true,
@ -30,6 +31,7 @@ module.exports = defineConfig({
],
},
pwa: {
name: APP_TITLE,
iconPaths: {
faviconSVG: "img/icons/safari-pinned-tab.svg",
},

Loading…
Cancel
Save