-
Notifications
You must be signed in to change notification settings - Fork 583
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
[DRAFT] experiment to move source files in client to "src" folder #1408
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls -d */ | xargs -I {} bash -c "cd '{}' && mkdir src" ls -d */ | xargs -I {} bash -c "cd '{}' && mv commands src"
ls -d */ | xargs -I {} bash -c "cd '{}' && mv protocols src"
ls -d */ | xargs -I {} bash -c "cd '{}' && mv models src"
ls -d */ | xargs -I {} bash -c "cd '{}' && mv *.ts src"
ls -d */ | xargs -I {} bash -c "cd '{}' && sed -i 's/runtimeConfig\./src\/runtimeConfig./g' package.json"
ls -d */ | xargs -I {} bash -c "cd '{}' && sed -i '/\"remove-js\"/d' package.json" ls -d */ | xargs -I {} bash -c "cd '{}' && sed -i '/\"remove-maps\"/d' package.json" ls -d */ | xargs -I {} bash -c "cd '{}' && sed -i 's/ && npm run remove-js && npm run remove-maps//g' package.json"
ls -d */ | xargs -I {} bash -c "cd '{}' && sed -i 's/\"outDir\"/\"rootDir\": \"src\",\\n \"outDir\"/g' tsconfig.json"
ls -d */ | xargs -I {} bash -c "cd '{}' && sed -i 's/.\/package/..\/package/g' src/runtimeConfig*.ts"
'rootDir' is expected to contain all source files.
ls -d */ | xargs -I {} bash -c "cd '{}' && mkdir src" ls -d */ | xargs -I {} bash -c "cd '{}' && mv commands src" ls -d */ | xargs -I {} bash -c "cd '{}' && mv protocols src" ls -d */ | xargs -I {} bash -c "cd '{}' && mv models src" ls -d */ | xargs -I {} bash -c "cd '{}' && mv *.ts src" ls -d */ | xargs -I {} bash -c "cd '{}' && sed -i 's/runtimeConfig\./src\/runtimeConfig./g' package.json" ls -d */ | xargs -I {} bash -c "cd '{}' && sed -i '/\"remove-js\"/d' package.json" ls -d */ | xargs -I {} bash -c "cd '{}' && sed -i '/\"remove-maps\"/d' package.json" ls -d */ | xargs -I {} bash -c "cd '{}' && sed -i 's/ && npm run remove-js && npm run remove-maps//g' package.json" ls -d */ | xargs -I {} bash -c "cd '{}' && sed -i 's/\"outDir\"/\"rootDir\": \"src\",\\n \"outDir\"/g' tsconfig.json" ls -d */ | xargs -I {} bash -c "cd '{}' && sed -i 's/.\/package/..\/package/g' src/runtimeConfig*.ts" ls -d */ | xargs -I {} bash -c "cd '{}' && sed -i '1s/^/\/\/ @ts-ignore\n/' src/runtimeConfig.ts"
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue #, if available:
Attempt to fix #1306
Description of changes:
experiment to move source files in client to "src" folder
If tried in future, following shell script commands would be helpful (to run from
clients
andprotocol_tests
folders):Left WIP after finding out solution to 'package.json' is not under 'rootDir' in https://stackoverflow.com/questions/55753163 which would add more TSConfig files.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.