Tech Tips

  1. プログラミング
  2. 1428 view

[CoffeeScript][Jasmine-node]環境構築

Jasmine-node インストールメモ
コマンドのみ
# Install pythonbrew
$ curl -kL http://xrl.us/pythonbrewinstall | bash
$ pythonbrew install 2.7.2

#Install node.js
$ vim ~/.bash_profile
[[ -s $HOME/.pythonbrew/etc/bashrc ]] && source $HOME/.pythonbrew/etc/bashrc
$source ~/.bash_profile
$pythonbrew switch 2.7.2
$git clone git://github.com/creationix/nvm.git ~/.nvm
$nvm install v0.8.7
$source ~/.nvm/nvm.sh
$nvm use v0.8.7

#Create .npmrc
$vim ~/.npmrc
registry = http://registry.npmjs.org/ 

#Install coffee-script
$npm install coffee-script
$npm install jasmine-node
$./node_modules/.bin/coffee

#Add path to node_module
$vim ~/.bash_profile
PATH=$PATH:$HOME/bin:$HOME/node_modules/.bin:./node_modules/.bin
$source ~/.bash_profile

#You can use commands below
$coffee -c test-coffee.coffee
$jasmine-node --coffee spec/

プログラミングの最近記事

  1. PlatformIO IDE for VSCode を使用して VSCode で Ardu…

  2. ROS Docker イメージで発生した GPG error の解消方法

  3. Streamlit で訪れた国を色づけした世界地図を作成できるアプリケーションを作成してみ…

  4. M5Stack Core2 for AWS – ESP32 IoT開発キットで…

  5. D3.js v7 で点・線・テキスト・ツールチップ・ズームを設定する方法

関連記事

PAGE TOP