Skip to content

Instantly share code, notes, and snippets.

@lgarron
Last active July 16, 2018 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgarron/ae47e62a0df2f0b470b439968d3f749f to your computer and use it in GitHub Desktop.
Save lgarron/ae47e62a0df2f0b470b439968d3f749f to your computer and use it in GitHub Desktop.

JS Cubing

if [ ! -d "alg" ]; then
   git clone https://github.com/cubing/alg.js       alg
fi
if [ ! -d "kpuzzle" ]; then
   git clone https://github.com/cubing/kpuzzle.js   kpuzzle
fi
if [ ! -d "twisty" ]; then
   git clone https://github.com/cubing/twisty.js    twisty
fi
if [ ! -d "puzzlegeometry" ]; then
   git clone https://github.com/rokicki/puzzlegeometry
fi
if [ ! -d "twizzle" ]; then
   git clone https://github.com/rokicki/twizzle
fi

# Register each checkout for linking.
cd alg            ; yarn link ; cd -
cd kpuzzle        ; yarn link ; cd -
cd twisty         ; yarn link ; cd -
cd puzzlegeometry ; yarn link ; cd -
cd twizzle        ; yarn link ; cd -

# yarn install each project
cd alg            ; yarn install ; cd -
cd kpuzzle        ; yarn install ; cd -
cd twisty         ; yarn install ; cd -
cd puzzlegeometry ; yarn install ; cd -
cd twizzle        ; yarn install ; cd -

# Link dependency projects
cd kpuzzle ; yarn link alg         ; cd -
cd twisty  ; yarn link alg kpuzzle ; cd -
cd twizzle ; yarn link alg kpuzzle puzzlegeometry twisty ; cd -

# Build each project
cd alg            ; make dist ; cd -
cd kpuzzle        ; make dist ; cd -
cd twisty         ; make dist ; cd -
cd puzzlegeometry ; make dist ; cd -
cd twizzle        ; make dist ; cd -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment