Skip to content
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

Setup Script #17

Merged
merged 8 commits into from
Jun 9, 2020
Merged

Setup Script #17

merged 8 commits into from
Jun 9, 2020

Conversation

jordygarcias
Copy link
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

github-actions bot commented Jun 8, 2020

@jordygarcias jordygarcias requested a review from brettstack June 9, 2020 00:03
Copy link
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!

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

@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
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 :)

const APIPath = 'packages/api/'

const packageJson = 'package.json'
const yamlFile = 'serverless.yaml'
Copy link
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
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