-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update version, use english spelling * remove beta-tag
- Loading branch information
Showing
13 changed files
with
52 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,12 +5,10 @@ Jump-start your <code>react</code>-powered Universal App<br /> | |
</p> | ||
<br /> | ||
|
||
`dev-toolkit` provides you with an easy and quick way to get started with a pre-rendered & | ||
server-rendered app. After creating your starting point with the `init` command, you get full | ||
customizeability out of the box. | ||
`dev-toolkit` provides you with an easy and quick way to get started with a pre-rendered & server-rendered app. After creating your starting point with the `init` command, you get full customisability out of the box. | ||
|
||
[![Travis branch](https://img.shields.io/travis/stoikerty/dev-toolkit/master.svg)](https://github.com/stoikerty/dev-toolkit) | ||
[![Vulnerabilities for dev-toolkit](https://snyk.io/test/github/stoikerty/dev-toolkit/badge.svg?targetFile=packages%2Fdev-toolkit%2Fpackage.json)](https://snyk.io/test/github/stoikerty/dev-toolkit?targetFile=packages%2Fdev-toolkit%2Fpackage.json) | ||
[![Vulnerabilities for dev-toolkit](https://snyk.io/test/github/stoikerty/dev-toolkit/badge.svg?targetFile=src%2Fpackages%2Fdev-toolkit%2Fpackage.json)](https://snyk.io/test/github/stoikerty/dev-toolkit?targetFile=src%2Fpackages%2Fdev-toolkit%2Fpackage.json) | ||
[![npm](https://img.shields.io/npm/v/dev-toolkit.svg)](https://www.npmjs.com/package/dev-toolkit) | ||
[![npm](https://img.shields.io/npm/dm/dev-toolkit.svg)](https://www.npmjs.com/package/dev-toolkit) | ||
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) | ||
|
@@ -23,64 +21,59 @@ $ npm install -g dev-toolkit | |
``` | ||
|
||
```bash | ||
# Initialize a project with optional name, template, comments | ||
# Initialise a project with optional name, template, comments | ||
# The comments explain how the `dev-toolkit` works with the template | ||
$ dev-toolkit init [project_name] [--template template_name] [--skip-comments] | ||
``` | ||
|
||
#### List of available templates | ||
|
||
- `standard` [![Vulnerabilities for standard template](https://snyk.io/test/github/stoikerty/dev-toolkit/badge.svg?targetFile=templates%2Fstandard%2Fpackage.json)](https://snyk.io/test/github/stoikerty/dev-toolkit?targetFile=templates%2Fstandard%2Fpackage.json) | ||
- `with-eslint` [![Vulnerabilities for with-eslint template](https://snyk.io/test/github/stoikerty/dev-toolkit/badge.svg?targetFile=templates%2Fwith-eslint%2Fpackage.json)](https://snyk.io/test/github/stoikerty/dev-toolkit?targetFile=templates%2Fwith-eslint%2Fpackage.json) | ||
- `with-sass` [![Vulnerabilities for with-sass template](https://snyk.io/test/github/stoikerty/dev-toolkit/badge.svg?targetFile=templates%2Fwith-sass%2Fpackage.json)](https://snyk.io/test/github/stoikerty/dev-toolkit?targetFile=templates%2Fwith-sass%2Fpackage.json) | ||
- [`minimal`](https://github.com/stoikerty/dev-toolkit/blob/master/docs/templates.md#minimal) [![Vulnerabilities for minimal template](https://snyk.io/test/github/stoikerty/dev-toolkit/badge.svg?targetFile=src%2Ftemplates%2Fminimal%2Fpackage.json)](https://snyk.io/test/github/stoikerty/dev-toolkit?targetFile=src%2Ftemplates%2Fminimal%2Fpackage.json) | ||
- [`standard`](https://github.com/stoikerty/dev-toolkit/blob/master/docs/templates.md#standard)* [![Vulnerabilities for standard template](https://snyk.io/test/github/stoikerty/dev-toolkit/badge.svg?targetFile=src%2Ftemplates%2Fstandard%2Fpackage.json)](https://snyk.io/test/github/stoikerty/dev-toolkit?targetFile=src%2Ftemplates%2Fstandard%2Fpackage.json) | ||
- [`with-eslint`](https://github.com/stoikerty/dev-toolkit/blob/master/docs/templates.md#with-eslint) [![Vulnerabilities for with-eslint template](https://snyk.io/test/github/stoikerty/dev-toolkit/badge.svg?targetFile=src%2Ftemplates%2Fwith-eslint%2Fpackage.json)](https://snyk.io/test/github/stoikerty/dev-toolkit?targetFile=src%2Ftemplates%2Fwith-eslint%2Fpackage.json) | ||
- [`with-sass`](https://github.com/stoikerty/dev-toolkit/blob/master/docs/templates.md#with-sass) [![Vulnerabilities for with-sass template](https://snyk.io/test/github/stoikerty/dev-toolkit/badge.svg?targetFile=src%2Ftemplates%2Fwith-sass%2Fpackage.json)](https://snyk.io/test/github/stoikerty/dev-toolkit?targetFile=src%2Ftemplates%2Fwith-sass%2Fpackage.json) | ||
|
||
## Features | ||
<small>* used by default when initialising a new project</small> | ||
|
||
* hot-reload on client by default | ||
* server-rendering | ||
* pre-rendering | ||
* creating a build | ||
* custom webpack config | ||
* use environment variables on client | ||
## 📖 Docs | ||
|
||
### No CSS by default | ||
- [Templates](https://github.com/stoikerty/dev-toolkit/blob/master/docs/templates.md) | ||
|
||
With CSS-in-JS solutions on the rise, it would be unwise to include dependencies for css-modules, | ||
sass or less in every project that has `dev-toolkit` as a dependency which would introduce | ||
additional installation time and bloat. The aim of dev-toolkit is to be unopinionated so that it can | ||
be useful in many scenarios. | ||
## 🌟 Features | ||
|
||
## Contributing | ||
`dev-toolkit` is intentionally minimalist on features. It's meant to get you started quickly with a project where you _will_ need customisability instead of mandating which technologies that you must use (such as Jest). | ||
|
||
Check out the project locally & create a PR. | ||
* **SSR by default** | ||
* **Ability to pre-render** _after_ webpack creates a build | ||
* **Complete control over client & server**<br> | ||
_see [template docs](https://github.com/stoikerty/dev-toolkit/blob/master/docs/templates.md)_ | ||
* **Start your project without bloat** _or guidance_ if you like it rough<br> | ||
_`dev-toolkit init --template minimal --skip-comments`_ | ||
* **Full control over your server-rendered template**<br> | ||
_no webpack lock-in such as with [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin) unless you choose to_ | ||
* **hot-reload on client & server**, opt-in for both | ||
* **Easy way to integrate any nodeHooks for SSR usage**<br> | ||
_using `/nodeHooks.js`_ | ||
* **Easy way to add webpack plugins and presets**<br> | ||
_using `/dev-toolkit.config.js`_ | ||
* **use select environment variables on client**<br> | ||
_using `import { sharedEnvs } from 'dev-toolkit/settings'`_ | ||
* **you can use sane if-statements, [jsx-control-statements](https://github.com/AlexGilleran/jsx-control-statements)**<br> | ||
_`<If condition={true}> ... </If>` will compile down to `&&`-syntax_ | ||
|
||
```bash | ||
# Clone down the repo locally | ||
$ git clone [email protected]:stoikerty/dev-toolkit.git | ||
|
||
# Install root lerna dependencies | ||
$ cd dev-toolkit | ||
$ npm install | ||
|
||
# Bootstrap all packages | ||
$ npm run bootstrap | ||
# If you encounter linux/osx permission issues, try this | ||
$ npm run bootstrap-fix | ||
|
||
# Run feature tests | ||
$ cd feature-tests | ||
$ npm install | ||
$ npm run test | ||
``` | ||
### Why No CSS by default? | ||
|
||
Your workflow will likely be to `cd` into a template of your choice in the `templates` directory | ||
where you can test `dev-toolkit` and in parallel (in a separate terminal) re-run the | ||
`bootstrap`-command in the root of the project after making changes in one of the `packages`. | ||
The aim of dev-toolkit is to be unopinionated so that it can be useful in many different scenarios. Therefore only the most necessary dependencies are included and other additions may be provided by yourself (see the other template examples for guidance). | ||
|
||
With CSS-in-JS solutions on the rise, it would be unwise to include dependencies for `css-modules`, `sass` or `less` in every project that has `dev-toolkit` as a dependency, it would introduce additional installation time and bloat. | ||
|
||
### Roadmap | ||
|
||
* Improved docs | ||
* More docs on extending with config, how dev-toolkit works, choices | ||
* serverless template | ||
* Using your own (external) template - under consideration | ||
* Eject feature - under consideration | ||
* serverless template - in development | ||
* list differences between dev-toolkit, next.js & create-react-app | ||
|
||
## Contributing | ||
See [`Contributing.md`](https://github.com/stoikerty/dev-toolkit/blob/master/Contributing.md) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters