Add 40x scripts

This commit is contained in:
Donovan Glover 2018-08-31 16:06:12 -04:00
parent 8aabd763a0
commit fe4db5a94b
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
4 changed files with 68 additions and 0 deletions

16
sh/401-node Normal file
View File

@ -0,0 +1,16 @@
#!/bin/sh
#
# Node lets us write JavaScript code outside of the browser.
#
# Yarn is the preferred dependency manager, however, some programs
# have npm hard-coded as a dependency, so we install that as well.
#
# https://wiki.archlinux.org/index.php/Node.js
set -xe
pacman -S nodejs
pacman -S npm
pacman -S yarn

21
sh/402-crystal Normal file
View File

@ -0,0 +1,21 @@
#!/bin/sh
#
# Crystal is a nice programming language that lets us use
# the usability of Ruby with the performance of C.
#
# `shards` is the official dependency manager for Crystal.
#
# The low level virtual machine (llvm) is used to build
# crystal directly from the source. This is useful when
# we're making changes to the Crystal programming language
# itself.
#
# https://wiki.archlinux.org/index.php/Crystal
set -xe
pacman -S crystal
pacman -S shards
pacman -S llvm

21
sh/403-rust Normal file
View File

@ -0,0 +1,21 @@
#!/bin/sh
#
# Rust is a nice programming language that finds many errors
# for us at compile time. This is useful for writing safe code.
#
# The `rustup` package is used over `rust` because this allows us
# to have multiple rust versions at any given time and update them
# as needed.
#
# There are 3 toolchains: stable, beta, and nightly. In this script
# we install the stable toolchain and make it the default.
#
# https://wiki.archlinux.org/index.php/Rust
set -xe
pacman -S rustup
rustup install stable
rustup default stable

10
sh/404-java Normal file
View File

@ -0,0 +1,10 @@
#!/bin/sh
#
# Java is a programming language used in many programming contests.
# This is arguably the only reason why we have it here.
#
# https://wiki.archlinux.org/index.php/Java
set -xe
pacman -S jdk10-openjdk