-
-
Notifications
You must be signed in to change notification settings - Fork 375
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
Update Readme with custom-templates listing #383
Conversation
README.md
Outdated
|
||
### Using Yarn | ||
- [material] - material-ui template using preact-material-components |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"material template...." material-ui
might be confusing with react's material-ui
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have to step out, but started going thru this.
README.md
Outdated
### Templates | ||
Note: | ||
|
||
1. You can run dev server using`HTTPS` then you can use the following `HTTPS=true preact watch` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing space before HTTPS
--src Entry file (index.js) [string] [default: "src"] | ||
--port, -p Port to start a server on [string] [default: "8080"] | ||
--host, Hostname to start a server on [string] [default: "0.0.0.0"] | ||
--https Use HTTPS? [boolean] [default: false] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't need ?
README.md
Outdated
|
||
### Commands | ||
Prerequisites: [Node.js](https://nodejs.org/en/) required version (> 6.x) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about > **Important:** Node v6.x is the minimum requirement.
Made a few tweaks and put it into gist: I've bullet pointed my suggested updates into a review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updates
- Moved the templates subsection to under the Official Templates section
- Changed title from
template
toCustom templates
- Updated content of
Custom templates
@silverlight513 Thanks! 🙏 I think this is a good example to point out that we need to clarify that the "template" in Nesting them under each other will surely, imo, add to the confusion. |
Ah, from the looks of it they appeared to be the same thing. My bad. @lukeed, would you mind explaining the difference between the |
@lukeed @silverlight513 thanks for the reviews and your time 🙏 Official Templates Till now (the current version) we were just using the code in the examples folder for boot-strapping new projects using preact cli. But in the next version (v2.0) we moved to custom-templates which will pull the the project from the The contents in the Template flag The template here refers to a custom By default in preact-cli we don't expose the HTML file as CRA does. So, we support a You can use them in the following way:
|
@silverlight513 No problem, I'm sure you're not/won't be the only one. The The "Official Templates" (or any template) is a new 2.0 feature which allows you to scaffold a new project from an external repository. Here, "template" is synonymous with "boilerplate." The motivation here is to allow community-driven, reusable templates so that users don't feel restricted to what's included in Preact CLI directly. |
We'll definitely update this as we go along. Better to have something reflective of the current repo sooner rather than later. |
* master: (166 commits) Use `publicPath` for SW & Manifest paths (#323) Purge `examples` dir (#393) Update Readme (#383) Add `preact list` command (#384) linters are dumb inject / replace strings in extracted contents adding flag to disable service worker Convert `css-loader` options to an Object (#349) remove `offline-plugin` (unused) remove `mkdirp` (unused) remove `less` dependencies fix linter move `htmlPlugin` to `render-html-plugin.js` install `css|postcss|style-loader` & regen `yarn.lock` remove `chunk.modules` deprecation notice rewrite server’s `webpack.config` without blocks rewrite client’s `webpack.config` without blocks install `webpack-merge` rewrite base `webpack.config` w/o blocks light refactor ... # Conflicts: # src/lib/webpack/webpack-base-config.js
Updates the
README
reflecting changes tocustom templates
which is the highlight for 2.0.Any inputs are more than welcome.
Please do not merge this PR until we are planning for a release.