Contributing
Contributing
Analog is an MIT-licensed open source project with its ongoing development made by contributors.
Contributing to the framework
Folder structure
Source code for the Analog framework exists under the packages/ folder. To contribute features or bug fixes to the framework, locate the relevant code in one of the packages sub-folder. In addition to the create-analog sub-folder, there is a sub-folder for each of the npm packages in the @analogjs/* scope:
packages/create-analog→create-analogpackages/vite-plugin-angular→@analogjs/vite-plugin-angular
Setup
Analog uses pnpm to manage its dependencies.
Before opening a pull request, run the following command from the root folder to make sure your development dependencies are up-to-date:
pnpm i
Running locally
To serve the example application locally, run the following command from the root folder:
pnpm dev
Build
Analog uses Nx for builds. To build all projects locally, run the following command from the root folder:
pnpm build
Testing
Analog uses Vitest for tests. To test all projects locally, run the following command from the root folder:
pnpm test
Contributing to the docs and analogjs.org website
Folder structure
Source code for the Analog docs and the analogjs.org website exists under the apps/docs-app project folder. To contribute documentation or website content, locate the relevant source code in one of the sub-folders:
blog- Blog (unused).docs- Documentation pages with React MDX support.src/components- React components.src/css- Global styles.src/pages- React page components.static- Images and other static assets.
Setup
Analog uses pnpm to manage its dependencies.
Before opening a pull request, run the following command from the root folder to make sure your development dependencies are up-to-date:
pnpm i