Skip to content

Setup Script#17

Merged
brettstack merged 8 commits intomasterfrom
feature-setup-script
Jun 9, 2020
Merged

Setup Script#17
brettstack merged 8 commits intomasterfrom
feature-setup-script

Conversation

@jordygarcias
Copy link
Copy Markdown
Contributor

What does this PR do?
It implements a new script to set up the project, to avoid developers to replace by themselves the application name.

Any background context you want to provide?
This setup script includes running npm install command on the API and UI packages.

To run this new script, the developers need to run npm run setup --appName= --shortName= if shortName is not provided, the script will use appName instead.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 8, 2020

@jordygarcias jordygarcias requested a review from brettstack June 9, 2020 00:03
Copy link
Copy Markdown
Contributor

@brettstack brettstack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Main issue is the hardcoded iamRoleStatementsName. Other than that, looks good!

Comment thread scripts/installDependencies.js Outdated
Comment thread scripts/installDependencies.js Outdated
Comment thread scripts/replaceFlags.js Outdated
Comment thread serverless.yaml Outdated
@denisse-dev denisse-dev self-requested a review June 9, 2020 22:20
Copy link
Copy Markdown

@denisse-dev denisse-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

But please rebase and amend your commits before merging so we can have fewer commits with more meaningful messages.

Copy link
Copy Markdown
Contributor

@NellyGzzA NellyGzzA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a small comment, overall lgtm :)

Comment thread scripts/constants.js
const APIPath = 'packages/api/'

const packageJson = 'package.json'
const yamlFile = 'serverless.yaml'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(nit) I'm not 100% sure about yamlFile because it isn't descriptive as our other constants

@brettstack brettstack merged commit 094edd2 into master Jun 9, 2020
@brettstack brettstack deleted the feature-setup-script branch June 9, 2020 22:45
github-actions Bot pushed a commit that referenced this pull request Jun 9, 2020
# [1.2.0](v1.1.4...v1.2.0) (2020-06-09)

### Features

* add setup script ([#17](#17)) ([094edd2](094edd2))
@brettstack
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants