yarn-lifeline
Cache build output based on source fingerprint
Last updated 2 months ago by timhall .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install yarn-lifeline 
SYNC missed versions from official npm registry.

yarn-lifeline

Cache build output based on source fingerprint.

Example:

{
  "scripts": {
    "build": "lifeline run react-scripts build"
  },
  "devDependencies": {
    "yarn-lifeline": "*"
  }
}

config

lifeline accepts config stored as "lifeline" in package.json, .lifeline, or lifeline.config.js:

// lifeline.config.js
module.exports = {
  // (default: uses .gitignore)
  source: ['src/**/*.js', 'package.json', 'package-lock.json'],

  // (default: dist)
  output: 'lib',

  // (default: node_modules/.cache)
  cache: '.cache'
};

lifeline run <command>

Compute fingerprint for current source and if cached output exists restore it, otherwise run command and cache output.

Use LIFELINE_DISABLE_CACHE=1 to skip checking the cache for run.

lifeline fingerprint

Compute fingerprint for current source.

lifeline cache add

Add current output to cache for current fingerprint

lifeline cache list

List cached output directories, by fingerprint

lifeline cache show <fingerprint>

Show cached output directory for fingerprint

lifeline cache clear

Clear all cached directories

Current Tags

  • 0.1.6                                ...           latest (2 months ago)

6 Versions

  • 0.1.6                                ...           2 months ago
  • 0.1.5                                ...           2 months ago
  • 0.1.4                                ...           2 months ago
  • 0.1.3 [deprecated]           ...           2 months ago
  • 0.1.2 [deprecated]           ...           2 months ago
  • 0.1.1 [deprecated]           ...           2 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 6
Last Day 0
Last Week 0
Last Month 54
Dependencies (11)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |