Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,13 @@ npm run sandbox
```

Open a browser to http://localhost:2468/graphql to query the Scripture data using GraphQL.

### Release

The version of the PWA can be read from the property `version` from the file `_app/version.json`.
AppBuilders includes the latest tagged version of the repo. Before making a new release with the
AppBuilders, do the following:

- update the version in package.json with the version of the AppBuilders
- merge into main
- tag main with "v{version}"
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "appbuilder-pwa",
"version": "0.0.1",
"version": "13.3.2",
"type": "module",
"scripts": {
"dev": "concurrently --restart-tries -1 --restart-after 10 -t HH:mm:ss -p \"[{time} {name}]\" -n Converter,Svelte \"ts-node convert/index.ts --watch\" \"vite dev --host\"",
Expand Down
9 changes: 9 additions & 0 deletions svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import { readFileSync } from 'fs';
import adapter from '@sveltejs/adapter-static';
import { sveltePreprocess } from 'svelte-preprocess';

// Read template version from package.json
const packageJson = JSON.parse(readFileSync('package.json', 'utf-8'));
const templateVersion = packageJson.version;
const buildTimestamp = Date.now();

/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
Expand Down Expand Up @@ -30,6 +36,9 @@ const config = {
options: {
scope: process.env.BUILD_BASE_PATH
}
},
version: {
name: `${templateVersion}-${buildTimestamp}`
}
}
};
Expand Down