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

Next top-level changes to the project #24

Closed
prasadtalasila opened this issue Mar 29, 2023 · 18 comments
Closed

Next top-level changes to the project #24

prasadtalasila opened this issue Mar 29, 2023 · 18 comments
Assignees

Comments

@prasadtalasila
Copy link
Contributor

prasadtalasila commented Mar 29, 2023

  1. Fix top-level README.md
  2. Remove data directory
  3. Explore the possibility of bring the following config files to top-level?
    a. tsconfig.json
    b. .eslintrc
    c. .eslintignore

    d. husky --> might require a top-level script/git-hooks.bash in script
  4. Add docs/INSTALL.md
@prasadtalasila prasadtalasila self-assigned this Mar 29, 2023
@prasadtalasila
Copy link
Contributor Author

Add ports. env information of all the project packages here.

@prasadtalasila
Copy link
Contributor Author

prasadtalasila commented Mar 29, 2023

Notes on Husky:

We also added husky to our pipeline so it runs pre-commit and pre-push:

    Commit: Will format all ts,tsx,css,scss files with Prettier and run eslint. If eslint fails, the commit won't go through. Override in terminal with git commit -m "message" --no-verify
    Push: Will run all unittest with yarn jest . --coverage=false . If any tests fails, the push will fail. Override with in terminal HUSKY=0 git push

Also update codeclimate.yml to increase the duplication line threshold

@prasadtalasila
Copy link
Contributor Author

prasadtalasila commented Mar 29, 2023

Fix the URL for codecov in STATUS.md

@prasadtalasila
Copy link
Contributor Author

prasadtalasila commented Mar 31, 2023

Update docs/LIB-MS.md with config examples from PR #23

An update to docs/LIB-MS.md is required to provide an example graphql query and response for both local and gitlab modes.

@prasadtalasila
Copy link
Contributor Author

prasadtalasila commented Mar 31, 2023

Rename vagrant user in install script to ``$USER`

@prasadtalasila
Copy link
Contributor Author

prasadtalasila commented Apr 6, 2023

Deduplicate script/install.bash and deploy/vagrant/make-boxes/provision.sh. Write a shell function and place it in script/functions.bash. See a good answer on stackoverflow.

Remember to separate out the docker pull commands into a separate function/shell script to avoid install failures.

@prasadtalasila
Copy link
Contributor Author

Notes on Husky:

We also added husky to our pipeline so it runs pre-commit and pre-push:

    Commit: Will format all ts,tsx,css,scss files with Prettier and run eslint. If eslint fails, the commit won't go through. Override in terminal with git commit -m "message" --no-verify
    Push: Will run all unittest with yarn jest . --coverage=false . If any tests fails, the push will fail. Override with in terminal HUSKY=0 git push

Also update codeclimate.yml to increase the duplication line threshold

@SyntaxXeror , there is .husky at the top-level of the project. Do we also need client/.husky?

@prasadtalasila
Copy link
Contributor Author

Commit ade0558 resolves some of the issues.

@prasadtalasila
Copy link
Contributor Author

prasadtalasila commented Apr 7, 2023

Add yarn build command to docs/LIB-MS.md

@prasadtalasila
Copy link
Contributor Author

In deploy/vagrant/make_boxes/dtaas/README.md, after line-19, add the following two commands:

mv key vagrant
mv key.pub vagrant.pub

@prasadtalasila
Copy link
Contributor Author

prasadtalasila commented Apr 7, 2023

Correct build/static/env.js in docs/CLIENT.md to build/env.js

@SyntaxXeror
Copy link
Contributor

I need @Omarley7 to answer this

@Omarley7
Copy link
Contributor

Omarley7 commented Apr 8, 2023

Notes on Husky:

We also added husky to our pipeline so it runs pre-commit and pre-push:

    Commit: Will format all ts,tsx,css,scss files with Prettier and run eslint. If eslint fails, the commit won't go through. Override in terminal with git commit -m "message" --no-verify
    Push: Will run all unittest with yarn jest . --coverage=false . If any tests fails, the push will fail. Override with in terminal HUSKY=0 git push

Also update codeclimate.yml to increase the duplication line threshold

@SyntaxXeror , there is .husky at the top-level of the project. Do we also need client/.husky?

client/.husky can safely be deleted. It was an implementation mistake that I made and is currently not being used. Everything is correctly handled by <root>/.husky. @prasadtalasila do you want me to look further into the potential need of script/git-hooks.bash or is that already addressed in Commit ade0558?

@prasadtalasila
Copy link
Contributor Author

prasadtalasila commented Apr 8, 2023 via email

@prasadtalasila
Copy link
Contributor Author

In deploy/vagrant/make_boxes/dtaas/README.md, after line-19, add the following two commands:

mv key vagrant
mv key.pub vagrant.pub

done in commit 4293b8f

@Omarley7
Copy link
Contributor

Omarley7 commented Apr 10, 2023

@prasadtalasila Sorry I missed this issue when responding in #34. I still don't fully understand what you meant by this:

One obvious solution is to copy husky.sh into .husky directory. But the versioning goes out the window. Is there a better solution?

Why does versioning go out the window, if we move husky.sh to top level?

@prasadtalasila
Copy link
Contributor Author

prasadtalasila commented Apr 10, 2023

Pending Tasks:

  1. docs/admin/INSTALL.md. This INSTALL wiki page needs to be completed by everyone before we migrate the page into docs/admin.
  2. Deduplicate script/install.bash and deploy/vagrant/make-boxes/provision.sh. Separate out the docker pull commands into a smaller shell script

@prasadtalasila
Copy link
Contributor Author

All the changes done on release-v0.2 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants