Last active
August 18, 2017 23:56
-
-
Save HoriLiu/00c3254184d8146f5c36cfaa7d6867e7 to your computer and use it in GitHub Desktop.
Revisions
-
HoriLiu revised this gist
Aug 18, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 (show the copy libs in console) # Press F5 to run the plugin (opens a new vsc window) # Check test result no fail -
HoriLiu renamed this gist
Aug 18, 2017 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
HoriLiu revised this gist
Aug 18, 2017 . 1 changed file with 9 additions and 11 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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): Press "Y" # Check version can be showed node -v npm -v # Refer to https://github.com/nodejs/node-gyp for installing build tool command as: npm install --global --production windows-build-tools #Check python version that must be v2.7.x python -v # 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 the build status as below two commands npm install serialport npm install electron-rebuild # 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" 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 F5 to run the plugin (opens a new vsc window) # Check test result no fail -
HoriLiu revised this gist
Aug 18, 2017 . 1 changed file with 16 additions and 13 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,14 @@ # 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 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/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 install serialport npm install electron-rebuild # 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 # 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 in "your-pymakr-vsc-dir" npm install -g vsce #Packaging Extensions in "your-pymakr-vsc-dir" vsce package -
HoriLiu revised this gist
Aug 16, 2017 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 -
HoriLiu revised this gist
Aug 16, 2017 . 1 changed file with 4 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 # 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 -
HoriLiu revised this gist
Aug 16, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 node install-win.js # Rebuilding must be "Done" no error # Open the folder in vsc for test Extensions -
HoriLiu revised this gist
Aug 16, 2017 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 -
HoriLiu renamed this gist
Aug 12, 2017 . 1 changed file with 3 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 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 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) # Check test result no fail #Publishing Extensions npm install -g vsce -
HoriLiu revised this gist
Aug 12, 2017 . 1 changed file with 38 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,40 @@ # https://nodejs.org/en/download/package-manager/ # Using Chocolatey to install node and npm: cinst nodejs # 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 -
HoriLiu created this gist
Aug 12, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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