Skip to content

Instantly share code, notes, and snippets.

@lgarron lgarron/js-cubing.md
Last active Jul 16, 2018

Embed
What would you like to do?

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
You can’t perform that action at this time.