99x / react-scaffolder Goto Github PK
View Code? Open in Web Editor NEW:zap: Scaffolding tool for React
License: MIT License
:zap: Scaffolding tool for React
License: MIT License
I think about to use some JS template engine to generate files. To easily add some new templates for this project.
Replace react-boilerplate (code generated with init
command) with create-react-app boilerplate.
Create benchmark against clearly defined performance criteria to test performance of code.
Port code to es6 with babel
According to the documentation it should create a new project from this command
react init projectname
It gives this error on CLI
isuruAb:github isuruAb$ react init awesome-project
env: node\r: No such file or directory
macOS Sierra 10.12.5
Create descriptive documentation for usage.
Areas to discuss
Add configuration options for .reactclirc file.
Actual Behaviour
After last PR there is no ability to generate files without folders.
Generate prop-types within a component with the CLI itself.
After running
npm install -g react-scaffolder
react v -c
I get the error
env: node\r: No such file or directory
See above
I'm running [email protected] and [email protected] on [email protected]
Expected Behaviour
add test cases for missing functions
Would you like to work on the issue?
yes
Add .editorconfig
to maintain consistent code style.
Focus
We need to look into why this hasn't reached to developer community yet.
NPM Stats
0 downloads in the last month
Actual Behaviour
readme doesn't contain anything about clone from github feature.
Expected Behaviour
Update readme file.add about clone from repo feature.
Would you like to work on the issue?
yes
And as CONTRIBUTING.md says "Clarify the issue or the feature that's going to be implemented"
Also maybe I'll add some features for redux.
I do not agree with name like parent or child, but I like format that you use to store templates and interactive cli.
Define propTypes with type in propNames input (name:type)
Generate files like that and also without namespace before the slash.
Improve error messages in case of exceptions.
I think that it would be better to use object as argument.
instead of
generate.prototype.createComponent = function(
module,
componentName,
answers,
answersInner,
onlyFile,
cb
) {}
better is
generate.prototype.createComponent = function({
module,
componentName,
answers,
answersInner = null,
onlyFile = false,
cb
}) {}
And later use that:
generate.createComponent({
module: modulename,
componentName: name,
cb: function(status) {}
});
follow popular quick starters
Configure and rewrite unit tests with Jest.
Steps 1.
What are the useful react templates dev community is interested in?
Step 2.
Create Github projects and start implementation
Add pull request template and issue template
Using latest (Compatible) versions of npm packages
N/A
N/A
This is related to future work. Objective is to create an entire eco system of clients depending on a core set of APIs provided by react-scaffolder.
According to the proposed architecture core APIs will moved into a separate package. Probably similar to react-scaffolder-core.
Core will be consumed by client application. Web client, CLI, Electron application, opening up numerous possibilities rather than sticking into a CLI based solution.
Proposed architecture:
Add CODE_OF_CONDUCT.md
Design a logo
If user define prop name with * at the end (name*) set ptopType as required
โ application created successfully
Install react-scaffolder globally and run react init myApp
v0.3.0
The error occurs because in bin/initialize.js at rule 14 init is declared without the let/const/var keyword. I've changed it to var and it worked fine.
Currently boilerplate is generated based on a custom boilerplate. This should be customizable by adding the option to initialize the project based on a boilerplate on GitHub.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.