1.1.3 • Published 5 years ago

hoast-changed v1.1.3

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

hoast-changed

Filter out files which have not been changed since the last build.

As the name suggest this is a hoast module.

Do note this module can only be used if remove property of the hoast options is NOT set to true.

Usage

Install hoast-changed using npm.

$ npm install hoast-changed

Parameters

  • file: The file path where the update times are stored.
    • Type: String
    • Default: hoast-changed
  • patterns: Glob patterns to match file paths with. If the file path matches the patterns it will be skipped and continue to be processed.
    • Type: String or Array of strings
    • Required: no
  • patternOptions: Options for the glob pattern matching. See planckmatch options for more details on the pattern options.
    • Type: Object
    • Default: {}
  • patternOptions.all: This options is added to patternOptions, and determines whether all patterns need to match instead of only one.
    • Type: Boolean
    • Default: false

Example

CLI

{
  "modules": {
    "hoast-changed": {
      "patterns": "*/index.md"
    },
    "read": {}
  }
}

All the files will be checked for their changed time except the index.md files which will always be processed.

Script

const Hoast = require(`hoast`);
const read = Hoast.read,
      changed = require(`hoast-changed`);

Hoast(__dirname)
  .use(changed({
    patterns: `*/index.md`
  }))
  .use(read())
  .process();

All the files will be checked for their changed time except the index.md files which will always be processed.

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

1.0.0-beta.5

6 years ago

1.0.0-beta.4

6 years ago

1.0.0-beta.3

6 years ago

1.0.0-beta.2

6 years ago

1.0.0-beta.1

6 years ago

1.0.0-beta.0

6 years ago

0.1.0

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago