Open source package of front-end tools for product web development.
- packlify.com
- Status: Early alpha.
- PLEASE: Leave any feedback as its highly appreciated.
- Description
- Stack
- Getting Started
- Packages
- @packlify/core
- @packlify/client
- @packlify/config-build
- @packlify/config-format
- @packlify/mocks
- @packlify/testing (coming soon)
- @packlify/performance (coming soon)
- @packlify/analytics (coming soon)
- @packlify/monitoring (coming soon)
- eslint-config-packlify
- packlify-start-app
- Contact
This app is intended for creating multiple react projects under the same highly customizable and scalable architecture without the need of repeating boilerplate. More info about Packlify's modules here.
- React
- Typescript
- Isomorphic structure (Server, client, shared, api) (Packlify server)
- Vite + Vite SSR + Dev server (Packlify config build)
- Client hydration (Packlify client)
- ESLint + Prettier (Packlify eslint and config format)
- Tailwind CSS
- Nvm & nodemon
You can either use the packlify-start-app
command or add the modules progressively.
npx packlify-start-app
Or
npm install @packlify/core @packlify/client @packlify/config-build @packlify/config-format eslint-config-packlify
This package includes functions for setting up:
createServer
: Wrapper of Express + Vite dev server.device
: Add device type to Express requests to tell if its Mobile or Desktop using a regex on user agent.renderView
: A custom function added to Express response to return a rendered React component/page.
renderComponent
: Custom wrapper of renderToString that also can add React Router.types
: Required types for consumer front-end project.
packlify-server
: Starts production Express server.packlify-dev-server
: Starts development server with Vite.packliy-build-server
: Builds Express server with local Typescript config.
This package includes functions for setting up:
hydrate
: Custom wrapper of React's hydrate function adding extra things such as taking Preloaded state from Window object and adding React Router.
packlify-build-client
: Builds client-side React code.packlify-build-ssr
: Builds server-side React code.
This package includes functions for setting up:
viteConfigClient
: Custom Vite configuration for client-side React.viteConfigSsr
: Custom Vite configuration for server-side React.
This package includes functions for setting up:
prettier.config.cjs
: Custom Prettier configuration.
packlify-format-check
: Runs Prettier checks (only check).packlify-format-write
: Runs Prettier checks and fix errors.
This package includes functions for setting up:
mocks-adapter
: Custom adapter to mock browser and server side requests into json files.mocks-middleware
: Custom middleware router to handle filesystem for creating and reading files.
This package includes functions for setting up:
.eslintrc.cjs
: Custom ESLint configuration. Uses: rushstack/eslint-patch/modern-module-resolution for avoiding needing to install eslint dependencies on consumer project.
packlify-lint
: Runs ESLint checks (only check).
This package includes functions for setting up:
packlify-start-app
: Creates a project folder with pre-set React frontend app using Packlify's modules.
Lucas Farias lukf95@gmail.com LinkedIn - GitHub