jb-commons v4.3.0
π About the project
This project is sharing 100% of code (components and pages) to web and mobile. All the components are created using React-native and styled-components/native. Let's check the file structure.
βοΈ Tech stack
π§ What's inside?
.
βββ __mocks__
βββ @types
βββ node_modules/
βββ src/
|-- __tests__/
|-- assets/
|-- components/
|-- pages/
|-- styles/
|-- utils/
|-- App.tsx
|-- AppHeader.tsx
βββ .editorconfig
βββ babel.config.js
βββ global.d.ts
βββ jest.config.js
βββ package.json
βββ styled.d.ts
βββ README.md
βββ tsconfig.jsonmocks: Contain only the configuration to SVG.@types: Module declarations to images.node_modules/: This directory contains all of the modules of code that your project depends on (npm/yarn packages) are automatically installed.src/: This directory will contain all of the code related to what you will see on the front-end and mobile, such as your site/app header or a page template.srcis a convention for βsource codeβ.- 4.1. tests: Here you can create all tests to components/pages that aren't into
components/. - 4.2. assets/: Here's all the icons that we use in the project and the logo.
- 4.3. components/: This directory contains all of the components that are shared with the web and app.
- 4.4. pages/: This directory contains all of the pages that are shared to the web and app.
- 4.5. styles/: Here you can create files that represent the theme of to project.
- 4.6. utils/: You can create files, functions, and test that is related to
srcdirectory. - 4.7. App.tsx: This file is called when you need to create a page, this file is a wrapper that contains the `theme provider
- 4.1. tests: Here you can create all tests to components/pages that aren't into
.editorconfig: This file keeps the project formatted into all code editors.babel.config.js: Here we set all presets and plugins to parser code.global.d.ts: File that keeps all decorations off modules to project.jest.config.js: Here is imported the jest config base and add some things to run all the tests.package.json: A manifest file for Node.js projects, which includes things like metadata (the projectβs name, author, etc). This manifest is how npm knows which packages to install for your project.styled.d.ts: Global declaration to the default theme.README.md: A text file containing useful reference information about your project.tsconfig.json: All the configuration to parser the typescript.
1 year ago