From 9c7cef502e181e378fe75681c1d91fddeb6f75bb Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Wed, 28 Mar 2018 18:16:42 -0700 Subject: [PATCH] add version info --- package.json | 6 ++++-- routes/_pages/settings/about.html | 9 ++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 822957f..210ba23 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,11 @@ "version": "0.0.1", "scripts": { "lint": "standard", - "dev": "npm run build-svg && run-p --race build-sass-watch serve", + "dev": "run-s build-svg serve-dev", + "serve-dev": "run-p --race build-sass-watch serve", "serve": "node server.js", - "build": "npm run globalize-css && npm run build-sass && npm run build-svg && sapper build && npm run deglobalize-css", + "build": "run-s globalize-css build-sass build-svg sapper-build deglobalize-css", + "sapper-build": "sapper build", "start": "cross-env NODE_ENV=production node server.js", "build-and-start": "run-s build start", "build-svg": "node ./bin/build-svg.js", diff --git a/routes/_pages/settings/about.html b/routes/_pages/settings/about.html index 733cb00..f9f65fa 100644 --- a/routes/_pages/settings/about.html +++ b/routes/_pages/settings/about.html @@ -1,6 +1,8 @@

About Pinafore

+

Version {{version}}

+

Pinafore is free and open-source software created by Nolan Lawson and distributed under the @@ -15,10 +17,15 @@ import SettingsLayout from '../../_components/settings/SettingsLayout.html' import ExternalLink from '../../_components/ExternalLink.html' + import { version } from '../../../package.json' + export default { components: { SettingsLayout, ExternalLink - } + }, + data: () => ({ + version + }) }; \ No newline at end of file