-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: replace seng generator with plopjs
- Loading branch information
Showing
31 changed files
with
2,164 additions
and
6,503 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
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 |
---|---|---|
@@ -1 +1 @@ | ||
v16.15.1 | ||
v18.19.0 |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,14 +1,21 @@ | ||
# Template scripts | ||
|
||
We are using [seng-generator](https://github.com/mediamonks/seng-generator) to generate templates | ||
We are using [plop](https://plopjs.com/) to generate files from templates. | ||
You can just run `npm run generate` and follow the instructions, or use the following commands: | ||
|
||
```properties | ||
# create a simple component | ||
$ npm run generate component [component-name] | ||
- Create a React component: | ||
|
||
# create a page component (the generated files will be automatically prefixed by "Page") | ||
$ npm run generate page [page-name] | ||
```bash | ||
$ npm run generate component [ComponentName] | ||
``` | ||
|
||
# create a new route (use the same name used for generating the page component) | ||
$ npm run generate route [page-name] | ||
``` | ||
- Create a page component (the generated files will be automatically prefixed by "Page") | ||
|
||
```bash | ||
$ npm run generate page [PageName] | ||
``` | ||
|
||
- Create a new route (use the same name used for generating the page component) | ||
```bash | ||
$ npm run generate route [PageName] | ||
``` |
Oops, something went wrong.