2023-02-10 10:40:44 +01:00
|
|
|
## How to start
|
|
|
|
```
|
2023-02-10 13:21:26 +01:00
|
|
|
npm install
|
|
|
|
npm start
|
2023-02-10 10:40:44 +01:00
|
|
|
```
|
|
|
|
with different backends
|
|
|
|
```
|
2023-02-10 13:21:26 +01:00
|
|
|
npm run start:local
|
|
|
|
npm run start:production
|
|
|
|
npm run start:staging
|
2023-02-10 10:40:44 +01:00
|
|
|
```
|
2022-11-27 21:36:45 +03:00
|
|
|
|
2023-02-10 10:40:44 +01:00
|
|
|
## Useful commands
|
|
|
|
run checks
|
|
|
|
```
|
2023-02-10 13:21:26 +01:00
|
|
|
npm run check
|
2023-02-10 10:40:44 +01:00
|
|
|
```
|
|
|
|
type checking with watch
|
|
|
|
```
|
2023-02-10 13:21:26 +01:00
|
|
|
npm run typecheck:watch
|
2023-02-10 10:40:44 +01:00
|
|
|
```
|
|
|
|
## Code generation
|
2022-11-27 21:36:45 +03:00
|
|
|
|
2023-05-06 13:11:45 +02:00
|
|
|
generate new SolidJS component:
|
|
|
|
```
|
|
|
|
npx hygen component new NewComponentName
|
|
|
|
```
|
|
|
|
|
2023-02-10 10:40:44 +01:00
|
|
|
generate new SolidJS context:
|
2022-09-09 14:53:35 +03:00
|
|
|
```
|
2023-02-10 10:40:44 +01:00
|
|
|
npx hygen context new NewContextName
|
2022-09-09 14:53:35 +03:00
|
|
|
```
|