generated from jednano/private-node-starter
-
Notifications
You must be signed in to change notification settings - Fork 9
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
12 changed files
with
940 additions
and
930 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
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,4 +1,5 @@ | ||
{ | ||
"commands-show-output": false, | ||
"list-marker-space": { | ||
"ol_multi": 2, | ||
"ol_single": 2, | ||
|
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,5 +1,38 @@ | ||
# private-node-starter | ||
# craco-linaria | ||
|
||
[![Travis Build Status](https://travis-ci.com/jedmao/private-node-starter.svg?branch=master)](https://travis-ci.com/jedmao/private-node-starter) | ||
[![codecov](https://codecov.io/gh/jedmao/private-node-starter/branch/master/graph/badge.svg)](https://codecov.io/gh/jedmao/private-node-starter) | ||
[![Travis Build Status](https://travis-ci.com/jedmao/craco-linaria.svg?branch=master)](https://travis-ci.com/jedmao/craco-linaria) | ||
[![codecov](https://codecov.io/gh/jedmao/craco-linaria/branch/master/graph/badge.svg)](https://codecov.io/gh/jedmao/craco-linaria) | ||
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) | ||
|
||
A [craco](https://www.npmjs.com/package/@craco/craco) plugin to use [Linaria][] | ||
zero-runtime CSS in JS library in a create react app. | ||
|
||
## Installation | ||
|
||
First, follow craco's | ||
[installation instructions](https://github.com/sharegate/craco/blob/master/packages/craco/README.md#installation). | ||
|
||
Then, install `craco-linaria`: | ||
|
||
```bash | ||
$ npm install --save craco-linaria | ||
``` | ||
|
||
## Usage | ||
|
||
```js | ||
/* craco.config.js */ | ||
const CracoLinariaPlugin = require('craco-linaria') | ||
|
||
module.exports = { | ||
plugins: [{ plugin: CracoLinariaPlugin }], | ||
} | ||
``` | ||
|
||
## Git Ignore | ||
|
||
This plugin stores [Linaria][] cache in `src/.linaria_cache`, so you might want | ||
to add that path to your [`.gitignore`](https://git-scm.com/docs/gitignore) | ||
file. | ||
|
||
[linaria]: https://linaria.now.sh/ |
Oops, something went wrong.