Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into main
Browse files Browse the repository at this point in the history
# Conflicts:
#	dev_environments/README.md
#	dev_environments/cplusplus.ps1
#	dev_environments/javascript.ps1
#	dev_environments/python.ps1
#	dev_environments/ruby.ps1
#	javascript-webstorm.ps1
#	python-pycharm.ps1
#	ruby-rubymine.ps1
  • Loading branch information
jmasonlee committed Nov 9, 2020
2 parents afba336 + a29d214 commit 677de66
Show file tree
Hide file tree
Showing 20 changed files with 209 additions and 42 deletions.
48 changes: 11 additions & 37 deletions dev_environments/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,41 +10,15 @@ The goal here is:

**Note** All goals may not be met, currently

TODO:
-golang
# Process

1. Many of these scripts were created with the help of Exercism
* Sign up for the track on [Exercism](https://exercism.io/my/tracks) and Practice Mode
* Select "Hello World" and click the "Download" button on the right of the screen.
* Paste that into your command line
* On the right, a little further down, click on "Ïnstalling <language>"
* Follow instructions for Windows installation (or check Chocolatey for a package)
* Open Intellij and Import Project (click next on all the pop-ups)
* Open the Hello World project and look for a test file and open it.
* Look for the "Running the Tests" link and click on that to get instructions for running tests

-rust

-kotlin

-python

-JavaScript

-Java

-C#

-C++

-Clojure

- ReasonML

elm

Haskell

elixir

Prolog

Julia

Ruby

swift

erlang

J
2 changes: 1 addition & 1 deletion dev_environments/csharp.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# How to run this file:
# PS> iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/dev-environments/csharp.ps1 | iex
# PS> iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/dev_environments/csharp.ps1 | iex

iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/windows.ps1 | iex
iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/visual-studio.ps1 | iex
Expand Down
5 changes: 5 additions & 0 deletions dev_environments/elixir.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# How to run this file:
# PS> iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/elixir.ps1 | iex

iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/windows.ps1 | iex
iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/visual-studio.ps1 | iex
17 changes: 17 additions & 0 deletions dev_environments/elm.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# How to run this file:
# PS> iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/dev_environments/elm.ps1 | iex

iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/windows.ps1 | iex
iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/visual-studio.ps1 | iex

choco install nodejs
# reload powershell to get environment running
npm install --global elm-test@latest-0.19.1
npm install --global elm-format@latest-0.19.1
cinst intellijidea

# intellij elm
# link elm compiler located in C:\Program Files (x86)\Elm\0.19.1\bin\elm.exe
# link elm-format and elm-test located in C:\Users\Administrator\AppData\Roaming\npm
# Run tests via the command line (you may have to reload the terminal after installation before trying this)
# elm-test
13 changes: 13 additions & 0 deletions dev_environments/erlang.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# How to run this file:
# PS> iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/dev_environments/erlang.ps1 | iex

iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/windows.ps1 | iex
iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/visual-studio.ps1 | iex

choco install erlang
choco install rebar3
cinst intellijidea

# intellij erlang
# Run tests via the command line (you may have to reload the terminal after installation before trying this)
# rebar3 eunit
8 changes: 8 additions & 0 deletions dev_environments/golang.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# How to run this file:
# PS> iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/dev_environments/golang.ps1 | iex

iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/windows.ps1 | iex
iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/golang-goland.ps1 | iex

# Clone repo
& "C:\Program Files\Git\cmd\git.exe" clone https://github.com/OrangePants-R/starter-project-go-coderetreat C:\Code\starter-project-go-coderetreat
13 changes: 13 additions & 0 deletions dev_environments/haskell.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# How to run this file:
# PS> iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/dev_environments/haskell.ps1 | iex

iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/windows.ps1 | iex
iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/visual-studio.ps1 | iex

choco install haskell-stack
cinst intellijidea
# intellij haskell-force

#Running test does some install as well:
# stack test

2 changes: 1 addition & 1 deletion dev_environments/java.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# How to run this file:
# PS> iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/dev-environments/java.ps1 | iex
# PS> iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/dev_environments/java.ps1 | iex

iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/windows.ps1 | iex
iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/java-intellij.ps1 | iex
Expand Down
2 changes: 1 addition & 1 deletion dev_environments/javascript.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/windows
iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/javascript-webstorm.ps1 | iex

# Clone repo
& "C:\Program Files\Git\cmd\git.exe" clone https://github.com/approvals/ApprovalTests.js.StarterProject.git C:\Code\ApprovalTests.js.StarterProject
& "C:\Program Files\Git\cmd\git.exe" clone https://github.com/approvals/ApprovalTests.js.StarterProject.git C:\Code\ApprovalTests.js.StarterProject
11 changes: 11 additions & 0 deletions dev_environments/julia.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# How to run this file:
# PS> iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/dev_environments/julia.ps1 | iex

iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/windows.ps1 | iex
iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/visual-studio.ps1 | iex

choco install julia
cinst intellijidea
# intellij julia pluggin


13 changes: 13 additions & 0 deletions dev_environments/kotlin.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# How to run this file:
# PS> iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/dev_environments/kotlin.ps1 | iex

iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/windows.ps1 | iex
iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/visual-studio.ps1 | iex

choco install openjdk
choco install gradle
# reload powershell to get environment running
cinst intellijidea

# Run tests via the command line (you may have to reload the terminal after installation before trying this):
# cargo test
12 changes: 12 additions & 0 deletions dev_environments/prolog.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# How to run this file:
# PS> iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/dev_environments/prolog.ps1 | iex

iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/windows.ps1 | iex
iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/visual-studio.ps1 | iex

choco install SWI-Prolog
cinst intellijidea


# Run tests via the command line (you may have to reload the terminal after installation before trying this):
# swipl -f hello_world.pl -s hello_world_tests.plt -g run_tests,halt -t 'halt(1)'
2 changes: 1 addition & 1 deletion dev_environments/python.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/windows
iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/python-pycharm.ps1 | iex

# Clone repo
& "C:\Program Files\Git\cmd\git.exe" clone https://github.com/approvals/ApprovalTests.Python.StarterProject.git C:\Code\ApprovalTests.Python.StarterProject
& "C:\Program Files\Git\cmd\git.exe" clone https://github.com/approvals/ApprovalTests.Python.StarterProject.git C:\Code\ApprovalTests.Python.StarterProject
18 changes: 18 additions & 0 deletions dev_environments/reasonml.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# How to run this file:
# PS> iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/dev_environments/reasonml.ps1 | iex

iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/windows.ps1 | iex
iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/visual-studio.ps1 | iex

choco install nodejs
# reload powershell to get environment running
npm install -g bs-platform
cinst intellijidea

# intellij reasonML
# When you open a ReasonML project, allow IntelliJ to install the ReasonML plugin it suggests
# Run tests via the command line (you may have to reload the terminal after installation before trying this):
# run: npm install
# Open two shells, and in the first, start the build process.
# run: npm start
# run: npm test
2 changes: 1 addition & 1 deletion dev_environments/ruby.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/windows
iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/ruby-rubymine.ps1 | iex

# Clone repo
& "C:\Program Files\Git\cmd\git.exe" clone https://github.com/JonKruger/tdd-starter-project.git C:\Code\tdd-starter-project
& "C:\Program Files\Git\cmd\git.exe" clone https://github.com/JonKruger/tdd-starter-project.git C:\Code\tdd-starter-project
17 changes: 17 additions & 0 deletions dev_environments/rust.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# How to run this file:
# PS> iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/dev_environments/rust.ps1 | iex

iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/windows.ps1 | iex
iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/visual-studio.ps1 | iex

choco install rust
choco install rustup.install
# reload powershell to get environment running
rustup self update
rustup component add rustfmt
rustup component add clippy

cinst intellijidea

# Run tests via the command line (you may have to reload the terminal after installation before trying this):
# cargo test
17 changes: 17 additions & 0 deletions dev_environments/swift.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# How to run this file:
# PS> iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/full.net.machine.ps1 | iex

iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/windows.ps1 | iex
iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/visual-studio.ps1 | iex

choco install swiftforwindows
# reload powershell to get environment running
"C:\Swift\bin\swiftc.exe" -swift-version 4 "C:\Swift\Samples\Hello\Hello.swift" -o "C:\Swift\RuntimeEnv\Hello.exe"
cinst intellijidea

# Run the following command: "C:\Swift\bin\Swift for Windows.exe"
# It loads a dialog from which you can select a file to compile
# The compiled file is output by default to C:\Swift\RuntimeEnv
# Running the executable in that folder seems to work.
# Run tests via the command line (you may have to reload the terminal after installation before trying this)
# "C:\Swift\bin\swiftc.exe" -swift-version 4 "C:\Users\Administrator\Exercism\swift\hello-world\Sources\HelloWorld\HelloWorld.swift" -o "C:\Swift\RuntimeEnv\HelloWorld.exe" && "C:\Swift\RuntimeEnv\HelloWorld.exe"
24 changes: 24 additions & 0 deletions dev_environments/swift_sample.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
func hello() -> String {
return "hello"
}

func assertEquals(_ expected: String, _ actual: String) {
if expected == actual {
print("Passed.")
} else {
print("Failed.")
print("Expected: " + expected)
print("Actual: " + actual)
}
}

func testNoName() {
let expected = "Hello, World!"
assertEquals(expected, hello())
}

func testEverything() {
testNoName()
}

testEverything()
14 changes: 14 additions & 0 deletions elixir-intellij.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# This script
# iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/java-intellij.ps1 | iex

#Requires -RunAsAdministrator

iwr -useb cin.st | iex
choco feature enable --name=allowGlobalConfirmation
choco install elixir
cinst intellijidea

# Install the intellij elixir plugin


Write-Host -Foreground yellow "Reboot when done"
11 changes: 11 additions & 0 deletions golang-goland.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This script
# iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/golang-goland.ps1 | iex

#Requires -RunAsAdministrator

iwr -useb cin.st | iex
choco feature enable --name=allowGlobalConfirmation
cinst golang
cinst goland

Write-Host -Foreground yellow "Reboot when done"

0 comments on commit 677de66

Please sign in to comment.