- Node.js >= 14
- Yarn >= 1.22
- Vagrant >= 2 (for generator)
- Github CLI (use for downloading optimizer for generator, optional)
- run
yarn install
to install dependencies - goto the subproject under the
packges
directory
- run
yarn install
- run
git submodule update --init
- run
yarn build
underpackages/templates
- grab
Generator .env
content from 1Password and place it underpackages/generator
- run
gh release -R storipress/optimizer download --pattern optimizer-[arch]-unknown-linux-gnu
underpackages/generator
(optional, replace the[arch]
based on your computer arch, for Intel CPU isx86_64
, for Apple Silicon isaarch64
)
- run
vagrant up --provider=docker
in the project root: it will start a docker env in background - run
vagrant docker-exec -t -- bash
: it will give you a shell to access dev env
Execute the follow command before running the build script:
$ yarn gql-gen
This will generate the GraphQL type stub with graphql-code-generator
Storipress' project is set up with either vue-cli
or nuxt
- If you see
nuxt.config.js
, useyarn dev
- If you see
vue.config.js
, useyarn serve
- In all other cases, you should
yarn serve
. Please referenceREADME.md
under the subproject root for more info
name | setup with | description |
---|---|---|
editor-component | N/A | the core ProseMirror editor component |
builder | vite | the builder front end |
elements | N/A | elements used in builder + generator for displaying articles |
shared | N/A | shared codes |
shared-typedefs | N/A | shared type definition of third-party code for TS |
generator
: the static site generator