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

Additonal tools & config tasks for dev env #2

Open
cloudwheels opened this issue Oct 22, 2019 · 0 comments
Open

Additonal tools & config tasks for dev env #2

cloudwheels opened this issue Oct 22, 2019 · 0 comments

Comments

@cloudwheels
Copy link
Owner

cloudwheels commented Oct 22, 2019

  • Configure git email & name


git flow?

-DNS tools
sudo apt-get install dnsutils -y

?Gen a release key

May not be possible, so use:
Create debug keystore...

keytool -genkey -v -keystore ~/.android/debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000

List

keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android

?Gen a release key:

keytool -genkey -v -keystore my-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000

Configure grade daemon
https://cloudwheels.github.io/TIL/improve-gradle-performance/
Create a ~/.gradle/gradle.properties file.

Add org.gradle.daemon=true to allow/encourage reuse from previous builds


Node (with NVM) plus yarn, ?global dev packages eg. nodemon

To install or update nvm, you should run the install script. To do that, you may either download and run the script manually, or use the following cURL or Wget command:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh | bash
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh | bash

Running either of the above commands downloads a script and runs it. The script clones the nvm repository to ~/.nvm, and adds the source lines from the snippet below to your profile (~/.bash_profile, ~/.zshrc, ~/.profile, or ~/.bashrc).

  • might be worth setting this (but seems to add to ~/.bashrc, so OK
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm

Note: If the environment variable $XDG_CONFIG_HOME is present, it will place the nvm files there.

Note: You can add --no-use to the end of the above script (...nvm.sh --no-use) to postpone using nvm until you manually use it.

You can customize the install source, directory, profile, and version using the NVM_SOURCE, NVM_DIR, PROFILE, and NODE_VERSION variables. Eg: curl ... | NVM_DIR="path/to/nvm". Ensure that the NVM_DIR does not contain a trailing slash.

NB. The installer can use git, curl, or wget to download nvm, whatever is available.

Note: On Linux, after running the install script, if you get nvm: command not found or see no feedback from your terminal after you type command -v nvm, simply close your current terminal, open a new terminal, and try verifying again.

Default global packages from file while installing

If you have a list of default packages you want installed every time you install a new version, we support that too -- just add the package names, one per line, to the file $NVM_DIR/default-packages You can add anything npm would accept as a package argument on the command line.

# $NVM_DIR/default-packages
# examples in install instructions:
rimraf
[email protected]
stevemao/left-pad
####
# SET UP FILE(S)  IN THIS REPO WITH POSSIBLE DEFAULT PACKAGES
firebase-tools
###

Install some versions

last one will be the default (also aliased as node)
Probably need 8 and 10 for e.g. cloud function support


?Docker, Portainer, ???config for external image storage

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

1 participant