-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**Summary** We want to document our codebase with typedoc. **Test** - yarn lint **Issue** - N/A
- Loading branch information
Showing
437 changed files
with
2,730 additions
and
222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"markdownlint.config": { | ||
"$schema": "https://raw.githubusercontent.com/DavidAnson/markdownlint/v0.34.0/schema/markdownlint-config-schema.json", | ||
"commands-show-output": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Expo | ||
|
||
Mobile Application is built on top of [Expo](https://expo.dev) framework with TypeScript. | ||
We also use paid [EAS service](https://expo.dev/eas) to build and submit buids to platform stores. | ||
|
||
## File Structure | ||
|
||
Main source code is located in `expo` directory and files at the root of the `expo` directory are configuration files for the Expo framework (`App.tsx` is an entry point). Here are brief explanations of each file/directory. | ||
|
||
### `assets` | ||
|
||
`assets` is a direcotry that contains any static assets icluding images, fonts, etc. If you want to have a feature specific assets, you can create `assets/{feature-name}` directory and put assets there. | ||
|
||
### `config` | ||
|
||
`config` is a direcotry that contains build configurations. `config/{env}/` is for the specific environment configurations to override `prod` configurations. You can refer to [build](./build.md) doc to see how to create a new build with the configurations. | ||
|
||
Note that you should not include any sensitive information (such as API keys) in this directory but use Expo's enviroment variables instead. | ||
|
||
### `features` | ||
|
||
`features` directory is to organize user-facing features. Each feature should have its own directory and contain all the components, hooks, and screens related to the feature. | ||
|
||
```text | ||
features/ | ||
{featurename}/ | ||
components/ | ||
hooks/ | ||
tests/ | ||
``` | ||
|
||
### `foundation` | ||
|
||
`foundation` is a directory that contains TypeScript foundations. These are utilitise for builtin types such as `Date`, `Error`, `Function`, ...etc. Each module here should not depends on any other third party libraries includig `react` or `expo`. | ||
|
||
### `generated` | ||
|
||
`generated`: a directory that contains auto generated code such as `schema.graphql`. | ||
|
||
### `scripts` | ||
|
||
`scripts` is a directory that contains scripts to automate development tasks. | ||
|
||
### `system` | ||
|
||
`system` is a direcotry that provides the wrapper framework for third party libraries such as kvs, i18n, ...etc. Each module here should not have any React components nor React hooks. | ||
|
||
## Coding Standards | ||
|
||
- Do not use `../` or `./` in module imports. Use `@hpapp/` instead. | ||
|
||
## See also | ||
|
||
- [typedoc](./typedoc/index.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
:root { | ||
--light-code-background: #FFFFFF; | ||
--dark-code-background: #1E1E1E; | ||
} | ||
|
||
@media (prefers-color-scheme: light) { :root { | ||
--code-background: var(--light-code-background); | ||
} } | ||
|
||
@media (prefers-color-scheme: dark) { :root { | ||
--code-background: var(--dark-code-background); | ||
} } | ||
|
||
:root[data-theme='light'] { | ||
--code-background: var(--light-code-background); | ||
} | ||
|
||
:root[data-theme='dark'] { | ||
--code-background: var(--dark-code-background); | ||
} | ||
|
||
pre, code { background: var(--code-background); } |
Oops, something went wrong.