Skip to content

Instantly share code, notes, and snippets.

@kjunichi
Created October 14, 2016 00:46
Show Gist options
  • Save kjunichi/eef4825b990139f5d7add753ac5010b7 to your computer and use it in GitHub Desktop.
Save kjunichi/eef4825b990139f5d7add753ac5010b7 to your computer and use it in GitHub Desktop.
2016/10/11

gl2hls

npm

glsl2hls

package.json

npm install

git clone mruby cd mruby rake

npm start

  • redis起動

  • redisが動いて無ければうごかす

  • 環境変数で明示的指定も可能とする

  • webサーバー起動

  • glslサーバー起動

外部コマンドの扱いに悩んだ結果

fly-shell

exports.default = function * () { yield this.source('src/*.js') .shell('cat $file') //=> fly-shell: console.log('this is src/a.js') //=> fly-shell: console.log('this is src/b.js') //=> fly-shell: console.log('this is src/c.js') .dist('dist'); }

export default async function () { await this.source('src/*.js') .shell('cat $file') .dist('dist') }

export default async function () { await this.watch(paths.scripts, 'build') }

MRUBY_CONFIG

mruby_ver="" export MRUBY_CONFIG=../build_config.rb

関連

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment