npm.io
0.4.1 • Published 4 years ago

draken-player

Licence
Apache-2.0
Version
0.4.1
Deps
5
Size
109 kB
Vulns
23
Weekly
0
Stars
1

draken-player

環境構築

# 依存パッケージをインストール
yarn

# コンテンツIDを設定
# src/main.tsとdemo.htmlで参照
# buildにはこの値は出力されない
cp ./.env.development{,.local}
vi ./.env.development.local # 実際に使うコンテンツIDを入力

開発環境

yarn dev

ビルド

# endpointを固定の値に埋め込みたい場合は編集する
cp ./.env.production{,.local}
vi ./.env.production.local
yarn build

デモ(ビルドした後の js で確認する場合)

yarn build:browser
vi ./demo.html # コンテンツIDやendpointなどを編集する
# yarn add global http-server
http-server
open http://localhost:8080/demo.html

Keywords