Skip to content

Commit

Permalink
Add support bower
Browse files Browse the repository at this point in the history
  • Loading branch information
icetee committed May 18, 2016
1 parent 056dd46 commit 34b2105
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 23 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ If you use jQuery, it might be worth trying: [jquery.cookiebar](https://github.c

## Install

- Using npm: `npm install cookiebar`
- Using bower: `bower install cookiebar`
- Using npm: `$ npm install cookiebar`
- Using bower: `$ bower install cookiebar`

or download latest release from [github](https://github.com/icetee/cookie-bar/releases).

Expand All @@ -32,6 +32,7 @@ and include footer, before close `</body>` tag (all pages)
```

and add this code your script file ...

```javascript
ready(function() {
var cookiebar = new Cookiebar({
Expand All @@ -43,8 +44,9 @@ ready(function() {
```

# Features
+ [x] Vanilla javascript (no dependencies)
+ [x] Only appears when you use cookies

- [x] Vanilla javascript (no dependencies)
- [x] Only appears when you use cookies

# Build

Expand Down
29 changes: 29 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "cookiebar",
"description": "It is a pure JS code, that warns the visitors in the notification bar, the page saves cookies. This is Compliant with the new EU cookie law.",
"main": "index.js",
"authors": [
"Tamás András Horváth <[email protected]> (http://icetee.hu)"
],
"license": "MIT",
"keywords": [
"cookie",
"bar",
"eu",
"law",
"pure",
"vanilla"
],
"homepage": "https://github.com/icetee/cookiebar",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"repository": {
"type": "git",
"url": "git+https://github.com/icetee/cookiebar.git"
}
}
6 changes: 3 additions & 3 deletions dist/cookiebar.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**
* cookiebar - This is simple cookie-bar.
* Date 2016-05-18T19:36:32Z
* cookiebar - It is a pure JS code, that warns the visitors in the notification bar, the page saves cookies. This is Compliant with the new EU cookie law.
* Date 2016-05-18T20:50:10Z
*
* @author Tamás András Horváth <[email protected]> (http://icetee.hu)
* @version v0.9.1
* @link https://github.com/icetee/cookie-bar#readme
* @link https://github.com/icetee/cookiebar#readme
* @license MIT
*/

Expand Down
6 changes: 3 additions & 3 deletions dist/cookiebar.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**
* cookiebar - This is simple cookie-bar.
* Date 2016-05-18T19:36:32Z
* cookiebar - It is a pure JS code, that warns the visitors in the notification bar, the page saves cookies. This is Compliant with the new EU cookie law.
* Date 2016-05-18T20:50:10Z
*
* @author Tamás András Horváth <[email protected]> (http://icetee.hu)
* @version v0.9.1
* @link https://github.com/icetee/cookie-bar#readme
* @link https://github.com/icetee/cookiebar#readme
* @license MIT
*/

Expand Down
6 changes: 3 additions & 3 deletions dist/cookiebar.min.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**
* cookiebar - This is simple cookie-bar.
* Date 2016-05-18T19:36:32Z
* cookiebar - It is a pure JS code, that warns the visitors in the notification bar, the page saves cookies. This is Compliant with the new EU cookie law.
* Date 2016-05-18T20:50:10Z
*
* @author Tamás András Horváth <[email protected]> (http://icetee.hu)
* @version v0.9.1
* @link https://github.com/icetee/cookie-bar#readme
* @link https://github.com/icetee/cookiebar#readme
* @license MIT
*/

Expand Down
6 changes: 3 additions & 3 deletions dist/cookiebar.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ const gulp = require('gulp'),
rename = require('gulp-rename'),
concat = require('gulp-concat'),
header = require('gulp-header'),
server = require('gulp-express'),
cssnano = require('gulp-cssnano'),
autoprefixer = require('gulp-autoprefixer'),
server = require('gulp-express');
autoprefixer = require('gulp-autoprefixer');

// Import the package
const pkg = require('./package.json');
Expand Down
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "cookiebar",
"version": "0.9.1",
"description": "This is simple cookie-bar.",
"description": "It is a pure JS code, that warns the visitors in the notification bar, the page saves cookies. This is Compliant with the new EU cookie law.",
"main": "index.js",
"config": {
"port": "8080"
Expand All @@ -12,20 +12,22 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/icetee/cookie-bar.git"
"url": "git+https://github.com/icetee/cookiebar.git"
},
"keywords": [
"cookie",
"bar",
"eu",
"law"
"law",
"pure",
"vanilla"
],
"author": "Tamás András Horváth <[email protected]> (http://icetee.hu)",
"license": "MIT",
"bugs": {
"url": "https://github.com/icetee/cookie-bar/issues"
"url": "https://github.com/icetee/cookiebar/issues"
},
"homepage": "https://github.com/icetee/cookie-bar#readme",
"homepage": "https://github.com/icetee/cookiebar#readme",
"devDependencies": {
"express": "^4.13.4",
"gulp": "^3.9.1",
Expand Down

0 comments on commit 34b2105

Please sign in to comment.