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

front-end-gulp-pattern

v1.0.2

Published

gulp-cli wrapper with own read-only gulpfile for front-end.

Downloads

2

Readme

front-end-gulp-pattern

gulp-cli wrapper with own read-only gulpfile for front-end.

Provides own gulp-cli binary as font-end-gulp.

Should be configured by package.json.

Usage

  1. Create package.json file in root of your project;

  2. You should set "dependencies", "postinstall" script and "gulp" hash for your front-end-gulp tasks;

  3. Minimal example of package.json: json { "dependencies": { "front-end-gulp-pattern": "^1" }, "scripts": { "postinstall": "./node_modules/.bin/front-end-gulp --production" }, "gulp": { "distclean": [ "./node_modules" ] } }

  4. After npm install front-end-gulp will do nothing, but you can run: ./node_modules/.bin/front-end-gulp distclean to remove node_modules directory;

  5. If you're using git then you should add node_modules to .gitignore;

  6. --production flag will minify styles and scripts;

  7. Also you can use it with web-front-end-deploy as git-submodule, do it in root of your project:

```bash
$ git submodule add https://github.com/unclechu/web-front-end-deploy
$ ln -s ./web-front-end-deploy/deploy.sh
$ mkdir _deploy
$ cd _deploy
$ ln -s ../web-front-end-deploy/tasks/11-front-end-gulp-pattern_symbolic_link.sh
$ ln -s ../web-front-end-deploy/tasks/13-front-end-gulp-pattern_default_tasks.sh
$ cd ..
```

And set <i>"postinstall"</i> key in key <i>"scripts"</i> of `package.json` to: "./deploy.sh".
`13-front-end-gulp-pattern_default_tasks.sh` will do:
```
./node_modules/.bin/front-end-gulp --production
```
And `11-front-end-gulp-pattern_symbolic_link.sh` will create symbolic link `front-end-gulp` to `./node_modules/.bin/front-end-gulp` in root of your project. In this case you should add `front-end-gulp` to `.gitignore` and to <i>"distclean"</i>:

```json
{
  "dependencies": {
    "front-end-gulp-pattern": "^1"
  },
  "scripts": {
    "postinstall": "./deploy.sh"
  },
  "gulp": {
    "distclean": [
      "./node_modules",
      "./front-end-gulp"
    ]
  }
}
```
  1. Structure of definition of all tasks in "gulp" key (except "distclean"):
...
"task-type": {
  "own-group-name1": {
    // params
  },
  "own-group-name2": {
    // params
  }
}
...

To be continued...

Supported tasks types

  1. Sprites (spritesmith);
  2. Styles:
  3. Stylus;
  4. Less.
  5. Scripts:
  6. Browserify (transforms supported, you can use LiveScript, CoffeeScript, etc.)

License

GNU/GPLv3