Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Commit 6201bae

Browse files
committed
add prettier
1 parent 77d9632 commit 6201bae

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+3287
-2989
lines changed

Diff for: .prettierignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist
2+
lib
3+
src/__tests__/fixtures

Diff for: CHANGELOG.md

+205-211
Large diffs are not rendered by default.

Diff for: CODE_OF_CONDUCT.md

+21-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,28 @@
11
# Contributor Code of Conduct
22

3-
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
3+
As contributors and maintainers of this project, we pledge to respect all people
4+
who contribute through reporting issues, posting feature requests, updating
5+
documentation, submitting pull requests or patches, and other activities.
46

5-
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
7+
We are committed to making participation in this project a harassment-free
8+
experience for everyone, regardless of level of experience, gender, gender
9+
identity and expression, sexual orientation, disability, personal appearance,
10+
body size, race, age, or religion.
611

7-
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
12+
Examples of unacceptable behavior by participants include the use of sexual
13+
language or imagery, derogatory comments or personal attacks, trolling, public
14+
or private harassment, insults, or other unprofessional conduct.
815

9-
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
16+
Project maintainers have the right and responsibility to remove, edit, or reject
17+
comments, commits, code, wiki edits, issues, and other contributions that are
18+
not aligned to this Code of Conduct. Project maintainers who do not follow the
19+
Code of Conduct may be removed from the project team.
1020

11-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
21+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
22+
reported by opening an issue or contacting one or more of the project
23+
maintainers.
1224

13-
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
25+
This Code of Conduct is adapted from the
26+
[Contributor Covenant](http://contributor-covenant.org), version 1.0.0,
27+
available at
28+
[http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)

Diff for: CONTRIBUTING.md

+27-22
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Contributing
22

3-
_postcss-cssnext uses a lot of [postcss](https://github.com/postcss) plugins,
4-
so you might need to take a look at them if you find an issue or want to create
5-
or enhance a feature._
3+
_postcss-cssnext uses a lot of [postcss](https://github.com/postcss) plugins, so
4+
you might need to take a look at them if you find an issue or want to create or
5+
enhance a feature._
66

7-
Otherwise, fork, work on a branch, install dev-dependencies,
8-
respect coding style & run tests before submitting a bug fix or a feature.
7+
Otherwise, fork, work on a branch, install dev-dependencies, respect coding
8+
style & run tests before submitting a bug fix or a feature.
99

1010
```console
1111
$ git clone https://github.com/YOU/postcss-cssnext.git
@@ -14,30 +14,35 @@ $ npm test
1414
$ git checkout -b fix.bug423
1515
```
1616

17-
`npm test` will compile what is need to be and run all tests.
18-
If you want to work on one test only, you can run something like
17+
`npm test` will compile what is need to be and run all tests. If you want to
18+
work on one test only, you can run something like
1919

2020
```console
2121
$ babel-tape-runner src/__tests__/option.browsers.js
2222
```
2323

24-
_Be sure to have in your PATH `./node_modules/.bin` so you can use local
25-
module directly in console._
24+
_Be sure to have in your PATH `./node_modules/.bin` so you can use local module
25+
directly in console._
2626

2727
## Details
2828

2929
### Add a feature
3030

31-
1. Add test files (input + expected output) in [`src/__tests__/fixtures/features`](src/__tests__/features)
32-
33-
- Choose a pretty simple and clear name (that match the specs), if you are not sure, ask using an issue.
34-
- Add the feature in :
35-
- `docs/content/index.md` (http://cssnext.io/)
36-
- `docs/content/features.md` (http://cssnext.io/features/) with an example + link to specs like others features
37-
- Add the dependency in the [`package.json`](package.json) (use `npm install --save postcss-...`)
38-
- Add the feature in the source (in [`src/features.js`](src/features.js)), in the appropriate place (order matter)
39-
For now, use a empty function instead of the right module
40-
- Run test, & check tests are broken (otherwise feature is useless)
41-
Now, call the right plugin in the function you just created
42-
- Run test and be happy
43-
- Add feature on [the playground](docs/content/playground.html) example
31+
1. Add test files (input + expected output) in
32+
[`src/__tests__/fixtures/features`](src/__tests__/features)
33+
34+
* Choose a pretty simple and clear name (that match the specs), if you are not
35+
sure, ask using an issue.
36+
* Add the feature in :
37+
* `docs/content/index.md` (http://cssnext.io/)
38+
* `docs/content/features.md` (http://cssnext.io/features/) with an example +
39+
link to specs like others features
40+
* Add the dependency in the [`package.json`](package.json) (use
41+
`npm install --save postcss-...`)
42+
* Add the feature in the source (in [`src/features.js`](src/features.js)), in
43+
the appropriate place (order matter) For now, use a empty function instead of
44+
the right module
45+
* Run test, & check tests are broken (otherwise feature is useless) Now, call
46+
the right plugin in the function you just created
47+
* Run test and be happy
48+
* Add feature on [the playground](docs/content/playground.html) example

Diff for: README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@
55
[![Version](https://img.shields.io/npm/v/postcss-cssnext.svg)](https://github.com/MoOx/postcss-cssnext/blob/master/CHANGELOG.md)
66
[![Support on gitter chat](https://img.shields.io/badge/support-gitter%20chat-E40255.svg)](https://gitter.im/MoOx/postcss-cssnext)
77

8-
98
> PostCSS plugin to use tomorrow’s CSS syntax, today.
109
11-
PostCSS-cssnext is a PostCSS plugin that helps you to use the latest CSS syntax today.
12-
It transforms CSS specs into more compatible CSS so you don’t need to wait for browser support.
10+
PostCSS-cssnext is a PostCSS plugin that helps you to use the latest CSS syntax
11+
today. It transforms CSS specs into more compatible CSS so you don’t need to
12+
wait for browser support.
1313

1414
---
1515

1616
## [Documentation](http://cssnext.io/)
1717

18-
- [Features](http://cssnext.io/features/)
19-
- [Setup](http://cssnext.io/setup/)
20-
- [Usage](http://cssnext.io/usage/)
21-
- [Playground](http://cssnext.io/playground/)
22-
- [Migration to postcss-cssnext](http://cssnext.io/postcss/)
18+
* [Features](http://cssnext.io/features/)
19+
* [Setup](http://cssnext.io/setup/)
20+
* [Usage](http://cssnext.io/usage/)
21+
* [Playground](http://cssnext.io/playground/)
22+
* [Migration to postcss-cssnext](http://cssnext.io/postcss/)
2323

2424
For questions and support please visit the
2525
[support chat](https://gitter.im/MoOx/postcss-cssnext).

Diff for: build.config.js

+22-22
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
const assign = require("object-assign")
1+
const assign = require("object-assign");
22

3-
const dev = process.argv.indexOf("--dev") > -1
4-
const devServer = process.argv.indexOf("--dev-server") > -1
5-
const production = process.argv.indexOf("--production") > -1
3+
const dev = process.argv.indexOf("--dev") > -1;
4+
const devServer = process.argv.indexOf("--dev-server") > -1;
5+
const production = process.argv.indexOf("--production") > -1;
66

77
const config = assign(
88
{
99
__DEV__: dev,
1010
__DEV_SERVER__: devServer,
1111
__PROD__: production,
12-
__SERVER_PROTOCOL__: "http://",
12+
__SERVER_PROTOCOL__: "http://"
1313
},
14-
(
15-
production
14+
production
1615
? {
17-
"process.env": {
18-
NODE_ENV: JSON.stringify("production"),
19-
},
20-
__SERVER_HOSTNAME__: "cssnext.io",
21-
__SERVER_HOST__: "cssnext.io",
22-
}
16+
"process.env": {
17+
NODE_ENV: JSON.stringify("production")
18+
},
19+
__SERVER_HOSTNAME__: "cssnext.io",
20+
__SERVER_HOST__: "cssnext.io"
21+
}
2322
: {
24-
__SERVER_HOSTNAME__: "0.0.0.0",
25-
__SERVER_PORT__: 1985,
26-
__SERVER_HOST__: "0.0.0.0:1985",
27-
__LR_SERVER_PORT__: 1986,
28-
}
29-
)
30-
)
23+
__SERVER_HOSTNAME__: "0.0.0.0",
24+
__SERVER_PORT__: 1985,
25+
__SERVER_HOST__: "0.0.0.0:1985",
26+
__LR_SERVER_PORT__: 1986
27+
}
28+
);
3129

32-
config.__SERVER_URL__ = `${config.__SERVER_PROTOCOL__}${config.__SERVER_HOST__}`
30+
config.__SERVER_URL__ = `${config.__SERVER_PROTOCOL__}${
31+
config.__SERVER_HOST__
32+
}`;
3333

34-
module.exports = config
34+
module.exports = config;

0 commit comments

Comments
 (0)