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

feat: move source files to "src" folder in clients #1632

Closed
wants to merge 19 commits into from

Conversation

trivikr
Copy link
Member

@trivikr trivikr commented Oct 28, 2020

Issue #, if available:
Fixes: #1306

Description of changes:
feat: move source files to "src" folder in clients

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

for dir in ./clients/*; do (cd "$dir" && rm -rf *.ts protocols commands models pagination); done
for dir in ./clients/*; do (cd "$dir" &&
sed -i 's/"outDir"/"rootDir":"src","outDir"/g' ./tsconfig.*); done
for dir in ./clients/*; do (cd "$dir" && sed -i 's/runtimeConfig\./src\/runtimeConfig./g' ./package.json); done
for dir in ./protocol_tests/*; do (cd "$dir" && rm -rf *.ts protocols commands models pagination); done
for dir in ./protocol_tests/*; do (cd "$dir" &&
sed -i 's/"outDir"/"rootDir":"src","outDir"/g' ./tsconfig.*); done
for dir in ./protocol_tests/*; do (cd "$dir" &&
sed -i 's/runtimeConfig\./src\/runtimeConfig./g' ./package.json); done
Reason: the outDir is two levels down. For example, "dist/es"
@trivikr trivikr force-pushed the move-source-code-to-src branch from 225d984 to cdfa015 Compare October 28, 2020 17:30
@trivikr trivikr marked this pull request as draft October 28, 2020 17:31
@trivikr
Copy link
Member Author

trivikr commented Oct 28, 2020

The manually run commands if we visit this PR for regenerating code in future:

for dir in ./clients/*; do (cd "$dir" && rm -rf *.ts protocols commands models pagination); done
for dir in ./clients/*; do (cd "$dir" && sed -i 's/"outDir"/"rootDir":"src","outDir"/g' ./tsconfig.*); done
for dir in ./clients/*; do (cd "$dir" && sed -i 's/runtimeConfig\./src\/runtimeConfig./g' ./package.json); done

for dir in ./protocol_tests/*; do (cd "$dir" && rm -rf *.ts protocols commands models pagination); done
for dir in ./protocol_tests/*; do (cd "$dir" && sed -i 's/"outDir"/"rootDir":"src","outDir"/g' ./tsconfig.*); done
for dir in ./protocol_tests/*; do (cd "$dir" && sed -i 's/runtimeConfig\./src\/runtimeConfig./g' ./package.json); done

@trivikr
Copy link
Member Author

trivikr commented Oct 30, 2020

Superceded by #1645

@trivikr trivikr closed this Oct 30, 2020
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 10, 2021
@trivikr trivikr deleted the move-source-code-to-src branch August 26, 2022 02:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move source files to "src" folder in clients
1 participant