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
-
Fork reactplay
-
Clone your branch
-
Install packages using
yarn #or npm installrun reactplay application using
yarn start #or npm startHit "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.
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
create-react-play's People
create-react-play's Issues
โจ [Feature request]: Create play automation workflow [Track #369]
Is your feature request related to a problem? Please describe.
Currently, play creation is through command line plop argument. This is not flexible enough for play automation to run. Need a workflow where the entire play creation can be driven through a specific process for better handlingDescribe alternatives you've considered
NAAdditional context
Create a middleman who can handle the workflow processes.๐ [Bug report]: weird syntax after creating a play in typescript
Descrcibe the bug?
found the below syntax after creating a typescript play and its throwing error on browser
Steps to reproduce the bug?
creating a play in typescirpt will have the error
Expected behavior
there should not be any error after creating a play in typescript
Desktop (Please provide your system information)
Ubuntu version 22.04
Mobile (Please provide your device information)
No response
Screenshot / Screenshare
Relevant log output
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
โจ [Feature request]: Publish package through github
Is your feature request related to a problem? Please describe.
Publish package through github instead of npm logincreate-react-play is a npm package. This is currently getting published manually. It means, that after every merge, one needs run bellow steps to publish the package to npm repository
npm login
And run
npm publish
However, this is not the practical way of publishing a package that is still under development or maintenance cycle.
So the idea here is to create Github action to create the package automatically.
NOTE: An workflow already been configured (https://github.com/reactplay/create-react-play/blob/main/.github/workflows/npm-publish.yml) however doesn't seems to be working
Describe the solution you'd like
Update.npmrcand publishDescribe alternatives you've considered
NAAdditional context
NA๐ [Bug report]: Template is adding null for empty fields
Describe the bug
I a field is kept untouched on create play UI, then CRP marks them as null on read me.To Reproduce
Steps to reproduce the behavior:- Go to
react playapp on dev mode - Click on
Createwith some optional field as blank - Prepare the app with the newly created play
Expected behavior
Should be empty stringScreenshots
NADesktop (please complete the following information):
NASmartphone (please complete the following information):
NAAdditional context
NAโจ [Feature request]: scripts to perform intermediate tasks
Is your feature request related to a problem? Please describe.
Develop scripts either shell/python/js to perform intermediate steps like cloning the repo, forking, etcDescribe the solution you'd like
Adding scripts for individual intermediate steps๐ [Bug report]: The npx create-react-play doesn't work on Mac
Describe the bug
After submitting the create play form, the npx command doesn't work on the Mac terminal. It doesn't create the required scaffolding and boilerplate code. It works well on Windows.๐ [Bug report]: Build fails due to the Nhost cert issue
Describe the bug
Nhost has changed their GraphQL URL. Create React Play npm uses it, so need a change๐ [Bug report]: Update redme to use latest version of the package
Describe the bug
In a few casesnpxcontinue to use an old version ofcreate-react-playif it's already installed globally. In such a scenario, one needs to use the tag for the package. Update this information in readme.๐ [Bug report]: ReactPlay misspelled in the CLI
Describe the bug
A typo error in the welcome screen in the cli.Create React Playis displayed asCreate Rect Play.Additional context
Originally posted here.โจ [Feature request]: Create argument pasrser
Is your feature request related to a problem? Please describe.
rpdk will be having multiple entry point, to name them- Create play
- Update play
- Push changes
- etc
We need a robust argument parser to manage this
Describe the solution you'd like
Create a command-line argument parserDescribe alternatives you've considered
NAAdditional context
NA๐ [Bug report]: Verify and remove unwanted packages
Describe the bug
Remove packages likeprompt,child-processTo Reproduce
NAExpected behavior
NAScreenshots
NADesktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context
Add any other context about the problem here.โจ [Feature request]: Isolated play management
Is your feature request related to a problem? Please describe.
The idea here is to take out plays from the main container application and manage them separately (reactplay/react-play-store#8). These plays will be having their own package.json which will contain only the specific package that play needs. All common packages will come from react-play.
In order to achieve this, we would need to update create-react-play to enable- Fork
react-play-store - Clone
react-play-storetoreact-play/src/plays - Run
npm installoryarnonreact-play/src/plays - When a user wants to create a PR, it should only be on
react-play/src/plays
NOTE: Need extensive brainstorming to achieve the above usecase.
References:
โจ [Feature request]: Create a global package and host on npmjs
Is your feature request related to a problem? Please describe.
In order to make the development kit globally available for controlled play management, we need to host a global package onnpmjs.
The consumer will call the package by callingnpx <package_name> <switch> <values>
Describe the solution you'd like
NADescribe alternatives you've considered
NAAdditional context
NAFeature: Update initial configuration
Update basic configuration
- Code owner
- Code of conduct
- Contributing
- Sponsor
- Create play markdown > README.md
- PR template
- Issue template
- .gitignore
๐ [Bug report]: creating a play in typescript gets .ts format
Descrcibe the bug?
creating a play in typescript and after running the npx create-react-play .... thing the component apears in the respected folder but the component format it gets is .ts which should be .tsx. for that .ts format it shows error for the jsx code which is invalid for a .ts file.
Steps to reproduce the bug?
creating a play a in typescirpt
Expected behavior
should component should have the .tsx format
Desktop (Please provide your system information)
Ubuntu 22.04
Mobile (Please provide your device information)
No response
Screenshot / Screenshare
Relevant log output
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
๐ [Bug report]: Numeric naming of a play cause react failure
Describe the bug
When a play name contains only a numeric value in it, the bootstrapping fails.To Reproduce
Steps to reproduce the behavior:- Create a play with a name like
2048 - npx create-react-play -c <play_id>
- npm/yarn start
- See error
Expected behavior
It should allow numerical play nameScreenshots
NADesktop (please complete the following information):
ALLSmartphone (please complete the following information):
ALLAdditional context
NAโจ [Feature request]: Update build badge on markdown
โจ [Feature request]: Use slug and sanitized string for path
Is your feature request related to a problem? Please describe.
Currently, the package doesn't take care of special characters. So when a special character appears in name, it fails to provide appropriate templates.Describe the solution you'd like
Use slug and sanitized name for path fieldsDescribe alternatives you've considered
NAAdditional context
NAโจ [Feature request]: Create hooks for "create workflow"(marker)
Is your feature request related to a problem? Please describe.
Need to have a clear specification in code to identify different steps for creating a playDescribe the solution you'd like
This is just a marker update, actual implementation will be taken under different issue.Describe alternatives you've considered
NAAdditional context
NAEnhancement for easier the task to port to monorepo and plays outside the main application and more
In the current react-play, you can't have the play outside the main application as it is coded in src/plays.
Nevertheless, it's possible to build the application with the plays in another folder by using create-react-plays as it is the foundation for play creation.The current react-play doesn't allow it and the cost to move the application in the right way is heavier because lot of modification are needed and the validations are too slow.
A way to move the plays outside the body is needed and a better way to load plays too for performance issue.
โจ [Feature request]: Create test for a new created play to see if the page can render correctly
Description:
When creating a new play, we can't be sure that the play's page render well before it is send to the staff.Describe the solution you'd like
We can generate a small test on the page to check if
the play as the correct url and that this url can be visited.
Test if the play is assigned to the correct creator.
Check if header can render properly and if details appear on the page.Additional context
In React-play, an update need to be done on the .github file so the create file for the text is not submitted to the react-play repo.๐ [Bug report]:
Describe the bug
I am not able to create a play upon clicking thecreatebutton and receiving this "http://localhost:3000/plays/undefined/v1/auth/signin/provider/github?redirectTo=http://localhost:3000/plays/create" in the URL.
I read the docs and it states to log in with nhost which I did but still not able to pass the undefined error. Do I have to create a project onnhostto create a play?Update the create play service according to the new platform requirement
Due to the recent migration of the ReactPlay platform from CRA to Vite, there's a file convention in Vite that accepts only
.jsx,.ts, or.tsxfiles for React components.In order to adhere to this, we have to change how JS plays are created. We have to change the current play creation service from creating a
.jsfile to a.jsxfile๐ [Bug report]: Rename readme template to Readme
Describe the bug
Currently, the md template is named as readme_md.tmpl which breaks the standard naming convention of readme file.To Reproduce
NAExpected behavior
NAScreenshots
NADesktop (please complete the following information):
NASmartphone (please complete the following information):
NAAdditional context
NARecommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
OpenClaw
Personal AI Assistant
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.

