summaryrefslogtreecommitdiffstats
path: root/software/javascript.page
diff options
context:
space:
mode:
Diffstat (limited to 'software/javascript.page')
-rw-r--r--software/javascript.page29
1 files changed, 29 insertions, 0 deletions
diff --git a/software/javascript.page b/software/javascript.page
new file mode 100644
index 0000000..217b6e5
--- /dev/null
+++ b/software/javascript.page
@@ -0,0 +1,29 @@
+
+## In-Browser Vanilla Javascript
+
+Alternatives to jQuery: https://blog.garstasio.com/you-dont-need-jquery/
+
+
+## Development Environment with nvm
+
+Use `nvm` to install nodejs, npm, etc, separately from operating system
+packages.
+
+`nvm` asks you to do a curl/bash thing, but you can just download the `nvm.sh`
+script, put it in `~/.nvm/nvm.sh`, and source it from `~/.bashrc`. Or do a git
+checkout there or something?
+
+ mkdir -p ~/.nvm
+ cd ~/.nvm
+ wget https://raw.githubusercontent.com/nvm-sh/nvm/master/nvm.sh
+ echo 'export NVM_DIR="$HOME/.nvm' >> ~/.bash_profile
+ echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> ~/.bash_profile
+ echo '[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"' >> ~/.bash_profile
+
+Then for a specific project, figure out a recent version of node and then:
+
+ cd $PROJECTDIR
+ nvm install 18
+ nvm use 18
+
+ npm install --global yarn