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

Commit 2bb4388

Browse files
committed
build(setup): Run "boring" on repo to update project
1 parent 115eea3 commit 2bb4388

File tree

8 files changed

+1830
-304
lines changed

8 files changed

+1830
-304
lines changed

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
; http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
indent_style = space
7+
indent_size = 4
8+
end_of_line = lf
9+
charset = utf-8
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true
12+
13+
[{*.json,.stylelintrc,.eslintrc,.babelrc}]
14+
indent_size = 2

.eslintrc

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
{
2-
"root": true,
3-
"parserOptions": {
4-
"ecmaVersion": 2017
5-
},
6-
"extends": ["finn", "finn/node"],
7-
"env": {
8-
"node": true,
9-
"jest": true
10-
}
11-
}
2+
"root": true,
3+
"parserOptions": {
4+
"ecmaVersion": 2017
5+
},
6+
"extends": [
7+
"finn",
8+
"finn/node",
9+
"finn-prettier"
10+
],
11+
"env": {
12+
"node": true,
13+
"jest": true
14+
}
15+
}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ tmp/**/*
66
.idea/**/*
77
*.iml
88
*.log
9-
coverage
9+
coverage
10+
.vscode

.travis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
language: node_js
2-
32
node_js:
4-
- "8"
5-
3+
- '8'
64
script:
75
- npm test
86
- npm run lint
7+
cache:
8+
npm: true
9+
directories:
10+
- node_modules

LICENSE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!-- LICENSEFILE -->

README.md

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
1-
# asset-pipe-css-writer
1+
<!-- TITLE/ -->
2+
3+
<h1>asset-pipe-css-writer</h1>
4+
5+
<!-- /TITLE -->
6+
7+
8+
<!-- BADGES/ -->
9+
10+
<span class="badge-travisci"><a href="http://travis-ci.org/asset-pipe/asset-pipe-css-writer" title="Check this project's build status on TravisCI"><img src="https://img.shields.io/travis/asset-pipe/asset-pipe-css-writer/master.svg" alt="Travis CI Build Status" /></a></span>
11+
<span class="badge-npmversion"><a href="https://npmjs.org/package/asset-pipe-css-writer" title="View this project on NPM"><img src="https://img.shields.io/npm/v/asset-pipe-css-writer.svg" alt="NPM version" /></a></span>
12+
<span class="badge-daviddm"><a href="https://david-dm.org/asset-pipe/asset-pipe-css-writer" title="View the status of this project's dependencies on DavidDM"><img src="https://img.shields.io/david/asset-pipe/asset-pipe-css-writer.svg" alt="Dependency Status" /></a></span>
13+
<span class="badge-daviddmdev"><a href="https://david-dm.org/asset-pipe/asset-pipe-css-writer#info=devDependencies" title="View the status of this project's development dependencies on DavidDM"><img src="https://img.shields.io/david/dev/asset-pipe/asset-pipe-css-writer.svg" alt="Dev Dependency Status" /></a></span>
14+
15+
<!-- /BADGES -->
16+
217

318
[![Greenkeeper badge](https://badges.greenkeeper.io/asset-pipe/asset-pipe-css-writer.svg)](https://greenkeeper.io/)
419

520
A module that takes any number of css file entry points and packages them together with meta data before providing them as a readable stream.
621

7-
## Overview
822

923
Given any number of css file paths, for each file path, this module will:
1024
1. fetch the file at the path
@@ -14,7 +28,6 @@ Given any number of css file paths, for each file path, this module will:
1428

1529
The module provides a readable stream of the resulting objects.
1630

17-
### Output data format
1831

1932
```js
2033
{
@@ -31,20 +44,16 @@ The module provides a readable stream of the resulting objects.
3144
}
3245
```
3346

34-
## Installation
3547

3648
```bash
3749
npm install asset-pipe-css-writer
3850
```
3951

40-
## Usage
4152

42-
### Require the writer
4353
```js
4454
const CssWriter = require('asset-pipe-css-writer')
4555
```
4656

47-
### Instantiating the writer
4857

4958
Either pass a path to a single css file:
5059
```js
@@ -56,7 +65,6 @@ Or pass an array of paths to css files:
5665
const writer = new CssWriter(['/path/to/css/file1.css', '/path/to/css/file2.css'])
5766
```
5867

59-
### Consuming content from the writer
6068

6169
The writer is a readable stream in object mode so in order to access the data you may register a data handler
6270
and listen for objects to be passed to the handler:
@@ -79,4 +87,4 @@ const consumer = new Writeable({
7987
})
8088

8189
writer.pipe(consumer)
82-
```
90+
```

0 commit comments

Comments
 (0)