-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial Setup #1
Comments
I'm kind of taking a chance on facebookincubator/create-react-app with the hopes of simplifying what it takes to build and publish a react component to npm. I think a solid checklist includes the following:
I've worked around some Notes:
|
Have you considered using cookiecutter? It's like yeoman only every part of the template can be replaced. You can do like this: Source code: <html>
<head>
<script "{{cookiecutter.repo_name}}"></script>
<title>{{cookiecutter.repo_name}} by {{cookiecutter.author_name}}</title>
and so on... Directory names and filenames can also be templated. For example: /
/src/components/{{cookiecutter.repo_name}}.jsx Demo files can automatically use the real names of things without having to be edited after generation and so forth. So, instead of having to search & replace everywhere, the generation of the skeleton automatically uses the correct fields from the configuration (a simple JSON file with key/value storage of creation parameters like repo_name, license, version and so forth). I know...another tool...but I've found cookiecutter very helpful for things just like this where you need to make a bunch of them and search & replace gets very, very, very old very fast. Let me know what you think! |
The text was updated successfully, but these errors were encountered: