LoginSignup
0
0

Aiscriptの実行環境を5分でつくる

Posted at

概要

GitHubのCodeSpacesを使用して、Aiscirptの環境が爆速で構築できたので共有します。

GitHubのアカウントを作成する

次のサイトにアクセスし、アカウントを作成します。

Aiscript公式リポジトリをforkする

  1. 次のサイトにアクセスします
    https://github.com/aiscript-dev/aiscript
  2. 「Fork」を押下します
    image.png
  3. 下図の通り、Forkできたことを確認します
    image.png

GitHubCodeSpacesを使って環境構築

  1. Forkしたリポジトリから「<>Code」を押下します
    image.png

  2. 「Codespaces」タブを選択し、「Create codespace on master」を押下します
    image.png

  3. タブが遷移し、VScodeライクな画面が表示されます
    image.png

  4. 「ターミナル」にてnpm installを実行します

  5. 「ターミナル」にてnpm run buildを実行します

ここまでエラーなく終了できれば、環境構築は終了です。

動作確認

  1. 「ターミナル」にてnode consoleを実行します
  2. 下図のような対話画面になったことを確認します
    image.png
  3. ハロワでもしてみましょうか print("Hello World!!")
    image.png
    上手くいきましたね。

対話型ではなく、作成したスクリプトを実行したい場合は次のように実施します
1, 同じディレクトリ内にスクリプトファイルを作成します。
 例としてtest.isを作成します。

test.is
let string_value = "hello world"
<: string_value

2, 「ターミナル」にてnpm start test.isを実行します
image.png

上手くいきましたね。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0