C:\Users\Conor O'Brien\Documents\Programming\Cheddar
λ bash.exe -c /usr/local/bin/cheddar
/usr/bin/bash: /usr/local/bin/cheddar: No such file or directory
All it needs to do is ensure git, and node, are installed, if not install them. Then clone cheddar, do a npm install then a ./node_modules/.bin/grunt build, and then write a script to install
1. Check if git, and node are installed, if not, install them 2. Clone cheddar 3. npm install 4. ./node_modules/.bin/grunt build 5. Somehow execute `./dist/cli/cheddar.js` with node when the `cheddar` command is run
@ECHO OFF
REM Cheddar install script for windows
REM Author: Conor O'Brien
SET SILENT=^>nul 2^>^&1
WHERE git %SILENT%
IF %ERRORLEVEL% NEQ 0 (
ECHO You appear not to have git installed. Please proceed to the following link:
ECHO git-scm.com/download/win
GOTO EOF
)
WHERE npm %SILENT%
IF %ERRORLEVEL% NEQ 0 (
ECHO You appear not to have npm installed. Please proceed to the following link:
ECHO nodejs.org/en
GOTO EOF
)
git clone github.com/cheddar-lang/Cheddar.git
It checks if git, npm are installed, then prompts the user to install them theirselves :P