2023-01-09 20:10:02 +01:00
|
|
|
# Contributing to the Sass website
|
2014-04-20 00:31:20 +02:00
|
|
|
|
2018-10-27 06:35:30 +02:00
|
|
|
The Sass website is open source. See a bug or typo? Have an idea? Do the
|
2014-04-20 00:31:20 +02:00
|
|
|
following:
|
|
|
|
|
2023-01-09 20:10:02 +01:00
|
|
|
- **Please read the [Implementation Guide][ig] and the [Style Guide][sg]**
|
2018-10-27 06:35:30 +02:00
|
|
|
before contributing.
|
2023-01-09 20:10:02 +01:00
|
|
|
- Write a detailed description of what you're adding in the pull request
|
2014-04-20 00:31:20 +02:00
|
|
|
(screenshots help).
|
2023-01-09 20:10:02 +01:00
|
|
|
- If there is new design or CSS, please add @Jina as a reviewer so she can see
|
2018-10-27 06:35:30 +02:00
|
|
|
if it needs to be added to the style guide (or if a suitable alternative
|
|
|
|
exists).
|
2023-01-09 20:10:02 +01:00
|
|
|
- Submit the pull request to the `main` branch.
|
|
|
|
- Drink whisky.
|
2014-04-20 00:31:20 +02:00
|
|
|
|
|
|
|
## Running Locally
|
|
|
|
|
2023-01-10 18:06:25 +01:00
|
|
|
### Install Node and Yarn
|
2014-04-20 00:31:20 +02:00
|
|
|
|
2023-01-10 18:06:25 +01:00
|
|
|
We recommend using [nvm](https://github.com/nvm-sh/nvm) for node version
|
|
|
|
management. [Install it](https://github.com/nvm-sh/nvm#installation-and-update)
|
|
|
|
if necessary, then run `nvm install` (once per active shell) to use the correct
|
|
|
|
version of node for development.
|
2014-04-20 00:31:20 +02:00
|
|
|
|
2023-01-10 18:06:25 +01:00
|
|
|
The correct [Yarn](https://yarnpkg.com/) version is included in the repo, and
|
|
|
|
will be used automatically for any `yarn` command.
|
|
|
|
|
|
|
|
To upgrade the node version used by the Sass website, update the version number
|
|
|
|
in these places and then run `nvm install` to upgrade:
|
|
|
|
|
|
|
|
- `package.json` (`engines.node` field)
|
|
|
|
- `.nvmrc`
|
|
|
|
|
|
|
|
To upgrade the yarn version, run `yarn set version latest`, then update the
|
|
|
|
version number in `package.json` (`engines.yarn` field) if necessary.
|
|
|
|
|
|
|
|
### Install dependencies
|
2014-04-20 00:31:20 +02:00
|
|
|
|
|
|
|
```
|
2023-01-10 18:06:25 +01:00
|
|
|
yarn
|
|
|
|
```
|
|
|
|
|
|
|
|
### Development tasks
|
|
|
|
|
|
|
|
Compile and run [Eleventy](https://www.11ty.dev/) server, with a watcher for
|
|
|
|
file changes:
|
|
|
|
|
|
|
|
```
|
|
|
|
yarn serve
|
|
|
|
```
|
|
|
|
|
|
|
|
The site will be compiled into `_site/` and available at http://localhost:8080.
|
|
|
|
|
|
|
|
You can also run individual commands:
|
|
|
|
|
|
|
|
```
|
|
|
|
# build the static site for development
|
|
|
|
yarn build
|
|
|
|
|
|
|
|
# format and lint all files
|
|
|
|
yarn lint
|
2014-04-20 00:31:20 +02:00
|
|
|
```
|
|
|
|
|
2015-11-27 22:36:53 +01:00
|
|
|
## Deploying
|
|
|
|
|
2023-01-10 18:06:25 +01:00
|
|
|
Every time a new commit is pushed to `main`, it will automatically be deployed
|
2018-03-10 00:55:07 +01:00
|
|
|
to sass-lang.com. Easy as that!
|
2014-04-20 00:31:20 +02:00
|
|
|
|
|
|
|
Thanks!
|
|
|
|
|
2018-10-22 23:13:05 +02:00
|
|
|
— Sass Core Team
|
2018-10-27 06:35:30 +02:00
|
|
|
|
2023-01-09 20:10:02 +01:00
|
|
|
[ig]: https://sass-lang.com/implementation
|
|
|
|
[sg]: https://sass-lang.com/styleguide
|