npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

gulp-config-dev

v3.13.1

Published

A shareable configuration package of dependencies for gulp

Downloads

20

Readme

gulp-config-dev

NPM Version Build Status

gulp-config-dev is a shareable configuration package for gulp.

Usage

Add gulp-config-dev to your project:

npm install --save-dev gulp-config-dev

Then, add this script to your package.json:

{
  "scripts": {
    "start": "gulp --cwd . --gulpfile node_modules/gulp-config-dev",
  }
}

That’s it. Now you can launch a web server to host your projects, build files, and watch for changes.

npm start
  • You can also build files and watch for changes, but not host it.

    npm start live
  • Or, you could just build files.

    npm start dist

Configuration

Customize functionality of gulp-config-dev from your package.json:

{
  "gulpConfig": {
    ...
  }
}
  • html: Path of your primary HTML file. Use false to omit HTML. Default is ${package.name}.html.
  • js: Path of your primary JS file. Use false to omit JS. Default is ${package.name}.js.
  • css: Path of your primary CSS file. Use false to omit CSS. Default is ${package.name}.css.
  • files: Directory of any additional files used by your project. Default is placeholders.
  • use-postcss: Whether to use PostCSS or not. Default is true.
  • use-sass: Whether to use Sass or not. Default is true.
  • watch-css: Array of paths to watch for CSS changes.
  • watch-js: Array of paths to watch for JS changes.
  • watch-html: Array of paths to watch for HTML changes.
  • compress-js: Whether to compress JS or not.
  • compress-css: Whether to compress CSS or not.
  • server: Advanced options for gulp-connect.

Advanced Configuration

  • server-root: Destintation of your compiled files. Default is dist.
  • server-host: Name of the server host. Default is localhost.
  • server-name: Name of the server for logging purposes. Default is package name.
  • server-port: Port to use for the web server. Default is 8080.
  • server-browser: Whether to launch the browser. Default is true.
  • server-livereload: Whether to inject livereload. Default is true.
  • html-dest: Destination of your compiled HTML file relative to server-root. Default is index.html.
  • js-dest: Destination of your compiled JS file relative to server-root. Default is index.js.
  • js-module-name: Name of the JS export, if required. Default is false.
  • js-module-format: Format of the compiled JS. Default is iife.
  • css-dest: Destination of your compiled CSS file relative to server-root. Default is index.css.
  • css-syntax: Syntax to use in CSS. Default is scss.