-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add version info based on commit hash. #16
Add version info based on commit hash. #16
Conversation
…slint setting auto-added[ch2336]
An approach on adding version to the api pieces. |
@@ -13,6 +13,10 @@ import { express as voyagerMiddleware } from 'graphql-voyager/middleware'; | |||
import apolloServer from './graphql'; | |||
import expressLoggingOptions from './expressLogOptions'; | |||
|
|||
const { version } = require('../package.json'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interesting approach. while legit, is that really legit or are there some downstream node/npm circular issues? I honestly have no clue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
None that I have run into in the past. package.json is just a file, and the goal is to have a single place for version info
@@ -51,7 +51,9 @@ jobs: | |||
with: | |||
name: tc-api | |||
- name: write .env file | |||
run: echo ${{ secrets.ENV_FILE_PROD }} | base64 -d > tc-api/.env | |||
run: | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check out https://github.com/lerna/lerna. this might be a package we can use to help with the version numbers. I see it used a lot across open source projects.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is your thought with lerna to put all the api's in one repo and configure as packages with lerna? That's a lot of change
"peacock.lightForegroundColor": "#000" | ||
"peacock.lightForegroundColor": "#000", | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check this out.. microsoft/vscode#87096 mind you we already have formatOnSave, now I have no clue what we should be using.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah there was a message in vscode that said this is the . new place to do this. The old setting is underlined as deprecated.
Sentry will tie to this. New eslint setting auto-added[ch2336]