Skip to content

Instantly share code, notes, and snippets.

@lgarron
Last active July 16, 2018 18:52

Revisions

  1. lgarron revised this gist Jul 16, 2018. 1 changed file with 35 additions and 18 deletions.
    53 changes: 35 additions & 18 deletions js-cubing.md
    Original file line number Diff line number Diff line change
    @@ -1,26 +1,43 @@
    # JS Cubing

    mkdir js-cubing
    cd js-cubing

    git clone https://github.com/cubing/alg.js alg
    git clone https://github.com/cubing/kpuzzle.js kpuzzle
    git clone https://github.com/cubing/twisty.js twisty
    git clone https://github.com/lgarron/libTemplate libTemplate
    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 libTemplate ; yarn link ; cd -
    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 libTemplate ; yarn link alg ; cd -
    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 ; yarn install ; make dist ; cd -
    cd kpuzzle ; yarn install ; make dist ; cd -
    cd twisty ; yarn install ; make dist ; cd -
    cd libTemplate ; yarn install ; make dist ; cd -
    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 -
  2. lgarron revised this gist Jul 13, 2018. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions js-cubing.md
    Original file line number Diff line number Diff line change
    @@ -20,7 +20,7 @@
    cd libTemplate ; yarn link alg ; cd -

    # Build each project
    cd alg ; make dist ; cd -
    cd kpuzzle ; make dist ; cd -
    cd twisty ; make dist ; cd -
    cd libTemplate ; make dist ; cd -
    cd alg ; yarn install ; make dist ; cd -
    cd kpuzzle ; yarn install ; make dist ; cd -
    cd twisty ; yarn install ; make dist ; cd -
    cd libTemplate ; yarn install ; make dist ; cd -
  3. lgarron revised this gist Jul 13, 2018. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions js-cubing.md
    Original file line number Diff line number Diff line change
    @@ -18,3 +18,9 @@
    cd kpuzzle ; yarn link alg ; cd -
    cd twisty ; yarn link alg kpuzzle ; cd -
    cd libTemplate ; yarn link alg ; cd -

    # Build each project
    cd alg ; make dist ; cd -
    cd kpuzzle ; make dist ; cd -
    cd twisty ; make dist ; cd -
    cd libTemplate ; make dist ; cd -
  4. lgarron revised this gist Jul 13, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion js-cubing.md
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@

    git clone https://github.com/cubing/alg.js alg
    git clone https://github.com/cubing/kpuzzle.js kpuzzle
    git clone https://github.com/cubing/twisty.js twisty
    git clone https://github.com/cubing/twisty.js twisty
    git clone https://github.com/lgarron/libTemplate libTemplate

    # Register each checkout for linking.
  5. lgarron revised this gist Jul 13, 2018. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions js-cubing.md
    Original file line number Diff line number Diff line change
    @@ -15,6 +15,6 @@
    cd libTemplate ; yarn link ; cd -

    # Link dependency projects
    cd kpuzzle ; yarn link alg ; cd -
    cd twisty ; yarn link alg kpuzzle; cd -
    cd libTemplate ; yarn link alg ; cd -
    cd kpuzzle ; yarn link alg ; cd -
    cd twisty ; yarn link alg kpuzzle ; cd -
    cd libTemplate ; yarn link alg ; cd -
  6. lgarron created this gist Jul 13, 2018.
    20 changes: 20 additions & 0 deletions js-cubing.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    # JS Cubing

    mkdir js-cubing
    cd js-cubing

    git clone https://github.com/cubing/alg.js alg
    git clone https://github.com/cubing/kpuzzle.js kpuzzle
    git clone https://github.com/cubing/twisty.js twisty
    git clone https://github.com/lgarron/libTemplate libTemplate

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

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