-
Notifications
You must be signed in to change notification settings - Fork 0
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 lint workflow @comet/create-app
#583
base: main
Are you sure you want to change the base?
Conversation
d9db1bd
to
13259ad
Compare
@comet/create-app
@comet/create-app
13259ad
to
1fe4e2b
Compare
@@ -17,6 +17,7 @@ The following arguments can be passed to customize the project setup: | |||
|
|||
- `project-name` (required): Specifies the name of the project. It will be used as the directory name for the project. | |||
- `-ni` or `--no-install`: Disables the automatic installation of dependencies. | |||
- `-nc` or `--no-commit`: Disables the initial commit. |
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.
I figured that committing in the pipeline doesn't make sense. However, now the repository initialization isn't tested. What do you think? Should I try if committing in the pipeline even works?
- name: Remove the site | ||
run: cd create-app/test && node ../bin/index.js remove-site |
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.
After this, I'd like to check if the script worked. I can think of two ways:
- Start the application and see if it still runs
- Check for occurrences of certain terms, e.g., site and site config.
I believe 2. would be enough, what do you think?
@@ -10,8 +10,10 @@ export function runEslintFix(verbose: boolean) { | |||
for (const microservice of microservices) { | |||
if (!fs.existsSync(microservice)) { | |||
continue; | |||
} else if (!hasDependenciesInstalled(microservice) && verbose) { |
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.
The if didn't work as expected, because verbose was false or undefined. Split into two ifs to get it to work again.
This adds a lint workflow for
@comet/create-app
. It lints, builds, and runs the script.