https://github.com/michaelfba/ramen
https://github.com/michaelfba/ramen
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/michaelfba/ramen
- Owner: MichaelFBA
- Created: 2020-04-29T17:25:23.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-12T15:25:21.000Z (over 3 years ago)
- Last Synced: 2025-01-14T14:50:16.022Z (over 1 year ago)
- Language: JavaScript
- Size: 12.5 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 27
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# blog
## CLI Commands
``` bash
# install dependencies
yarn
# serve with hot reload at localhost:8080
yarn dev
# build for production with minification
yarn build
# run tests with jest and preact-render-spy
yarn test
```
For detailed explanation on how things work, checkout the [CLI Readme](https://github.com/developit/preact-cli/blob/master/README.md).
Note: When pre-rendering, your module as components are executed in a Node.js environment, where most Web APIs are not available. To account for this, wrap that code in a check like `if (typeof window !== 'undefined')`.
Do not add `preact build --no-prerender` to the build command as it will prevent blog posts from rendering.