This repository was archived by the owner on Dec 19, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
3,287 additions
and
2,989 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
dist | ||
lib | ||
src/__tests__/fixtures |
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,28 @@ | ||
# Contributor Code of Conduct | ||
|
||
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. | ||
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. | ||
|
||
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. | ||
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. | ||
|
||
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. | ||
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. | ||
|
||
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. | ||
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. | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers. | ||
Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
reported by opening an issue or contacting one or more of the project | ||
maintainers. | ||
|
||
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/) | ||
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/) |
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 |
---|---|---|
@@ -1,34 +1,34 @@ | ||
const assign = require("object-assign") | ||
const assign = require("object-assign"); | ||
|
||
const dev = process.argv.indexOf("--dev") > -1 | ||
const devServer = process.argv.indexOf("--dev-server") > -1 | ||
const production = process.argv.indexOf("--production") > -1 | ||
const dev = process.argv.indexOf("--dev") > -1; | ||
const devServer = process.argv.indexOf("--dev-server") > -1; | ||
const production = process.argv.indexOf("--production") > -1; | ||
|
||
const config = assign( | ||
{ | ||
__DEV__: dev, | ||
__DEV_SERVER__: devServer, | ||
__PROD__: production, | ||
__SERVER_PROTOCOL__: "http://", | ||
__SERVER_PROTOCOL__: "http://" | ||
}, | ||
( | ||
production | ||
production | ||
? { | ||
"process.env": { | ||
NODE_ENV: JSON.stringify("production"), | ||
}, | ||
__SERVER_HOSTNAME__: "cssnext.io", | ||
__SERVER_HOST__: "cssnext.io", | ||
} | ||
"process.env": { | ||
NODE_ENV: JSON.stringify("production") | ||
}, | ||
__SERVER_HOSTNAME__: "cssnext.io", | ||
__SERVER_HOST__: "cssnext.io" | ||
} | ||
: { | ||
__SERVER_HOSTNAME__: "0.0.0.0", | ||
__SERVER_PORT__: 1985, | ||
__SERVER_HOST__: "0.0.0.0:1985", | ||
__LR_SERVER_PORT__: 1986, | ||
} | ||
) | ||
) | ||
__SERVER_HOSTNAME__: "0.0.0.0", | ||
__SERVER_PORT__: 1985, | ||
__SERVER_HOST__: "0.0.0.0:1985", | ||
__LR_SERVER_PORT__: 1986 | ||
} | ||
); | ||
|
||
config.__SERVER_URL__ = `${config.__SERVER_PROTOCOL__}${config.__SERVER_HOST__}` | ||
config.__SERVER_URL__ = `${config.__SERVER_PROTOCOL__}${ | ||
config.__SERVER_HOST__ | ||
}`; | ||
|
||
module.exports = config | ||
module.exports = config; |
Oops, something went wrong.