2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

(最終的に上手く動かないので調査中)NectarJSというJavaScriptのマルチプラットフォームコンパイラ

Posted at

NectarJSという、すべてのプログラムはjsで書いて、どのプラットフォーム用にもコンパイルできるよ!
という「JAVASCRIPT GOD MODE」(原文ママ)なのを見つけたのでご紹介します。

URL

触ってみる

ブラウザで触ってみることもできます。

image.png

これでCompileボタン押すと選んだプラットフォーム用のファイルが生成されます。

cli版

cli版はキーの発行依頼が必要で、発行されると使えるようになります。

image.png

設定

キーを貰ったら、以下の手順でインストール&設定をします。

$ npm install -g nectarjs

$ nectar --setid <貰ったID>

$ nectar --setkey <もらったKEY>

これで設定は完了です。

hello world

適当にファイルを用意します。

hello.js
var hello = 'hello world!!';
console.log(hello);

上記のjsファイルをコンパイルしてみます。

image.png

怒られた、、、

どうもutils.jsがルートからの全ファイルを見ているようなんですが、よくわからないので後で調べてみよう(´・ω・`)

2
2
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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?