Skip to content
This repository has been archived by the owner on Nov 22, 2018. It is now read-only.

Commit

Permalink
Merge pull request #12 from PrisisForks/master
Browse files Browse the repository at this point in the history
Added keys to bower.json and package.json and new file sache.json
  • Loading branch information
prisis committed Jul 5, 2015
2 parents c5692ec + 0705c7c commit 2ffa9ae
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 7 deletions.
33 changes: 28 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,42 @@

All Notable changes to `sass-config-manager` will be documented in this file

## NEXT - YYYY-MM-DD
## 2.0.4 Release

### Added
- Nothing
- infos to CHANGELOG
- to README a how to use this library.

## 2.0.3 Release

### Added
- added sache.json, and keys to sache.json, bower.json and package.json.

## 2.0.2 Release

### Fixed
- bower.json and package.json main tag.

## 2.0.1 Release

### Fixed
- cs-fixes

## 2.0.0 Release

### Added
- added tests for config-set(), config-get(), config-has()

### Deprecated
- Nothing

### Fixed
- Nothing
- many cs-fixes
- some bugs in config-set() if a single key was added.

### Removed
- Nothing
- config-bind()
- config-remove()

### Security
- Nothing
- Nothing
46 changes: 46 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,52 @@ Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recen
grunt test
~~~

## How to

### Usage
Include this library. If you use bower ``@import 'bower_components/sass-config-manager/src/scss/config-manager';`` or ``@import 'node_modules/sass-config-manager/src/scss/config-manager';``

### Set default settings
~~~scss
// Default configuration settings
// Passing true to the 3rd parameter,
// the value is assigned to the configuration path as the default
@include config-set('color.black', #000, true);
@include config-set('color.white', #fff, true);
@include config-set('single-key', red, true);

// or assign values to a configuration path by using Map
@include config-set('color', (black: #000, white: #fff), true);
~~~

### Get your settings
~~~scss
body {
color: config-get('color.black'); // #000
background-color: config-get('color.white'); // #fff
}
~~~

### Compatibility
~~~scss
// Variables
$color-black: #000 !default;
$color-white-bg: #fff !default;

$color: (
fg: $color-black,
bg: $color-white-bg
) !default;

// config-set()
@include config-set('color', $color, true);

body {
color: config-get('color.fg'); // #666666
background-color: config-get('color.bg'); // white
}
~~~

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "growcss-sass-config-manager",
"version": "2.0.3",
"version": "2.0.4",
"homepage": "http://growcss.com/",
"authors": [
"Daniel Bannert <d.bannert@anolilab.de>"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "growcss-sass-config-manager",
"version": "2.0.3",
"version": "2.0.4",
"description": "A dot-syntax configuration (Map) library for Sass (mixin / function).",
"author": {
"name": "Daniel Bannert",
Expand Down

0 comments on commit 2ffa9ae

Please sign in to comment.