Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
Merge branch 'release/4.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
borodean committed Jan 30, 2016
2 parents 69e4b15 + 51f93f0 commit b2db843
Show file tree
Hide file tree
Showing 66 changed files with 351 additions and 833 deletions.
1 change: 0 additions & 1 deletion .coveralls.yml

This file was deleted.

29 changes: 20 additions & 9 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
rules:
indent: [2, 2]
quotes: [2, "single"]
linebreak-style: [2, "unix"]
semi: [2, "always"]
env:
mocha: true
node: true
extends: "eslint:recommended"
{
"extends": "eslint:recommended",
"env": {
"node": true
},
"rules": {
"indent": [2, 2],
"linebreak-style": [2, "unix"],
"no-console": [0],
"quotes": [2, "single"],
"semi": [2, "always"],
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, {
"anonymous": "always",
"named": "never"
}],
"space-before-keywords": [2, "always"]
},
"root": true
}
8 changes: 3 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
coverage/
node_modules/
npm-debug.log
*.actual.css
*.sublime-*
.nyc_output
coverage
node_modules
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
sudo: false
language: node_js
node_js:
- "0.10"
- "iojs"
- "stable"
- "4"
- "0.12"
after_success: npm run coveralls
45 changes: 0 additions & 45 deletions Gulpfile.js

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2014 Vadim Borodean
Copyright (c) 2014 Vadym Borodin

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
20 changes: 15 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
PostCSS Assets [![Build Status](https://travis-ci.org/borodean/postcss-assets.svg?branch=master)](https://travis-ci.org/borodean/postcss-assets) [![Coverage Status](https://coveralls.io/repos/borodean/postcss-assets/badge.svg?branch=master)](https://coveralls.io/r/borodean/postcss-assets?branch=master)
==============
<h1 align="center">
<img src="https://rawgit.com/assetsjs/assets/develop/media/logo.svg" alt="assets">
</h1>

PostCSS Assets is an asset manager for CSS. It isolates stylesheets from environmental changes, gets image sizes and inlines files.

[![Unix Build Status][travis-badge]][travis] [![Windows Build Status][appveyor-badge]][appveyor] [![Coverage][coveralls-badge]][coveralls]

[appveyor]: https://ci.appveyor.com/project/borodean/postcss-assets
[appveyor-badge]: https://img.shields.io/appveyor/ci/borodean/postcss-assets.svg?label=windows
[coveralls]: https://coveralls.io/github/assetsjs/postcss-assets
[coveralls-badge]: https://img.shields.io/coveralls/assetsjs/postcss-assets.svg
[travis]: https://travis-ci.org/assetsjs/postcss-assets
[travis-badge]: https://img.shields.io/travis/assetsjs/postcss-assets.svg?label=unix

Table of contents
-----------------

Expand Down Expand Up @@ -121,11 +131,11 @@ var options = {

### Relative paths

To make resolved paths relative, define a directory to relate to:
To make resolved paths relative to the input file, set a flag:

```js
var options = {
relativeTo: 'assets/css'
relative: true
};
```

Expand Down Expand Up @@ -225,4 +235,4 @@ Full list of options
| `baseUrl` | URL of the project when running the web server. | `/` |
| `cachebuster` | If cache should be busted. Pass a function to define custom busting strategy. | `false` |
| `loadPaths` | Specific directories to look for the files. | `[]` |
| `relativeTo` | Directory to relate to when resolving URLs. When `false`, disables relative URLs. | `false` |
| `relative` | Should the resolved path be relative to the input file | `false` |
24 changes: 24 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Test against these versions of Node.js
environment:
matrix:
- nodejs_version: '' # is latest stable
- nodejs_version: 4
- nodejs_version: 0.12

# Install scripts (runs after repo cloning)
install:
- ps: Install-Product node $env:nodejs_version
- set CI=true
- set AVA_APPVEYOR=true
- npm install

# Post-install test scripts
test_script:
# Output useful info for debugging
- node --version
- npm --version
# Run tests
- npm test

# Don't actually build
build: off
Loading

0 comments on commit b2db843

Please sign in to comment.