Skip to content

Commit

Permalink
Merge pull request #195 from concord-consortium/v1.1.0
Browse files Browse the repository at this point in the history
Version 1.1.0
  • Loading branch information
dougmartin authored Sep 8, 2020
2 parents ba0ae85 + 3a57b5c commit 8248946
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions build-support/build-opts.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
const execSync = require('sync-exec')
const packageJSON = require('../package.json')
const { env } = process
const codap = !!env.codap // include CODAP-specific modifications

const commitHash = execSync('git log -1 --pretty=format:"%H"').stdout
const date = new Date()
const version = packageJSON.version

const replacementStrings = {
html: [
{
search: /__VERSION__/g,
replace: version
},
{
search: /__COMMIT__/g,
replace: commitHash
Expand Down
2 changes: 1 addition & 1 deletion 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
Expand Up @@ -2,7 +2,7 @@
"name": "cloud-file-manager",
"description": "Wrapper for providing file management for web applications",
"author": "The Concord Consortium",
"version": "1.0.1",
"version": "1.1.0",
"repository": {
"type": "git",
"url": "https://github.com/concord-consortium/cloud-file-manger"
Expand Down
2 changes: 1 addition & 1 deletion src/assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h1>
<a href="https://github.com/concord-consortium/cloud-file-manager">Cloud File Manager Library</a>
</h1>
<p>
Commit <a href="https://github.com/concord-consortium/cloud-file-manager/commit/__COMMIT__">__COMMIT__</a> deployed on __DATE__.
Version __VERSION__ using commit <a href="https://github.com/concord-consortium/cloud-file-manager/commit/__COMMIT__">__COMMIT__</a> deployed on __DATE__.
</p>
</body>
</html>

0 comments on commit 8248946

Please sign in to comment.