Adds clear.js for gulp task-based cache clearing. #13

Open
tempris wants to merge 1 commit from tempris/master into master
tempris commented 2021-02-09 13:29:18 +00:00 (Migrated from github.com)

Can be used to clear entire cache file or a namespace within a cache file.

Usage:

var onceclear     = require( 'gulp-once/clear' );

function clearcache(done, name) { // name is a string, i.e. 'cache name'
  if (name === undefined) {
    onceclear( { fileIndent: 2 } )
  } else {
    onceclear( { namespace: name, fileIndent: 2 } )
  }

  done();
};

task( "clearcache", clearcache );

task( "clearcache_css",  function ( done ) { clearcache( done, 'css' ); } );
task( "clearcache_js",   function ( done ) { clearcache( done, 'js' ); } );
task( "clearcache_html", function ( done ) { clearcache( done, 'html' ); } );
Can be used to clear entire cache file or a namespace within a cache file. Usage: ``` var onceclear = require( 'gulp-once/clear' ); function clearcache(done, name) { // name is a string, i.e. 'cache name' if (name === undefined) { onceclear( { fileIndent: 2 } ) } else { onceclear( { namespace: name, fileIndent: 2 } ) } done(); }; task( "clearcache", clearcache ); task( "clearcache_css", function ( done ) { clearcache( done, 'css' ); } ); task( "clearcache_js", function ( done ) { clearcache( done, 'js' ); } ); task( "clearcache_html", function ( done ) { clearcache( done, 'html' ); } ); ```
This pull request has changes conflicting with the target branch.
  • README.md
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin tempris/master:tempris/master
git switch tempris/master

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch master
git merge --no-ff tempris/master
git switch tempris/master
git rebase master
git switch master
git merge --ff-only tempris/master
git switch tempris/master
git rebase master
git switch master
git merge --no-ff tempris/master
git switch master
git merge --squash tempris/master
git switch master
git merge --ff-only tempris/master
git switch master
git merge tempris/master
git push origin master
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
repos/gulp-once!13
No description provided.