A package to generate boilerplate files for creating a play withing your local system. Another idea of this package to create a backbone structure for running all sort of maintenance and house keeping task.
Here are few options
- -h/help: Show all available arguments and flags
- -c/create: Creates a play boilerplate within local directory structure
- -u/update: Update an exsiting play
- -p/prepare: Prepre an environment for build/run
- -plays: set the path folder for your plays ( default is src/plays)
- -i: Create default images for missing plays, create thumbnail and adapt image extension. (usage -i="a value")
-
Fork reactplay
-
Clone your branch
-
Install packages using
yarn #or npm install #or pnpm install
-
run reactplay application using
yarn start #or npm start #or pnpm start
-
Hit "Create" button on web portal
-
Provide necessary information
-
Submit your play request
-
It will generate an unique id for you
-
Navigate to root directory of your local reactplay repo and run
npx create-react-play -c <the_unique_id>
This will create necessary resources and link them together.
ornpx create-react-play -c <the_unique_id> -plays="plays"
if you want to create it in a specific folder ( here in the "./plays" folder at the application root)
Note: If the play folder
<reactplay_directory>/plays/<your_play_name>remain empty after running above command that means you might be in some older version of the package. Use@latestin that casenpx create-react-play@latest -c <the_unique_id>
-
Now you will find your play under
<reactplay_directory>/plays/<your_play_name> -
Now its all with you, create an awesome play and flaunt it infront of the globe
-
Create a pull request when you are done
npx create-react-play@latest -p