Skip to content

Commit

Permalink
3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathantneal committed Jan 17, 2018
1 parent 559e84d commit bafe9c3
Show file tree
Hide file tree
Showing 20 changed files with 430 additions and 1,053 deletions.
8 changes: 6 additions & 2 deletions .gitignore
@@ -1,8 +1,12 @@
node_modules
index.bundle.js
package-lock.json
*.log*
*.result.css
.*
!.appveyor.yml
!.editorconfig
!.gitignore
!.rollup.js
!.tape.js
!.travis.yml
*.log*
*.actual.css
13 changes: 13 additions & 0 deletions .rollup.js
@@ -0,0 +1,13 @@
import babel from 'rollup-plugin-babel';

export default {
input: 'index.js',
output: { file: 'index.bundle.js', format: 'cjs' },
plugins: [
babel({
presets: [
['env', { modules: false, targets: { node: 4 } }]
]
})
]
};
21 changes: 21 additions & 0 deletions .tape.js
@@ -0,0 +1,21 @@
module.exports = {
'precss': {
'basic': {
message: 'supports basic usage'
},
'basic:variables': {
message: 'supports { variables } usage',
options: {
variables: {
faded: false
}
}
},
'basic:stage': {
message: 'supports { stage } usage',
options: {
stage: 3
}
}
}
};
51 changes: 31 additions & 20 deletions CHANGELOG.md
@@ -1,10 +1,21 @@
## 1.4.0 (2015-10-24)
# Changes to PreCSS

### 3.0.0 (June 29, 2017)

This comment has been minimized.

Copy link
@rickmzp

rickmzp Jan 17, 2018

Is this date correct?


- Completely rewritten

### 2.0.0 (January 6, 2018)

- Updated: PostCSS 6 (major)
- Updated: Plugin organization

## 1.4.0 (October 24, 2015)

- Added: At-Root 0.1.2
- Added: Property Lookup 1.1.3
- Updated: Tests and documentation

## 1.3.0 (2015-10-21)
## 1.3.0 (October 21, 2015)

- Updated: PostCSS 5.0.10 (patch)
- Updated: Advanced Variables 1.2.2 (minor)
Expand All @@ -13,40 +24,40 @@
- Updated: Nesting 2.0.6 (patch)
- Updated: Tests and documentation

## 1.2.3 (2015-09-24)
## 1.2.3 (September 24, 2015)

- Updated: Move selectors after nesting

## 1.2.2 (2015-09-24)
## 1.2.2 (September 24, 2015)

- Updated: package.json to spaces

## 1.2.1 (2015-09-24)
## 1.2.1 (September 24, 2015)

- Updated: Plugin ordering

## 1.2.0 (2015-09-24)
## 1.2.0 (September 24, 2015)

- Added: PostCSS Nesting 2.0.4
- Added: Tests for `@nest`
- Updated: PostCSS 5.0.6
- Updated: PostCSS Mixins 1.0.1
- Deprecated: PostCSS Nesting 2.0.4

## 1.1.3 (2015-09-14)
## 1.1.3 (September 14, 2015)

- Updated: PostCSS 5.0.5
- Updated: PostCSS Partial Import 1.3.0

## 1.1.2 (2015-09-08)
## 1.1.2 (September 08, 2015)

- Updated: PostCSS Partial Import 1.1.1

## 1.1.1 (2015-09-08)
## 1.1.1 (September 08, 2015)

- Updated: PostCSS Extend 1.1.0

## 1.1.0 (2015-09-08)
## 1.1.0 (September 08, 2015)

- Added: PostCSS Extend
- Added: PostCSS Partial Import
Expand All @@ -60,7 +71,7 @@
- Removed: PostCSS Import
- Removed: PostCSS Sass Extend

## 1.0.0 (2015-09-07)
## 1.0.0 (September 07, 2015)

- Updated: PostCSS 5.0.4
- Updated: PostCSS Advanced Variables 1.0.0
Expand All @@ -74,44 +85,44 @@
- Removed: PostCSS Simple Vars
- Removed: PostCSS process method which is now in core

## 0.3.0 (2015-07-22)
## 0.3.0 (July 22, 2015)

- Added: postcss-advanced-variables support for vars in `@media`
- Added: postcss-import `skipDuplicates` option to allows you to not skip duplicated files
- Added: postcss-mixins `mixinsFiles` option.
- Updated: other plugins without notable changes

## 0.2.2 (2015-07-10)
## 0.2.2 (July 10, 2015)

- Updated: Documentation

## 0.2.1 (2015-07-10)
## 0.2.1 (July 10, 2015)

- Added: Switch from postcss-sass-extend to postcss-simple-extend

## 0.1.3 (2015-07-08)
## 0.1.3 (July 08, 2015)

- Added: Support for @else statements
- Updated: Dependencies

## 0.1.2 (2015-07-08)
## 0.1.2 (July 08, 2015)

- Updated: Tests to support nested options

## 0.1.1 (2015-07-08)
## 0.1.1 (July 08, 2015)

- Fixed: Re-ordered plugins so they don’t break each other
- Changed: Plugin option namespaces
- Removed: Unnecessary default options

## 0.1.0 (2015-07-08)
## 0.1.0 (July 08, 2015)

- Changed: Named project precss

## 0.0.2 (2015-07-07)
## 0.0.2 (July 07, 2015)

- Updated: Swapped conditional, for, and each for advanced-variables

## 0.0.1 (2015-07-06)
## 0.0.1 (July 06, 2015)

Pre-release
39 changes: 22 additions & 17 deletions CONTRIBUTING.md
@@ -1,4 +1,7 @@
You want to help? You rock! Now, take a moment to be sure your contributions make sense to everyone else.
# Contributing to PreCSS

You want to help? You rock! Now, take a moment to be sure your contributions
make sense to everyone else.

## Reporting Issues

Expand All @@ -11,50 +14,52 @@ Remember, a bug is a _demonstrable problem_ caused by _our_ code.

## Submitting Pull Requests

Pull requests are the greatest contributions, so be sure they are focused in scope, and do avoid unrelated commits.
Pull requests are the greatest contributions, so be sure they are focused in
scope and avoid unrelated commits.

1. To begin, [fork this project], clone your fork, and add our upstream.
1. To begin; [fork this project], clone your fork, and add our upstream.
```bash
# Clone your fork of the repo into the current directory
git clone https://github.com/<your-username>/precss
git clone git@github.com:YOUR_USER/precss.git

# Navigate to the newly cloned directory
cd precss

# Assign the original repo to a remote called "upstream"
git remote add upstream https://github.com/jonathantneal/precss
# Install the tools necessary for development
git remote add upstream git@github.com:jonathantneal/precss.git

# Install the tools necessary for testing
npm install
```

2. Create a branch for your feature or fix:
```bash
# Move into a new branch for a feature
# Move into a new branch for your feature
git checkout -b feature/thing
```
```bash
# Move into a new branch for a fix
# Move into a new branch for your fix
git checkout -b fix/something
```

3. Be sure your code follows our practices.
3. If your code follows our practices, then push your feature branch:
```bash
# Test current code
npm run test
npm test
```

4. Push your branch up to your fork:
```bash
# Push a feature branch
# Push the branch for your new feature
git push origin feature/thing
```
```bash
# Push a fix branch
git push origin fix/something
# Or, push the branch for your update
git push origin update/something
```

5. Now [open a pull request] with a clear title and description.
That’s it! Now [open a pull request] with a clear title and description.

[already been reported]: issues
[fork this project]: fork
[live example]: http://codepen.io/pen
[live example]: https://codepen.io/pen
[open a pull request]: https://help.github.com/articles/using-pull-requests/
[reduced test case]: https://css-tricks.com/reduced-test-cases/
109 changes: 101 additions & 8 deletions LICENSE.md
@@ -1,15 +1,108 @@
# CC0 1.0 Universal License
# CC0 1.0 Universal

Public Domain Dedication
## Statement of Purpose

The person(s) who associated a work with this deed has dedicated the work to the public domain by waiving all of his or her rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law.
The laws of most jurisdictions throughout the world automatically confer
exclusive Copyright and Related Rights (defined below) upon the creator and
subsequent owner(s) (each and all, an “owner”) of an original work of
authorship and/or a database (each, a “Work”).

You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
Certain owners wish to permanently relinquish those rights to a Work for the
purpose of contributing to a commons of creative, cultural and scientific works
(“Commons”) that the public can reliably and without fear of later claims of
infringement build upon, modify, incorporate in other works, reuse and
redistribute as freely as possible in any form whatsoever and for any purposes,
including without limitation commercial purposes. These owners may contribute
to the Commons to promote the ideal of a free culture and the further
production of creative, cultural and scientific works, or to gain reputation or
greater distribution for their Work in part through the use and efforts of
others.

In no way are the patent or trademark rights of any person affected by CC0, nor are the rights that other persons may have in the work or in how the work is used, such as publicity or privacy rights.
For these and/or other purposes and motivations, and without any expectation of
additional consideration or compensation, the person associating CC0 with a
Work (the “Affirmer”), to the extent that he or she is an owner of Copyright
and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and
publicly distribute the Work under its terms, with knowledge of his or her
Copyright and Related Rights in the Work and the meaning and intended legal
effect of CC0 on those rights.

Unless expressly stated otherwise, the person(s) who associated a work with this deed makes no warranties about the work, and disclaims liability for all uses of the work, to the fullest extent permitted by applicable law.
1. Copyright and Related Rights. A Work made available under CC0 may be
protected by copyright and related or neighboring rights (“Copyright and
Related Rights”). Copyright and Related Rights include, but are not limited
to, the following:
1. the right to reproduce, adapt, distribute, perform, display, communicate,
and translate a Work;
2. moral rights retained by the original author(s) and/or performer(s);
3. publicity and privacy rights pertaining to a person’s image or likeness
depicted in a Work;
4. rights protecting against unfair competition in regards to a Work,
subject to the limitations in paragraph 4(i), below;
5. rights protecting the extraction, dissemination, use and reuse of data in
a Work;
6. database rights (such as those arising under Directive 96/9/EC of the
European Parliament and of the Council of 11 March 1996 on the legal
protection of databases, and under any national implementation thereof,
including any amended or successor version of such directive); and
7. other similar, equivalent or corresponding rights throughout the world
based on applicable law or treaty, and any national implementations
thereof.

When using or citing the work, you should not imply endorsement by the author or the affirmer.
2. Waiver. To the greatest extent permitted by, but not in contravention of,
applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and
unconditionally waives, abandons, and surrenders all of Affirmer’s Copyright
and Related Rights and associated claims and causes of action, whether now
known or unknown (including existing as well as future claims and causes of
action), in the Work (i) in all territories worldwide, (ii) for the maximum
duration provided by applicable law or treaty (including future time
extensions), (iii) in any current or future medium and for any number of
copies, and (iv) for any purpose whatsoever, including without limitation
commercial, advertising or promotional purposes (the “Waiver”). Affirmer
makes the Waiver for the benefit of each member of the public at large and
to the detriment of Affirmer’s heirs and successors, fully intending that
such Waiver shall not be subject to revocation, rescission, cancellation,
termination, or any other legal or equitable action to disrupt the quiet
enjoyment of the Work by the public as contemplated by Affirmer’s express
Statement of Purpose.

This is a [human-readable summary of the Legal Code](https://creativecommons.org/publicdomain/zero/1.0/) ([read the full text](https://creativecommons.org/publicdomain/zero/1.0/legalcode)).
3. Public License Fallback. Should any part of the Waiver for any reason be
judged legally invalid or ineffective under applicable law, then the Waiver
shall be preserved to the maximum extent permitted taking into account
Affirmer’s express Statement of Purpose. In addition, to the extent the
Waiver is so judged Affirmer hereby grants to each affected person a
royalty-free, non transferable, non sublicensable, non exclusive,
irrevocable and unconditional license to exercise Affirmer’s Copyright and
Related Rights in the Work (i) in all territories worldwide, (ii) for the
maximum duration provided by applicable law or treaty (including future time
extensions), (iii) in any current or future medium and for any number of
copies, and (iv) for any purpose whatsoever, including without limitation
commercial, advertising or promotional purposes (the “License”). The License
shall be deemed effective as of the date CC0 was applied by Affirmer to the
Work. Should any part of the License for any reason be judged legally
invalid or ineffective under applicable law, such partial invalidity or
ineffectiveness shall not invalidate the remainder of the License, and in
such case Affirmer hereby affirms that he or she will not (i) exercise any
of his or her remaining Copyright and Related Rights in the Work or (ii)
assert any associated claims and causes of action with respect to the Work,
in either case contrary to Affirmer’s express Statement of Purpose.

4. Limitations and Disclaimers.
1. No trademark or patent rights held by Affirmer are waived, abandoned,
surrendered, licensed or otherwise affected by this document.
2. Affirmer offers the Work as-is and makes no representations or warranties
of any kind concerning the Work, express, implied, statutory or
otherwise, including without limitation warranties of title,
merchantability, fitness for a particular purpose, non infringement, or
the absence of latent or other defects, accuracy, or the present or
absence of errors, whether or not discoverable, all to the greatest
extent permissible under applicable law.
3. Affirmer disclaims responsibility for clearing rights of other persons
that may apply to the Work or any use thereof, including without
limitation any person’s Copyright and Related Rights in the Work.
Further, Affirmer disclaims responsibility for obtaining any necessary
consents, permissions or other rights required for any use of the Work.
4. Affirmer understands and acknowledges that Creative Commons is not a
party to this document and has no duty or obligation with respect to this
CC0 or use of the Work.

For more information, please see
http://creativecommons.org/publicdomain/zero/1.0/.

0 comments on commit bafe9c3

Please sign in to comment.