GithubHelp home page GithubHelp logo

alexandre-abrioux / gulp-rev-dist-clean Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 4.0 588 KB

Gulp package that cleans temporary files created by gulp-rev

License: MIT License

Makefile 3.68% Shell 1.95% TypeScript 94.36%
gulp gulp-plugin gulp-rev

gulp-rev-dist-clean's Introduction

๐Ÿ  Hi there!

... and welcome to my GitHub profile! My name is Alexandre Abrioux, I'm from France, currently living in Paris, and working as a software architect at Request, a crypto payments solution for businesses. You can also find me on Linkedin

๐Ÿ“ฃ Logs

May 7, 2024

Fixed a bug in axios, see more on axios/axios#6362

November 14, 2023

Contributed to axios-retry!

September 28, 2023

Just contributed to the Cross-Desktop Group project (freedesktop.org)! See this xdg-utils merge request.

October 3, 2022

My first contribution to supertest npm package got merged!

March 22, 2022

Just got my first contribution merged on the DefinitelyTyped repository! I added type definitions for the ethereum-block-by-date npm package. The PR has been accepted and types are now available at @types/ethereum-block-by-date.

February 15, 2022

Started working on adding support for the EIP-1559 to Cartesi's Noether Node. The PR has been submitted for review.

May 26, 2021

Added schema validation support to Doctrine MongoDB ODM. The new feature has been merged and will be released in version 2.3.

March 2, 2021

My contribution to Cartesi's Noether Node was featured in one of their Medium article. It is related to improving the gas price estimation when submitting new blocks.

January 14, 2021

My submission to Gitcoin's Hack New Golem bounty won one of the four prizes allocated by the Golem organization! Read more on Golem's Blog article and take a look at the project over here: alexandre-abrioux/golem-node.

๐Ÿ”จ Featured Projects & Contributions

Blockchain

Node.js

PHP

Misc

๐Ÿ”ง My Toolbox

Language Framework Infra Testing Dev Ci
HTML5 Angular Amazon AWS SonarQube Git GitHub Actions
CSS3 React Google Cloud PHPUnit GitHub Gitlab CI
Sass Next.js Cloudflare Jest GitLab CircleCI
PHP MUI Auth0 Mocha WebStorm Travis CI
JavaScript Redux Docker Swarm Vitest Visual Studio Code Argo
TypeScript Symfony Kubernetes Waffle Neovim GoCD
Node.js Express Helm Matchstick Debian Webpack
Solidity NestJS Elasticsearch Arch Linux gulp
Nx Doctrine Logstash NixOS Vite
GraphQL Mongoose Kibana npm SWC
MySQL Mikro ORM Grafana Yarn Prettier
MongoDB Harhat RabbitMQ pnpm ESLint
Truffle Terraform Bun
Ethers

โšก Recent GitHub Activity (public repositories only)
  1. ๐ŸŽ‰ Merged PR #1404 in RequestNetwork/requestNetwork
  2. ๐ŸŽ‰ Merged PR #99 in RequestNetwork/payments-subgraph
  3. ๐Ÿ’ช Opened PR #99 in RequestNetwork/payments-subgraph
  4. ๐ŸŽ‰ Merged PR #98 in RequestNetwork/payments-subgraph
  5. ๐Ÿ’ช Opened PR #98 in RequestNetwork/payments-subgraph
โšก GitHub Stats (public repositories only)

alexandre-abrioux's GitHub Stats alexandre-abrioux's GitHub Stats

โšก Most Used Languages (own public repositories only)

alexandre-abrioux's Most Used Languages alexandre-abrioux's Most Used Languages

gulp-rev-dist-clean's People

Contributors

alexandre-abrioux avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

gulp-rev-dist-clean's Issues

Add del force option

If your files are outside the current directory where Gulp is running, this script will fail with the following error

	throw new Error('Cannot delete files/folders outside the current working directory. Can be overriden with the `force` option.');

I think it is possible to fix this by implementing the following option: https://stackoverflow.com/questions/44106774/cannot-force-deleting-files-outside-of-current-folder-typeerror-glob-pattern-s

I can push a pull request if you are okay with merging it.

Recursive cleaning does not work

Hello,
I was trying to use your package but I've encountered weird behaviour.
We have rev-manifest.json with only around ~600 files, but they are in few nested folders.
For example (js, css, img (flags, icons, avatars), fonts (fontwesome, anotherfonts)).

After adding console.log(file.path) to line https://github.com/alexandre-abrioux/gulp-rev-dist-clean/blob/master/index.js#L27 before the condition it prints out:

build\css
build\fonts
build\img
build\js
build\rev-manifest.json
build\css\base
build\css\bootstrap
build\css\bootstrap-multiselect-9fbf7bf47b.css
build\css\calendar
build\css\flot
build\css\jquery.linkselect-5f50594e27.css
build\css\pages
build\css\qtip
build\css\slickgrid
build\css\spam-dash-62c330442f.css
build\css\stats-admin-a36841a59c.css
build\css\style-c60c061139.css

It does not even try to walk through js or other folders.
I'm using version 1.0.4

It's being called from gulpfile like this:

gulp.task('rev-dist-clean', function(){
	gulp.src(['build/**/*'], {read: false})
		.pipe(revDistClean('build/rev-manifest.json'))
});

Am I doing something wrong? :)
Thanks !

After another debug I've discovered, that settings (https://github.com/rvagg/through2/blob/master/through2.js#L88) from 16 to 5000 does the trick.

So what now. :)

This does the trick. I've found it after looking at different gulp packages like (https://github.com/galkinrost/gulp-rev-css-url/blob/master/index.js#L40)

2017-12-07_1040

.map files

.map files are not included in the rev-manifest.json so if for example app-HASH.js exists in the manifest file and app-HASH.js.map exists in the folder too, app-HASH.js.map file be deleted.

if i exclude .map files from src glob, old map files will never be deleted

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.