-
Notifications
You must be signed in to change notification settings - Fork 335
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 in npm package #804
Conversation
b20c1cd
to
2593426
Compare
2593426
to
8a03278
Compare
package/README.md
Outdated
|
||
### Build tool configuration | ||
You can include Javascript for all components either by copying the `all.js` from `node_modules/govuk-frontend` into your application or referencing the file directly: |
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.
These changes are good but it makes me uneasy that they've not been made consistently in the installation section...
Hi all, Reads well, I have a few comments/suggestions below:
|
3854abe
to
2f5f0e4
Compare
Thanks @TechPunk316 for the review! 👍 I've made the required changes and also reflected these in the installation docs. Additionally, I've updated package I'll squash the commits once approved. |
package/README.md
Outdated
|
||
npm install --save govuk-frontend | ||
Install the long-term support (LTS) version of [Node.js](https://nodejs.org/en/), which includes NPM. The minimum version of Node required is 8.6.0. |
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.
Is this true?
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.
No, this is the minimum we require to contribute GOV.UK Frontend, not to consume it.
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.
I've removed this section as it duplicates the npm installation instructions and is not true if you decide to install with option 2.
In the npm installation instructions, I've downgraded the version of node required to 4.2.0. which builds with nunjucks 3.0.0 and the nunjucks templates render.
Our contributing docs still say that Node 8.6.0 is required.
package/README.md
Outdated
### 1. Install with npm (recommended) | ||
|
||
We recommend [installing GOV.UK Frontend using node package manager | ||
(npm)](docs/installation/installing-with-npm.md). |
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.
This link is broken – and when this is published to npm we can't reference another path relatively at all. Suggest making this a link including github.com (like we have for 'More details on importing styles')?
There's a few other links in this file that are also broken – I won't comment on them all.
package/README.md
Outdated
|
||
To import add the below to your Sass file: | ||
|
||
```CSS |
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.
I think this should be scss for correct highlighting.
2f5f0e4
to
549750c
Compare
549750c
to
beb5d46
Compare
beb5d46
to
db86209
Compare
db86209
to
4ceb3ec
Compare
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.
Few very minor comments, but this is looking ace 👌
package/README.md
Outdated
npm install --save govuk-frontend | ||
Once installed, you will be able to use the code from the examples in the | ||
[GOV.UK Design System](https://www.gov.uk/design-system) | ||
in your service. |
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.
Minor: I don't think this needs to be wrapped onto a new line now that the URL is shorter.
package/README.md
Outdated
|
||
You can include Javascript for all components either by copying the `all.js` from `node_modules/govuk-frontend` into your application or referencing the file directly: | ||
|
||
```js |
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.
This is HTML.
package/README.md
Outdated
``` | ||
Next you need to initialise the script by adding: | ||
|
||
```js |
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.
As is this.
4ceb3ec
to
64a828f
Compare
64a828f
to
f8185ab
Compare
package/README.md
Outdated
autoescape: true, | ||
cache: false, | ||
express: app | ||
}) | ||
|
||
## Getting updates |
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.
Can we update this text too?
To check whether you have the latest version of the button run:
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.
Also To update the latest version run: may be clear as To update to the latest version run:
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.
Good spot!
f8185ab
to
c821490
Compare
c821490
to
c88039e
Compare
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.
🎉
Currently the contents is out of date.
Proposed change includes parts of the main readme and parts of https://github.com/alphagov/govuk-frontend/blob/master/docs/installation/installing-with-npm.md with introduction bits and links to more details
Todo:
Adresses: #753