diff --git a/dev_environments/README.md b/dev_environments/README.md index 7313847..fe2c1b4 100644 --- a/dev_environments/README.md +++ b/dev_environments/README.md @@ -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 " + * 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 \ No newline at end of file diff --git a/dev_environments/csharp.ps1 b/dev_environments/csharp.ps1 index e1881c5..0f3f1de 100644 --- a/dev_environments/csharp.ps1 +++ b/dev_environments/csharp.ps1 @@ -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 diff --git a/dev_environments/elixir.ps1 b/dev_environments/elixir.ps1 new file mode 100644 index 0000000..004d436 --- /dev/null +++ b/dev_environments/elixir.ps1 @@ -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 diff --git a/dev_environments/elm.ps1 b/dev_environments/elm.ps1 new file mode 100644 index 0000000..b348718 --- /dev/null +++ b/dev_environments/elm.ps1 @@ -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 diff --git a/dev_environments/erlang.ps1 b/dev_environments/erlang.ps1 new file mode 100644 index 0000000..192f1f9 --- /dev/null +++ b/dev_environments/erlang.ps1 @@ -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 diff --git a/dev_environments/golang.ps1 b/dev_environments/golang.ps1 new file mode 100644 index 0000000..2d1ac97 --- /dev/null +++ b/dev_environments/golang.ps1 @@ -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 \ No newline at end of file diff --git a/dev_environments/haskell.ps1 b/dev_environments/haskell.ps1 new file mode 100644 index 0000000..dcef016 --- /dev/null +++ b/dev_environments/haskell.ps1 @@ -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 + diff --git a/dev_environments/java.ps1 b/dev_environments/java.ps1 index af53210..e15e09e 100644 --- a/dev_environments/java.ps1 +++ b/dev_environments/java.ps1 @@ -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 diff --git a/dev_environments/javascript.ps1 b/dev_environments/javascript.ps1 index 0634e66..9a5ec0f 100644 --- a/dev_environments/javascript.ps1 +++ b/dev_environments/javascript.ps1 @@ -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 \ No newline at end of file +& "C:\Program Files\Git\cmd\git.exe" clone https://github.com/approvals/ApprovalTests.js.StarterProject.git C:\Code\ApprovalTests.js.StarterProject diff --git a/dev_environments/julia.ps1 b/dev_environments/julia.ps1 new file mode 100644 index 0000000..5382e74 --- /dev/null +++ b/dev_environments/julia.ps1 @@ -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 + + diff --git a/dev_environments/kotlin.ps1 b/dev_environments/kotlin.ps1 new file mode 100644 index 0000000..daa529e --- /dev/null +++ b/dev_environments/kotlin.ps1 @@ -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 diff --git a/dev_environments/prolog.ps1 b/dev_environments/prolog.ps1 new file mode 100644 index 0000000..4fecc64 --- /dev/null +++ b/dev_environments/prolog.ps1 @@ -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)' diff --git a/dev_environments/python.ps1 b/dev_environments/python.ps1 index bf92a0b..8cbe5bf 100644 --- a/dev_environments/python.ps1 +++ b/dev_environments/python.ps1 @@ -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 \ No newline at end of file +& "C:\Program Files\Git\cmd\git.exe" clone https://github.com/approvals/ApprovalTests.Python.StarterProject.git C:\Code\ApprovalTests.Python.StarterProject diff --git a/dev_environments/reasonml.ps1 b/dev_environments/reasonml.ps1 new file mode 100644 index 0000000..711c4d0 --- /dev/null +++ b/dev_environments/reasonml.ps1 @@ -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 diff --git a/dev_environments/ruby.ps1 b/dev_environments/ruby.ps1 index 0130192..50ab6ef 100644 --- a/dev_environments/ruby.ps1 +++ b/dev_environments/ruby.ps1 @@ -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 \ No newline at end of file +& "C:\Program Files\Git\cmd\git.exe" clone https://github.com/JonKruger/tdd-starter-project.git C:\Code\tdd-starter-project diff --git a/dev_environments/rust.ps1 b/dev_environments/rust.ps1 new file mode 100644 index 0000000..efca92a --- /dev/null +++ b/dev_environments/rust.ps1 @@ -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 diff --git a/dev_environments/swift.ps1 b/dev_environments/swift.ps1 new file mode 100644 index 0000000..1e59db0 --- /dev/null +++ b/dev_environments/swift.ps1 @@ -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" diff --git a/dev_environments/swift_sample.swift b/dev_environments/swift_sample.swift new file mode 100644 index 0000000..b4b9244 --- /dev/null +++ b/dev_environments/swift_sample.swift @@ -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() \ No newline at end of file diff --git a/elixir-intellij.ps1 b/elixir-intellij.ps1 new file mode 100644 index 0000000..446889c --- /dev/null +++ b/elixir-intellij.ps1 @@ -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" diff --git a/golang-goland.ps1 b/golang-goland.ps1 new file mode 100644 index 0000000..b466173 --- /dev/null +++ b/golang-goland.ps1 @@ -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"