Giter Club home page Giter Club logo

Comments (3)

colorful-tones avatar colorful-tones commented on August 14, 2024

Less noise is better sounding to my 👂

from theme-scaffold.

dainelmawer avatar dainelmawer commented on August 14, 2024

Hmm, any ideas on suppressing these errors @JodiWarren ? We could probably update the debug: true setting as the error output looks like its coming from gulp?

from theme-scaffold.

JodiWarren avatar JodiWarren commented on August 14, 2024

@dainemawer In my experience, running gulp watch --silent is good enough to hide most of this stuff.

That returns just the following:

[17:21:34] 

assets/css/frontend/style.css
 29:2  ✖  Expected variable for "color".   sh-waqar/declaration-use-variable
 29:9  ✖  Unexpected named color "red"     color-named

Webpack gives us a bit more:

[17:21:56] Version: webpack 4.27.0
Built at: 12/04/2018 5:21:56 PM
 6 assets
Entrypoint admin = admin.min.js admin.min.js.map
Entrypoint frontend = frontend.min.js frontend.min.js.map
Entrypoint shared = shared.min.js shared.min.js.map

ERROR in ./assets/js/admin/admin.js
Module Error (from ./node_modules/eslint-loader/index.js):

/Users/jodi/Projects/10up/wp-local-docker/theme-scaffold-gutenberg-test/wordpress/wp-content/themes/theme-scaffold/assets/js/admin/admin.js
  3:7  error  'a' is assigned a value but never used  no-unused-vars

✖ 1 problem (1 error, 0 warnings)

The main thing is that it hides the gulp error noise.

Alternatively, we could set a silent flag in a gulp.json settings file in the root, but I don't think we'd want to suppress errors for all gulp processes.

from theme-scaffold.

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.