トップ 一覧 検索 ヘルプ RSS ログイン

tips-SCRATCHの変更点

  • 追加された行はこのように表示されます。
  • 削除された行はこのように表示されます。
!!scratch 3.0
https://github.com/LLK

https://github.com/LLK/scratch-vm

! BUILD
https://ja.scratch-wiki.info/wiki/Scratch_3.0%E3%81%AE%E6%8B%A1%E5%BC%B5%E6%A9%9F%E8%83%BD%E3%82%92%E4%BD%9C%E3%81%A3%E3%81%A6%E3%81%BF%E3%82%88%E3%81%86/%E4%B8%8B%E6%BA%96%E5%82%99


  $ git clone --depth 1 https://github.com/llk/scratch-vm.git
  $ git clone --depth 1 https://github.com/llk/scratch-gui.git
  
  $ cd scratch-vm
  $ npm i
  $ npm link
  $ cd ..\scratch-gui
  $ npm i
  $ npm link scratch-vm

 $curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
 $ apt update
 # $ sudo apt install nodejs
 $ apt install yarn
 

 #$ cd scratch-vm && yarn install && yarn link
 ### 上記でscratch-vmの依存パッケージがダウンロードされる
 ### 最後にnpmのリンクに追加される。
 #$ cd scratch-gui && yarn link scratch-vm && yarn install
 ### 上記で、scratch-vmを子供としてリンクし、ほかのパッケージをダウンロードする。
 cd scratch-vm && npm install && nmp link
 cd scratch-gui && npm link scratch-vm && npm install

 cd scratch-gui 
 npm start

!! SCRATCH in debian9
 $ sudo apt install nodejs
 
 #$ curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
 $curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
 
 $ apt update
 
 $  apt install yarn
 
 $ nodejs -v && npm -v
 
 $ 
  npm init -f
  npm install https://github.com/LLK/scratch-gui.git
  cd node_modules/scratch-gui/
  npm install
  npm start
 
  > scratch-gui@0.1.0 start 
 /Users/kyorohiro/devDojo/scratch/w/ww/node_modules/scratch-gui
 > webpack-dev-server
 
 Project is running at http://0.0.0.0:8601/
 webpack output is served from /
 Content not from webpack is served from /Users/kyorohiro/devDojo/scratch/w/ww/node_modules/scratch-gui/build
 webpack: wait until bundle finished: /

! scrattino2
 sudo apt install nodejs
 curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
 apt update
 apt install yarn
 npm install flow-typed
 npm update
 npm upgrade
 npm install --no-optional