A template created to be reused in some projects saving a lot of time and make our lives easier π€
pnpm install
or
yarn
or
npm install
pnpm dev
or
yarn dev
or
npm run dev
Open http://localhost:3000 with your browser to see the result.
βββ cypress
βββ e2e
βββ src
βββ app
βββ assets
βββ components
βββ lib
βββ utils
Folder | Description |
---|---|
e2e | e2e tests in the app |
app | Pages |
assets | Images and static files for application |
components | Pages components |
lib | Configuration of libraries used in the project |
utils | Auxiliary and reusable functions |
βββ <MyComponent>
βββ <MyComponent>.tsx
βββ <MyComponent>.spec.tsx
βββ index.ts
Files | Description |
---|---|
.tsx | Component implementation |
.spec.tsx | Component tests |
index.ts | File to export the component |
dev
: run development serverbuild
: creates the production build versionlint
: runs the linter in all components and pagescypress
: open cypressformat
: format the files.component-test
: run all the component tests.e2e-test
: run all the e2e tests.commit
: commit staged changes
Made with π€ by Arthur