Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
201 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,64 @@ | ||
body | ||
background: url('/boot/images/bg.jpg') top center fixed; | ||
background-size: cover; | ||
-webkit-font-smoothing: antialiased; | ||
font-family: "Lucida Grande"; | ||
background url('images/bg.jpg') top center fixed | ||
background-size cover | ||
-webkit-font-smoothing antialiased | ||
font-family "Lucida Grande" | ||
|
||
h1,h2,h3 | ||
font-weight: 100; | ||
font-weight 100 | ||
|
||
a | ||
font-weight: bold | ||
a | ||
font-weight bold | ||
|
||
.btn | ||
letter-spacing: 2px; | ||
text-transform: uppercase | ||
.btn | ||
letter-spacing 2px | ||
text-transform uppercase | ||
|
||
header | ||
h1 | ||
font-size: 60px; | ||
margin: 50px 0 30px 0; | ||
h5 | ||
font-size: 11px; | ||
font-style: italic | ||
opacity: .6 | ||
a | ||
font-weight: normal | ||
header | ||
h1 | ||
font-size 60px | ||
margin 50px 0 30px 0 | ||
h5 | ||
font-size 11px | ||
font-style italic | ||
opacity .6 | ||
a | ||
font-weight normal | ||
|
||
.site-content | ||
max-width: 650px; | ||
padding: 30px 50px; | ||
margin: 30px auto; | ||
background: white; | ||
max-width 650px | ||
padding 30px 50px | ||
margin 30px auto | ||
background white | ||
.description | ||
font-size: 18px; | ||
line-height: 26px; | ||
margin-bottom: 30px; | ||
h4 | ||
margin-top: 30px; | ||
.social-login | ||
.btn | ||
margin-right: 20px; | ||
font-size: 11px; | ||
font-size 18px | ||
line-height 26px | ||
margin-bottom 30px | ||
h4 | ||
margin-top 30px | ||
.social-login | ||
.btn | ||
margin-right 20px | ||
font-size 11px | ||
|
||
a.btn.btn-get-started | ||
border: 0; | ||
background: white; | ||
color: black; | ||
font-size: 12px; | ||
padding: 20px 30px; | ||
border 0 | ||
background white | ||
color black | ||
font-size 12px | ||
padding 20px 30px | ||
|
||
pre.code-box | ||
text-align: left; | ||
border: 0; | ||
padding: 20px; | ||
border-radius: 0; | ||
margin-top: 20px; | ||
h5 | ||
margin-top: 0; | ||
p | ||
padding-left: 0; | ||
.share-links | ||
iframe | ||
margin-right: 20px; | ||
text-align left | ||
border 0 | ||
padding 20px | ||
border-radius 0 | ||
margin-top 20px | ||
h5 | ||
margin-top 0 | ||
p | ||
padding-left 0 | ||
|
||
.share-links | ||
iframe | ||
margin-right 20px |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
/** | ||
* Module dependencies. | ||
*/ | ||
|
||
var resolve = require('component-resolver'); | ||
var build = require('component-builder'); | ||
var stylus = require('./stylus'); | ||
var jade = require('builder-jade'); | ||
var mkdir = require('mkdirp'); | ||
var fs = require('fs'); | ||
var write = fs.writeFileSync; | ||
var ready = require('ready').mixin; | ||
|
||
/** | ||
* Constructor | ||
*/ | ||
|
||
function Builder() { | ||
var self = this; | ||
|
||
resolve(process.cwd(), { | ||
// install the remote components locally | ||
install: false, | ||
root: 'public' | ||
}, function (err, tree) { | ||
if (err) console.log(err), process.exit(1); | ||
|
||
self.tree = tree; | ||
self.ready(true); | ||
}); | ||
} | ||
|
||
|
||
/** | ||
* Add ready mixin | ||
*/ | ||
|
||
ready(Builder.prototype); | ||
|
||
|
||
/** | ||
* Write app.js, app.css and copy assets | ||
* | ||
* @param fn callback receiving error, if any | ||
*/ | ||
|
||
Builder.prototype.build = function(fn) { | ||
var self = this; | ||
this.ready(onready); | ||
|
||
function onready() { | ||
mkdir('public'); | ||
|
||
build.scripts(self.tree) | ||
.use('scripts', build.plugins.js()) | ||
.use('json', build.plugins.json()) | ||
.use('templates', jade({ | ||
string: false, | ||
runtime: true | ||
})) | ||
.use('templates', build.plugins.string()) | ||
.end(onscriptsend); | ||
|
||
function onscriptsend(err, js) { | ||
if (err) { | ||
if (fn) return fn(err); | ||
throw err; | ||
} | ||
write('public/app.js', build.scripts.require + jade.runtime + js); | ||
|
||
build.styles(self.tree) | ||
.use('styles', build.plugins.css()) | ||
.use('styles', stylus()) | ||
.use('styles', build.plugins.urlRewriter('')) | ||
.end(onstylesend); | ||
} | ||
|
||
function onstylesend(err, string) { | ||
if (err) { | ||
if (fn) return fn(err); | ||
throw err; | ||
} | ||
fs.writeFileSync('public/app.css', string); | ||
|
||
build.files(self.tree, {destination: 'public'}) | ||
.use('images', build.plugins.copy()) | ||
.use('files', build.plugins.copy()) | ||
.end(onfilesend); | ||
} | ||
|
||
function onfilesend(err) { | ||
debugger; | ||
if (fn) return fn(err); | ||
if (err) throw err; | ||
} | ||
} | ||
}; | ||
|
||
|
||
module.exports = Builder; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.