はじめる
新しいプロジェクトを開始する
Stencilは最近のLTSバージョンのNodeJSとnpmが必要です。 続ける前にNodeのインストールおよびアップデート済みであることを確認してください。
npm 6以上を使用する必要があることに注意してください。
npm init stencil
Stencilを使用して、スタンドアロンなコンポーネントまたはアプリケーション全体を作成できます。 initを実行すると、開始するプロジェクトの種類を選択できるプロンプトが表示されます。
? Pick a starter › - Use arrow-keys. Return to submit.
❯ ionic-pwa Everything you need to build fast, production ready PWAs
app Minimal starter for building a Stencil app or website
component Collection of web components that can be used anywhere
Stencilを更新する
@stencil/coreの最新バージョンを取得するためには、次のコマンドを実行します。
npm install @stencil/core@latest --save-exact