GithubHelp home page GithubHelp logo

Use gulp-ruby-sass about sc5-styleguide HOT 6 CLOSED

sc5 avatar sc5 commented on July 18, 2024
Use gulp-ruby-sass

from sc5-styleguide.

Comments (6)

hannu avatar hannu commented on July 18, 2024

Yes. It is possible to use gulp-ruby-sass but unfortunately it needs changes in the library. We will investigate if there are any problems, it's probably a simple change.

Furthermore, we are planning to remove whole style preprocessing flow from the style guide. This would improve flexibility and gives freedom to choose which library to use for preprocessing.

from sc5-styleguide.

aslansky avatar aslansky commented on July 18, 2024

I just quickly looked into changing to gulp-ruby-sass. It seems gulp-ruby-sass 1.0.0 will not support globbing, so it would also need a change in the configuration of sc5. I guess as you mentioned the better solution would be to just completely remove the preprocessing. So everybody can choose there own way and sc5 does not need to change every time a prepocessor changes how it works.

from sc5-styleguide.

hannu avatar hannu commented on July 18, 2024

0.3.0 (currently work in progress) does not have integrated preprecessing. The styleguide API will look like following (or very similar)

var outputPath = 'output';

gulp.task('styleguide:generate', function() {
  return gulp.src('*.scss')
    .pipe(styleguide.generate({
        title: 'My styleguide',
        server: true,
        rootPath: outputPath,
        overviewPath: 'README.md'
      }))
    .pipe(gulp.dest(outputPath));
});

gulp.task('styleguide:applystyles', function() {
  return gulp.src('main.scss')
    .pipe(sass())
    .pipe(styleguide.applyStyles())
    .pipe(gulp.dest(outputPath));
});

gulp.task('styleguide', ['styleguide:generate', 'styleguide:applystyles']);

Even though it will be possible to use any preprocessing library we will still support variable parsing only from SASS and LESS files.

from sc5-styleguide.

varya avatar varya commented on July 18, 2024

#386
But you need to wait for release

from sc5-styleguide.

jkarttunen avatar jkarttunen commented on July 18, 2024

You guys are in right track. :)

from sc5-styleguide.

jpbackman avatar jpbackman commented on July 18, 2024

0.3.0 released, internal style preprocessing removed.
https://github.com/SC5/sc5-styleguide/releases/tag/0.3.0

from sc5-styleguide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.