Skip to content

Commit

Permalink
Merge pull request #27 from dbtedman/feature/make-it-current
Browse files Browse the repository at this point in the history
Feature/make it current
  • Loading branch information
dbtedman committed Oct 21, 2018
2 parents 068cc51 + cbfdc4b commit 0955d26
Show file tree
Hide file tree
Showing 32 changed files with 2,584 additions and 4,931 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -14,4 +14,4 @@
# Test runtime and reporting.
/.nyc_output/
/coverage/
/test-integration/.temp/
/integration/.temp/
19 changes: 5 additions & 14 deletions .travis.yml
Expand Up @@ -7,25 +7,16 @@
language: node_js
sudo: false

env:
global:
- 'CC_TEST_REPORTER_ID=9b72b16c8c4454b3099977808d6199d1e02aeb2b8f2aa0cd9dceb37c482fcb5a'

node_js:
- '8'
- '9'
- '8'
- '9'
- '10'

cache:
directories:
- 'node_modules'
- 'node_modules'

before_script:
- 'curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter'
- 'chmod +x ./cc-test-reporter'
- './cc-test-reporter before-build'
- 'npm install'
- 'npm install'

script: 'npm run test'

after_script:
- './cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT'
32 changes: 19 additions & 13 deletions CHANGELOG.md
Expand Up @@ -3,7 +3,13 @@

Releases ordered so that the most recent are displayed at the top, with the currently being developed release at the top, labeled as **In Development**. This release will be given a number once it is ready to be released. Each release can contain both a **Features and Improvements** and **Bug Fixes** sections.

## 1.3.0 [![Build Status](https://travis-ci.org/dbtedman/postcss-prefixwrap.svg?branch=1.3.0)](https://travis-ci.org/dbtedman/postcss-prefixwrap)
## In Development

### Features and Improvements

* Project cleanup.

## 1.3.0

### Features and Improvements

Expand All @@ -13,7 +19,7 @@ Releases ordered so that the most recent are displayed at the top, with the curr

* Stop ESLint from searching for config files in parent folders. [#23](https://github.com/dbtedman/postcss-prefixwrap/pull/23)

## 1.2.0 [![Build Status](https://travis-ci.org/dbtedman/postcss-prefixwrap.svg?branch=1.2.0)](https://travis-ci.org/dbtedman/postcss-prefixwrap)
## 1.2.0

### Features and Improvements

Expand All @@ -25,69 +31,69 @@ Releases ordered so that the most recent are displayed at the top, with the curr

* Keyframe percentages are incorrectly prefixed. [#17](https://github.com/dbtedman/postcss-prefixwrap/issues/17)

## 1.1.3 [![Build Status](https://travis-ci.org/dbtedman/postcss-prefixwrap.svg?branch=1.1.3)](https://travis-ci.org/dbtedman/postcss-prefixwrap)
## 1.1.3

### Bug Fixes

* Selectors containing the word "body" or "html" treated as root. [#6](https://github.com/dbtedman/postcss-prefixwrap/issues/6)

## 1.1.2 [![Build Status](https://travis-ci.org/dbtedman/postcss-prefixwrap.svg?branch=1.1.2)](https://travis-ci.org/dbtedman/postcss-prefixwrap)
## 1.1.2

### Bug Fixes

* Support for multiline selectors.

## 1.1.1 [![Build Status](https://travis-ci.org/dbtedman/postcss-prefixwrap.svg?branch=1.1.1)](https://travis-ci.org/dbtedman/postcss-prefixwrap)
## 1.1.1

### Features and Improvements

* Updates to support disabling of html/body replacement.
* Enable support for multiple selectors.

## 1.0.1 [![Build Status](https://travis-ci.org/dbtedman/postcss-prefixwrap.svg?branch=1.0.1)](https://travis-ci.org/dbtedman/postcss-prefixwrap)
## 1.0.1

### Features and Improvements

* Updates to README contents.

## 1.0.0 [![Build Status](https://travis-ci.org/dbtedman/postcss-prefixwrap.svg?branch=1.0.0)](https://travis-ci.org/dbtedman/postcss-prefixwrap)
## 1.0.0

### Features and Improvements

* Updated npm dependencies to explicitly define versions.

## 0.2.2 [![Build Status](https://travis-ci.org/dbtedman/postcss-prefixwrap.svg?branch=0.2.2)](https://travis-ci.org/dbtedman/postcss-prefixwrap)
## 0.2.2

### Features and Improvements

* Expanded ESLint coverage to validate test scripts.
* Extracted contributor details into `CONTRIBUTING.md` file and simplified project `README.md`.

## 0.2.1 [![Build Status](https://travis-ci.org/dbtedman/postcss-prefixwrap.svg?branch=0.2.1)](https://travis-ci.org/dbtedman/postcss-prefixwrap)
## 0.2.1

### Features and Improvements

* Added test for our container selector matching existing selector.

## 0.2.0 [![Build Status](https://travis-ci.org/dbtedman/postcss-prefixwrap.svg?branch=0.2.0)](https://travis-ci.org/dbtedman/postcss-prefixwrap)
## 0.2.0

### Features and Improvements

* Added Mocha Unit tests.

## 0.1.0 [![Build Status](https://travis-ci.org/dbtedman/postcss-prefixwrap.svg?branch=0.1.0)](https://travis-ci.org/dbtedman/postcss-prefixwrap)
## 0.1.0

### Features and Improvements

* Add support for top level combined selectors containing our container class.

## 0.0.5 [![Build Status](https://travis-ci.org/dbtedman/postcss-prefixwrap.svg?branch=0.0.5)](https://travis-ci.org/dbtedman/postcss-prefixwrap)
## 0.0.5

### Bug Fixes

* Updated ignores to help npm.

## 0.0.4 [![Build Status](https://travis-ci.org/dbtedman/postcss-prefixwrap.svg?branch=0.0.4)](https://travis-ci.org/dbtedman/postcss-prefixwrap)
## 0.0.4

### Features and Improvements

Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Expand Up @@ -21,15 +21,15 @@ Dependency version checks are performed by [Dependabot](https://dependabot.com/)

### Unit Tests

Code is unit tested using [MochaJS](https://mochajs.org), using test cases defined in the `test-unit/` directory.
Code is unit tested using [MochaJS](https://mochajs.org), using test cases defined in the `unit/` directory.

```bash
npm run test:unit
```

### Integration Tests

Code is integration tested using [MochaJS](https://mochajs.org), using test cases defined in the `test-integration/` directory.
Code is integration tested using [MochaJS](https://mochajs.org), using test cases defined in the `integration/` directory.

```bash
npm run test:integration
Expand Down
59 changes: 23 additions & 36 deletions README.md
Expand Up @@ -2,10 +2,6 @@
# [PostCSS Prefix Wrap](https://github.com/dbtedman/postcss-prefixwrap)

[![Build Status](https://travis-ci.org/dbtedman/postcss-prefixwrap.svg?branch=master)](https://travis-ci.org/dbtedman/postcss-prefixwrap)
[![NPM Version](https://img.shields.io/npm/v/postcss-prefixwrap.svg)](https://www.npmjs.com/package/postcss-prefixwrap)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE.md)
[![Maintainability](https://api.codeclimate.com/v1/badges/fa0627fb4cfdc2a6dd04/maintainability)](https://codeclimate.com/github/dbtedman/postcss-prefixwrap/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/fa0627fb4cfdc2a6dd04/test_coverage)](https://codeclimate.com/github/dbtedman/postcss-prefixwrap/test_coverage)
[![Known Vulnerabilities](https://snyk.io/test/github/dbtedman/postcss-prefixwrap/badge.svg)](https://snyk.io/test/github/dbtedman/postcss-prefixwrap)

A [PostCSS](http://postcss.org) plugin which prepends a selector to CSS styles to constrain their effect on parent elements in a page.
Expand All @@ -14,50 +10,44 @@ A [PostCSS](http://postcss.org) plugin which prepends a selector to CSS styles t

> These instructions are only for this plugin. See the [PostCSS](http://postcss.org) website for framework information.
1\. Install the plugin.
### Install

**[Yarn](https://yarnpkg.com/en/package/postcss-prefixwrap):**
Using [NPM](https://www.npmjs.com)

```bash
yarn add --dev postcss-prefixwrap
npm install postcss-prefixwrap --save-dev --save-exact
```

**[NPM](https://www.npmjs.com/package/postcss-prefixwrap):**

```bash
npm install --save-dev postcss-prefixwrap
```

2\. Add to your [PostCSS](http://postcss.org) configuration.
### Configure

Add to your [PostCSS](http://postcss.org) configuration.

```javascript
var gulp = require('gulp');
var postcss = require('gulp-postcss');
var prefixwrap = require("postcss-prefixwrap"); // The require for PostCSS Prefix Wrap.

gulp.task("css", function () {
var processors = [
prefixwrap(".my-custom-wrap")
];
return gulp.src("./src/*.css")
.pipe(postcss(processors))
.pipe(gulp.dest("./dest"));
});
const Gulp = require("gulp");
const PostCSS = require("gulp-postcss");
const PrefixWrap = require("postcss-prefixwrap");

Gulp.task("css", () => Gulp.src("./src/*.css")
.pipe(PostCSS([
PrefixWrap(".my-custom-wrap")
]))
.pipe(Gulp.dest("./dest"))
);
```

> This example uses gulp, and is based on the [gulp-postcss](https://github.com/postcss/gulp-postcss) README.
### Container

3\. Add the container to your markup.
Add the container to your markup.

```html
<div class="my-custom-wrap">
<!-- Your existing markup. -->
</div>
```

4\. View your CSS, now prefix-wrapped.
### View

View your CSS, now prefix-wrapped.

**Before**

Expand Down Expand Up @@ -85,10 +75,7 @@ body {

## Want to lean more?

See our [Contributing Guide](CONTRIBUTING.md) for details on how the sausage is made.

## Who built it?

Created [Down Under](https://en.wikipedia.org/wiki/Australia) by [Daniel Tedman](https://danieltedman.com) and [Jeff Teng](https://jafoteng.co) with [contributions from around the web](https://github.com/dbtedman/postcss-prefixwrap/graphs/contributors).

[![Australia](https://danieltedman.com/images/Australia.png)](https://en.wikipedia.org/wiki/Australia)
* See our [Contributing Guide](CONTRIBUTING.md) for details on how this repository is developed.
* See our [Changelog](CHANGELOG.md) for details on which features, improvements, and bug fixes have been implemented
* See our [License](LICENSE.md) for details on how you can use the code in this repository.
* See our [Security Guide](SECURITY.md) for details on how security is considered.
6 changes: 6 additions & 0 deletions SECURITY.md
@@ -0,0 +1,6 @@

# Security

## Dependency Vulnerability Scanning

Provided by [Snyk](https://snyk.io/test/github/dbtedman/postcss-prefixwrap), validating NPM dependencies.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 0955d26

Please sign in to comment.