add version info

This commit is contained in:
Nolan Lawson 2018-03-28 18:16:42 -07:00
parent 4e67f36510
commit 9c7cef502e
2 changed files with 12 additions and 3 deletions

View File

@ -4,9 +4,11 @@
"version": "0.0.1", "version": "0.0.1",
"scripts": { "scripts": {
"lint": "standard", "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", "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", "start": "cross-env NODE_ENV=production node server.js",
"build-and-start": "run-s build start", "build-and-start": "run-s build start",
"build-svg": "node ./bin/build-svg.js", "build-svg": "node ./bin/build-svg.js",

View File

@ -1,6 +1,8 @@
<SettingsLayout page='settings/about' label="About Pinafore"> <SettingsLayout page='settings/about' label="About Pinafore">
<h1>About Pinafore</h1> <h1>About Pinafore</h1>
<h2>Version {{version}}</h2>
<p> <p>
Pinafore is <ExternalLink href="https://github.com/nolanlawson/pinafore">free and open-source software</ExternalLink> Pinafore is <ExternalLink href="https://github.com/nolanlawson/pinafore">free and open-source software</ExternalLink>
created by <ExternalLink href="https://nolanlawson.com">Nolan Lawson</ExternalLink> and distributed under the created by <ExternalLink href="https://nolanlawson.com">Nolan Lawson</ExternalLink> and distributed under the
@ -15,10 +17,15 @@
import SettingsLayout from '../../_components/settings/SettingsLayout.html' import SettingsLayout from '../../_components/settings/SettingsLayout.html'
import ExternalLink from '../../_components/ExternalLink.html' import ExternalLink from '../../_components/ExternalLink.html'
import { version } from '../../../package.json'
export default { export default {
components: { components: {
SettingsLayout, SettingsLayout,
ExternalLink ExternalLink
} },
data: () => ({
version
})
}; };
</script> </script>