incuna / incuna-sass

Incuna's Sass Library
MIT License
2 stars 2 forks source link

Add Travis test that imports and compiles all files to check for compilation errors #44

Open henrahmagix opened 9 years ago

grahamgilchrist commented 9 years ago

@henrahmagix Will that actually do anything? Since this library is mostly mixins and helpers, will they compile without being used in an @include statement?

henrahmagix commented 9 years ago

Ah, so we'd have to have something that imports them all. We could perhaps write that inline in the Travis build script, if possible. That would be the best way.

henrahmagix commented 9 years ago

See https://github.com/incuna/incuna-sass/pull/46#issuecomment-129871515 for a Compass command to compile without having a config.

hippogriffic commented 9 years ago

this is what I managed to get to run without errors:

@import compass/css3/user-interface

$font-base: 16px
$site-padding: 10px

// @import incuna-sass/functions
// @import incuna-sass/helpers
// @import incuna-sass/mixins

// @import incuna-sass/browsers
// @import incuna-sass/normalize
@import incuna-sass/reset

@import incuna-sass/components/angular
@import incuna-sass/components/datepicker
@import incuna-sass/components/flowplayer
// @import incuna-sass/components/forms
// @import incuna-sass/components/icomoon
@import incuna-sass/components/messages
@import incuna-sass/components/modal

@import incuna-sass/functions/em
@import incuna-sass/functions/rem

@import incuna-sass/helpers/box-sizing
@import incuna-sass/helpers/clearfix
@import incuna-sass/helpers/image-replace
@import incuna-sass/helpers/inline-block
@import incuna-sass/helpers/link
@import incuna-sass/helpers/overflow-scroll
@import incuna-sass/helpers/pseudo-elements
@import incuna-sass/helpers/vertical-center
@import incuna-sass/helpers/visually-hidden

@import incuna-sass/mixins/font-face
@import incuna-sass/mixins/media
@import incuna-sass/mixins/placeholder
@import incuna-sass/mixins/rgba-background
// @import incuna-sass/mixins/sprites
@import incuna-sass/mixins/svg-background
// @import incuna-sass/mixins/svg

@import incuna-sass/projects/epatient/modules/articles
@import incuna-sass/projects/epatient/modules/dashboard
@import incuna-sass/projects/epatient/modules/injections
@import incuna-sass/projects/epatient/modules/map
// @import incuna-sass/projects/epatient/modules/reminders

The svg mixin is in the process of being fixed, so you'll be able to uncomment that soon.

The forms.sass file throws a weird error about having an undefined helper %label-hidden this seems bad. That file is a big scary mess in general.

And obviously if you take out compass it errors.