Skip to content

Commit

Permalink
chore: Ignore dev branch on CircleCI for now
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoenescu committed Jul 22, 2016
1 parent fd2ea71 commit d417274
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
34 changes: 17 additions & 17 deletions build/script.build.stylus.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,23 @@ var
stylus = require('stylus'),
themes = ['ios', 'mat']

themes.forEach(function (theme) {
var
src = 'src/themes/quasar.' + theme + '.styl',
dest = 'dist/quasar.' + theme + '.styl',
deps,
data

deps = stylus(readFile(src))
.set('paths', [path.join(__dirname, '../src/themes/')])
.deps()

data = compile([src].concat(deps))

fs.writeFileSync(dest, data, 'utf-8')
console.log(dest.bold + ' ' + getSize(data).gray)
})

function readFile (file) {
return fs.readFileSync(file, 'utf-8')
}
Expand All @@ -27,20 +44,3 @@ function compile (src) {
function getSize (code) {
return (code.length / 1024).toFixed(2) + 'kb'
}

themes.forEach(function (theme) {
var
src = 'src/themes/quasar.' + theme + '.styl',
dest = 'dist/quasar.' + theme + '.styl',
deps,
data

deps = stylus(readFile(src))
.set('paths', [path.join(__dirname, '../src/themes/')])
.deps()

data = compile([src].concat(deps))

fs.writeFileSync(dest, data, 'utf-8')
console.log(dest.bold + ' ' + getSize(data).gray)
})
1 change: 1 addition & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ general:
branches:
ignore:
- gh-pages
- dev
machine:
node:
version: 4.2.0
Expand Down

0 comments on commit d417274

Please sign in to comment.