https://github.com/kraigwalker/digital-garden
https://github.com/kraigwalker/digital-garden
digital-garden monorepo
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kraigwalker/digital-garden
- Owner: KraigWalker
- Created: 2022-01-29T19:20:54.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-07T19:55:57.000Z (over 2 years ago)
- Last Synced: 2025-01-04T15:12:29.016Z (9 months ago)
- Topics: digital-garden, monorepo
- Language: TypeScript
- Homepage: https://kraig.dev
- Size: 2.2 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Kraig Walker’s Digital Garden
[](https://github.com/KraigWalker/digital-garden/actions/workflows/continuous-integration.yml)
This is the digital garden of Kraig Walker. It is a collection of tools and resources that I use to build and maintain my digital garden.
The garden is currently under construction.
I've currently managed to:
- Setup a Nx Monorepo with a Next.js app.
- Setup boilerplate babel and Jest config.
- Setting up a CI/CD pipeline for my site using GitHub Actions.Some things I'm working on:
- Setting up a Storybook for my app to begin building UI components.
- Setting up Cypress to do End-to-End testing.Some things I'm going to work on the future:
- Creating a blog for my digital garden.
- Creating an experimental content pre-delivery system using ServiceWorkers and Web Push.
- Designing a more "coffee-table" style layout for "serious" articles.This project was generated using [Nx](https://nx.dev).
## Development Mode Note
```
TAILWIND_MODE=watch npx nx serve site
```## Generate an application
Run `nx g @nrwl/react:app my-app` to generate an application.
When using Nx, you can create multiple applications and libraries in the same workspace.
## Generate a library
Run `nx g @nrwl/react:lib my-lib` to generate a library.
> You can also use any of the plugins above to generate libraries as well.
Libraries are shareable across libraries and applications. They can be imported from `@digital-garden/mylib`.
## Development server
Run `nx serve site` for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
## Code scaffolding
Run `nx g @nrwl/react:component my-component --project=my-app` to generate a new component.
## Build
Run `nx build my-app` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
## Running unit tests
Run `nx test site` to execute the unit tests via [Jest](https://jestjs.io).
Run `nx affected:test` to execute the unit tests affected by a change.
## Running end-to-end tests
Run `ng e2e site` to execute the end-to-end tests via [Cypress](https://www.cypress.io).
Run `nx affected:e2e` to execute the end-to-end tests affected by a change.
## Understand the workspace
Run `nx graph` to see a diagram of the dependencies of projects.
## Further help
Visit the [Nx Documentation](https://nx.dev) to learn more.