Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Update docs for Neutrino 9 changes #1108

Merged
merged 36 commits into from
Sep 19, 2018
Merged

Update docs for Neutrino 9 changes #1108

merged 36 commits into from
Sep 19, 2018

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented Sep 18, 2018

I think this is mostly done now, apart from:

  • the remaining TODOs in docs/api.md and docs/usage.md (NB making sure to describe --mode and NODE_ENV implications)
  • Updating the example output (eg webpack/linter console output)
  • ..?

Fixes #896.

@edmorley edmorley added the docs label Sep 18, 2018
@edmorley edmorley added this to the v9 milestone Sep 18, 2018
@edmorley edmorley self-assigned this Sep 18, 2018
@eliperelman eliperelman self-requested a review September 18, 2018 20:58
Copy link
Member

@eliperelman eliperelman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple nits.

docs/customization.md Outdated Show resolved Hide resolved
packages/karma/README.md Outdated Show resolved Hide resolved
packages/mocha/README.md Outdated Show resolved Hide resolved
The `webpack*` and `neutrino` packages have been intentionally left
off the package install lists for everything but the top-level build
presets, since:
- the test presets already state a requirement on a build preset
- the more advanced "building block" presets will be added to an
  already configured project by an advanced user

I've also intentionally not used a tilde version range for the new
peer dependencies (webpack/eslint/...) since it:
- makes the instructions more cluttered
- prevents yarn/npm from adding the full latest version number
- means more we have to update when bumping the peer dep numbers

If a new major version is released that is not compatible, we can
always add tilde ranges at that point. (Like already done for
`stylelint@^8`)
This was already the case for the top-level presets, but not the
lower-level ones.
* Removes references to the Neutrino CLI (eg `--use` and `neutrino lint`)
* Updates example `.eslintrc.js` (and removes the footgun "custom
  middleware example" - we shouldn't be encouraging people to diverge
  configs)
* Adds example package.json scripts `lint` entry using ESlint CLI
* Corrects `semi` rule name to `babel/semi`
* Adds `{ options: { root: __dirname } }` to all .neutrinorc.js
  examples, since that's the new recommended approach
* Syncs defaults with what's actually set
* Removes incorrect mention of `open` being an "extra" option, since
  it's supported natively by the already-linked devServer options.
Using HTML rather than markdown means mkdocs / mkdocs-material won't
treat these lines as linkable sections, that get put in the right-hand
side table of contents.
This intentionally doesn't list exact commands to run for inspect,
since they may get out of date with reality (given that we can't
update this file once projects have already been created).
Plus:
* Making sure to describe `--mode` and `NODE_ENV` implications
* Updating the example output (eg webpack/linter console output)
* ..?
@eliperelman
Copy link
Member

Yup fail.

"test": "neutrino test"
"start": "webpack-dev-server --mode development",
"build": "webpack --mode production",
"test": "jest"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add a lint entry here and say @neutrinojs/airbnb to the preset lists in this multi-preset example? (In lieu of a linting section on this page; or even in addition to, should we add one?)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It probably wouldn't hurt.

@edmorley edmorley merged commit 47ae54c into master Sep 19, 2018
@edmorley edmorley deleted the neutrino-9-docs branch September 19, 2018 22:24
eliperelman pushed a commit that referenced this pull request Sep 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

2 participants