Giter VIP home page Giter VIP logo

civet's People

Contributors

aristretto avatar jianli avatar lucaswiman avatar lukhnos avatar masoncj avatar richardxia avatar tajmorton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

civet's Issues

option to have civet ignore files in certain directories

Hey @lukhnos!

I've come across what I believe to be a pretty common scenario that trips up Civet.

Bower packages often have two main sets of files, distribution and source.

  • distribution files are ready-to-go out of the box. they generally require no config or compilation.
  • source files are often included so developers can peek under-the-hood, or make changes ad-hoc.
    • these often come with some kind of build system.

Source files can sometimes be multi-lingual if a build system is involved. Build scripts can perform variable replacements before a compiler processes a file, which means that if said files were run through a compiler before a build system performed var replacements the compiler would likely encounter syntax errors.

One such case is Font-Awesome. Civet looks for files with .scss or .sass file extensions. In https://github.com/FortAwesome/Font-Awesome/blob/master/src/assets/font-awesome/scss/font-awesome.scss#L3 we see non-standard Sass syntax (likely replaced by some build script pre compilation).

Civet will look at this file and try to compile it, but shouldn't.

Is there a way to tell Civet not to look at certain directories such as bower_components or node_modules? Imagine for the sake of this scenario that we cannot simply move these directories elsewhere.

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.