Skip to content

Instantly share code, notes, and snippets.

@HoriLiu
Last active August 18, 2017 23:56
Show Gist options
  • Save HoriLiu/00c3254184d8146f5c36cfaa7d6867e7 to your computer and use it in GitHub Desktop.
Save HoriLiu/00c3254184d8146f5c36cfaa7d6867e7 to your computer and use it in GitHub Desktop.

Revisions

  1. HoriLiu revised this gist Aug 18, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Rebuild pymakr-vsc for pyboard REPL
    Original file line number Diff line number Diff line change
    @@ -32,7 +32,7 @@ npm install.js
    # Rebuilding must be "Done" and no error

    # Open the folder in vsc for test Extensions in "your-pymakr-vsc-dir"
    # Press F1 and execute 'Tasks: Run build task' to run the babel builder (see Build and copy libs)
    # Press F1 and execute 'Tasks: Run build task' to run the babel builder (show the copy libs in console)
    # Press F5 to run the plugin (opens a new vsc window)
    # Check test result no fail

  2. HoriLiu renamed this gist Aug 18, 2017. 1 changed file with 0 additions and 0 deletions.
  3. HoriLiu revised this gist Aug 18, 2017. 1 changed file with 9 additions and 11 deletions.
    20 changes: 9 additions & 11 deletions Rebuild pymakr-vsc for Pyboard REPL
    Original file line number Diff line number Diff line change
    @@ -6,35 +6,33 @@
    cinst nodejs

    # Do you want to run the script?([Y]es/[N]o/[P]rint):
    Y

    Press "Y"
    # Check version can be showed
    node -v
    npm -v

    #https://github.com/nodejs/node-gyp
    # Refer to https://github.com/nodejs/node-gyp for installing build tool command as:
    npm install --global --production windows-build-tools

    #Check python version must be 2.7.x
    #Check python version that must be v2.7.x
    python -v

    # Download the code or clone the repo, i.e.
    # Copy source code from https://github.com/pycom/pymakr-vsc.git to X:/Users/YourDir/your-pymakr-vsc-dir
    # Download the code or clone the repo (by vsc), i.e.
    # Copy git source from https://github.com/pycom/pymakr-vsc.git to X:/Users/YourDir/your-pymakr-vsc-dir
    cd /Users/YourDir/your-pymakr-vsc-dir

    # npm your packages in "your-pymakr-vsc-dir", then pre-check build status as
    # npm your packages in "your-pymakr-vsc-dir", then pre-check the build status as below two commands
    npm install serialport
    npm install electron-rebuild

    # copy ./precompiles/serialport-win32 to overwrite ./node_modules/serialport

    # copy ./precompiles/serialport-win32 to overwrite ./node_modules/serialport,
    # modify install-win.js and check the ./node_modules directory that installed serialport,
    # Change file name install-win.js to install.js
    npm install.js
    # Rebuilding must be "Done" no error
    # Rebuilding must be "Done" and no error

    # Open the folder in vsc for test Extensions in "your-pymakr-vsc-dir"
    # Press F1 and execute 'Tasks: Run build task' to run the babel builder (Build libs)
    # Press F1 and execute 'Tasks: Run build task' to run the babel builder (see Build and copy libs)
    # Press F5 to run the plugin (opens a new vsc window)
    # Check test result no fail

  4. HoriLiu revised this gist Aug 18, 2017. 1 changed file with 16 additions and 13 deletions.
    29 changes: 16 additions & 13 deletions Rebuild pymakr-vsc for Pyboard REPL
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,14 @@
    #https://chocolatey.org/install

    # https://nodejs.org/en/download/package-manager/
    # Must use administrator privileges in cmd.exe in below instructions.
    # Goto https://chocolatey.org/install, find the "Install with cmd.exe"
    (copy command text)
    # Goto https://nodejs.org/en/download/package-manager/#windows
    # Using Chocolatey to install node and npm:
    cinst nodejs

    # Do you want to run the script?([Y]es/[N]o/[P]rint):
    Y
    # Check version

    # Check version can be showed
    node -v
    npm -v

    @@ -16,28 +19,28 @@ npm install --global --production windows-build-tools
    python -v

    # Download the code or clone the repo, i.e.
    # Copy source code from https://github.com/pycom/pymakr-vsc.git to X:/Users/Name/pymakr-vsc
    cd /Users/Name/pymakr-vsc
    # Copy source code from https://github.com/pycom/pymakr-vsc.git to X:/Users/YourDir/your-pymakr-vsc-dir
    cd /Users/YourDir/your-pymakr-vsc-dir

    # npm your packages in here, then
    # npm your packages in "your-pymakr-vsc-dir", then pre-check build status as
    npm install serialport
    npm install electron-rebuild

    # copy /precompiles/serialport-win32 to overwrite /node_modules/serialport
    # copy ./precompiles/serialport-win32 to overwrite ./node_modules/serialport

    # modify install-win.js and check node_modules directory installed place,
    # modify install-win.js and check the ./node_modules directory that installed serialport,
    # Change file name install-win.js to install.js
    npm install.js
    # Rebuilding must be "Done" no error

    # Open the folder in vsc for test Extensions
    # Press F1 and execute 'Tasks: Run build task' to run the babel builder
    # Open the folder in vsc for test Extensions in "your-pymakr-vsc-dir"
    # Press F1 and execute 'Tasks: Run build task' to run the babel builder (Build libs)
    # Press F5 to run the plugin (opens a new vsc window)
    # Check test result no fail

    #Publishing Extensions
    #Publishing Extensions in "your-pymakr-vsc-dir"
    npm install -g vsce

    #Packaging Extensions
    #Packaging Extensions in "your-pymakr-vsc-dir"
    vsce package

  5. HoriLiu revised this gist Aug 16, 2017. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion Rebuild pymakr-vsc for Pyboard REPL
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,8 @@
    # https://nodejs.org/en/download/package-manager/
    # Using Chocolatey to install node and npm:
    cinst nodejs

    # Do you want to run the script?([Y]es/[N]o/[P]rint):
    Y
    # Check version
    node -v
    npm -v
  6. HoriLiu revised this gist Aug 16, 2017. 1 changed file with 4 additions and 3 deletions.
    7 changes: 4 additions & 3 deletions Rebuild pymakr-vsc for Pyboard REPL
    Original file line number Diff line number Diff line change
    @@ -22,10 +22,11 @@ cd /Users/Name/pymakr-vsc
    npm install serialport
    npm install electron-rebuild

    #copy /precompiles/serialport-win32 to overwrite /node_modules/serialport
    # copy /precompiles/serialport-win32 to overwrite /node_modules/serialport

    #modify install-win.js and check node_modules directory installed place
    node install-win.js
    # modify install-win.js and check node_modules directory installed place,
    # Change file name install-win.js to install.js
    npm install.js
    # Rebuilding must be "Done" no error

    # Open the folder in vsc for test Extensions
  7. HoriLiu revised this gist Aug 16, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Rebuild pymakr-vsc for Pyboard REPL
    Original file line number Diff line number Diff line change
    @@ -25,7 +25,7 @@ npm install electron-rebuild
    #copy /precompiles/serialport-win32 to overwrite /node_modules/serialport

    #modify install-win.js and check node_modules directory installed place
    npm install-win.js
    node install-win.js
    # Rebuilding must be "Done" no error

    # Open the folder in vsc for test Extensions
  8. HoriLiu revised this gist Aug 16, 2017. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions Rebuild pymakr-vsc for Pyboard REPL
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    #https://chocolatey.org/install

    # https://nodejs.org/en/download/package-manager/
    # Using Chocolatey to install node and npm:
    cinst nodejs
  9. HoriLiu renamed this gist Aug 12, 2017. 1 changed file with 3 additions and 4 deletions.
    Original file line number Diff line number Diff line change
    @@ -16,21 +16,20 @@ python -v
    # Copy source code from https://github.com/pycom/pymakr-vsc.git to X:/Users/Name/pymakr-vsc
    cd /Users/Name/pymakr-vsc

    # npm your package in here, then
    # npm your packages in here, then
    npm install serialport
    npm install electron-rebuild

    #copy /precompiles/serialport-win32 to overwrite /node_modules/serialport

    #modify install-win.js and check node_modules directory installed place
    npm install-win.js

    # Rebuilding must be "Done" no error

    # Open the folder in vsc
    # Open the folder in vsc for test Extensions
    # Press F1 and execute 'Tasks: Run build task' to run the babel builder
    # Press F5 to run the plugin (opens a new vsc window)
    # Test result is no issues
    # Check test result no fail

    #Publishing Extensions
    npm install -g vsce
  10. HoriLiu revised this gist Aug 12, 2017. 1 changed file with 38 additions and 3 deletions.
    41 changes: 38 additions & 3 deletions Use pymakr-vsc by REPL for PyNano
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,40 @@
    # https://nodejs.org/en/download/package-manager/
    # Using Chocolatey:
    # Using Chocolatey to install node and npm:
    cinst nodejs
    # or for full install with npm
    cinst nodejs.install

    # Check version
    node -v
    npm -v

    #https://github.com/nodejs/node-gyp
    npm install --global --production windows-build-tools

    #Check python version must be 2.7.x
    python -v

    # Download the code or clone the repo, i.e.
    # Copy source code from https://github.com/pycom/pymakr-vsc.git to X:/Users/Name/pymakr-vsc
    cd /Users/Name/pymakr-vsc

    # npm your package in here, then
    npm install serialport
    npm install electron-rebuild

    #copy /precompiles/serialport-win32 to overwrite /node_modules/serialport

    #modify install-win.js and check node_modules directory installed place
    npm install-win.js

    # Rebuilding must be "Done" no error

    # Open the folder in vsc
    # Press F1 and execute 'Tasks: Run build task' to run the babel builder
    # Press F5 to run the plugin (opens a new vsc window)
    # Test result is no issues

    #Publishing Extensions
    npm install -g vsce

    #Packaging Extensions
    vsce package

  11. HoriLiu created this gist Aug 12, 2017.
    5 changes: 5 additions & 0 deletions Use pymakr-vsc by REPL for PyNano
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    # https://nodejs.org/en/download/package-manager/
    # Using Chocolatey:
    cinst nodejs
    # or for full install with npm
    cinst nodejs.install