Skip to content
Kazane Shimizu edited this page Apr 29, 2024 · 26 revisions

Welcome to the Collections wiki!

起動方法

エンドユーザーとして使う手順

npx create-collections-app@latest my-app

インストールされるverが古い場合は、npx -y clear-npx-cache を実行してキャッシュを削除してください。

開発者として使う手順

clone project
cd collections/

mv .env.sample .env
vi .env # edit database settings

yarn migrate:latest
yarn seed:dev

vim /etc/hosts

サブドメインログインをするため以下を追加
ref: https://github.com/nextauthjs/next-auth/discussions/4089#discussioncomment-2290660

127.0.0.1       test.com
127.0.0.1       app.test.com
127.0.0.1       us.test.com
127.0.0.1       ja.test.com

yarn dev

コミットルール

構成

  • collections
    • CMS
  • create-collections-app
    • エンドユーザー向けアプリインストーラー

npm

npmへのアップロード方法

  1. npm run compile /dist が更新されていることを確認
  2. cd dist/
  3. RELEASE=true npm publish

ツール

webpack-bundle-analyzer

.env に以下を追加する

WEBPACK_BUNDLE_ANALYZER=true

ベンチマーク