Skip to content

Commit

Permalink
shelf setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jszersze committed Jun 16, 2015
1 parent ff15a2b commit ea41735
Show file tree
Hide file tree
Showing 41 changed files with 348 additions and 481 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language: node_js
node_js:
- 0.6
script:
- "node test"
- "node tests/main-test"
notifications:
email:
- [email protected]
25 changes: 11 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,29 @@ Kuba-bootstrap is an open source project for creating modularized components spe
To get started, checkout [http://kuba-bootstrap.github.io/bootstrap/](http://kuba-bootstrap.github.io/bootstrap/)


### Setup

## Dependencies
Here are several setup options:

* CSS/Less - Using pure style does not require dependencies
* Components - Requires jQuery (may also require FontAwesome that can be overwritten).
* Install with npm: `npm install kuba-bootstrap`
* Clone the repo: `git clone https://github.com/kuba-bootstrap/bootstrap.git`
* Copy components from [bootstrap site](http://kuba-bootstrap.github.io/bootstrap/)


### Compile CSS

## Setup
To get the bare CSS style you can compile Less directly into your project path by running:

Here are several setup options:
```./compile.sh ~/my-project-filepath```

* Install with npm: `npm install kuba-bootstrap`.
* Clone the repo: `git clone https://github.com/kuba-bootstrap/bootstrap.git`
* Copy components from [bootstrap site](http://kuba-bootstrap.github.io/bootstrap/).



## Bug tracker
### Bug tracker

Have a bug or a feature request? [Please open a new issue](https://github.com/kuba-bootstrap/bootstrap/issues?state=open).
Before opening any issue, please search for existing issues.



## Authors
### Authors

**Jakub Szerszen**

Expand All @@ -43,6 +40,6 @@ Before opening any issue, please search for existing issues.



### [Copyright and license](https://raw.github.com/kuba-bootstrap/bootstrap/master/LICENSE)
#### [Copyright and license](https://raw.github.com/kuba-bootstrap/bootstrap/master/LICENSE)

Copyright (c) 2013-2015 kuba-bootstrap
55 changes: 55 additions & 0 deletions build/compile-css.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
(function(){

var log = require('./console'),
fs = require('fs'),
path = require('path'),
less = require('less'),
args = process.argv.slice(2);

log('i', 'Compiling CSS to ' + args + ' folder');

fs.readFile('../less/bootstrap.less', function(e, file){
if(e){
log('e', 'Reading .less file failed: ' + e);
} else {
var file_string = file.toString(),
options = {
paths: ['../less'],
outputDir: args.toString(),
optimization: 1,
filename: 'bootstrap.less',
compress: true,
yuicompress: true
};

log('i', '.less read');

options.outputfile = options.filename.split(".less")[0] + (options.compress ? ".min" : "") + ".css";
options.outputDir = path.resolve( process.cwd(), options.outputDir) + "/";
ensureDirectory(options.outputDir);

less.render(file_string, options, function(err, output){
if(err){
log('e', 'Compilation failed: ' + err);
} else {
log('i', '.less compiled');

fs.writeFile(options.outputDir + options.outputfile, output.css, function(error){
if(error){
log('e', 'writing file failed: ' + error);
} else {
log('i', 'Compilation complete');
}
});
}
});
}
});

function ensureDirectory(filepath) {
var dir = path.dirname(filepath),
existsSync = fs.existsSync || path.existsSync;
if (!existsSync(dir)) { fs.mkdirSync(dir); }
};

})();
5 changes: 5 additions & 0 deletions compile.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
killall node
npm install
cd './build'
node 'compile-css.js' $1
18 changes: 0 additions & 18 deletions css/kb-banner.css

This file was deleted.

56 changes: 0 additions & 56 deletions css/kb-base.css

This file was deleted.

19 changes: 0 additions & 19 deletions css/kb-box-slide.css

This file was deleted.

82 changes: 0 additions & 82 deletions css/kb-button.css

This file was deleted.

11 changes: 0 additions & 11 deletions css/kb-carousel.css

This file was deleted.

Empty file removed css/kb-dropdown.css
Empty file.
5 changes: 0 additions & 5 deletions css/kb-footer.css

This file was deleted.

14 changes: 0 additions & 14 deletions css/kb-header.css

This file was deleted.

20 changes: 0 additions & 20 deletions css/kb-label.css

This file was deleted.

21 changes: 0 additions & 21 deletions css/kb-misc.css

This file was deleted.

Loading

0 comments on commit ea41735

Please sign in to comment.