Git Product home page Git Product logo

fly-sass's People

Contributors

lukeed avatar manland avatar tomoyukikashiro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

manland

fly-sass's Issues

fly-sass

fly-sass would be better, but I am sure you already noticed the name is taken. The user squatting on the name have reached me and we are discussing what to do.

I really hope we can migrate this repo to the better name later. Thanks

manage include files

outline

fly-sass is transform scss into css file include helper file ( e.g. _helper.scss )

target

  • ignore helper file to transform in plguin.
  • or remove helper file after transform.

Does not work beyond 1 sub-directory level

Issues:

  1. Entering an includePath loses its context, so importing from that attempts to import from the Flyfile's root directory
  2. Error Reporting returns incorrect parent path (due to loss of context)

Example Structure:

styles/
  |-- app.sass
  |-- imports/
    |-- _first.sass
    |-- config/
      |-- _second.sass
      |-- _third.sass
// app.sass
@import first

// _first.sass
@import config/second

// _second.sass
@import third
// flyfile
yield this
  .source('styles/app.sass')
  .sass({
    outputStyle: 'compressed',
    includePaths: ['styles/imports'],
    indentedSyntax: true
  })
  // ...

This will be its error:

File to import not found or unreadable: third
Parent style sheet: ~/code/_second.sass  # <--- also, wrong path

That error path should be: ~/code/styles/_second.sass

Worth noting:

Running ./node_modules/.bin/node-sass styles/app.sass works perfectly.

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.