@guscrawford.com/fpm

0.0.11 • Public • Published

FPM

⚠️ in early beta

Build Status Maintainability Test Coverage

The Fake / Faux / Fugazzi Package Manager

Manage interdependant packages that are under development.

echo "🔑  May require elevated privs"
yarn global add @guscrawford.com/fpm

fpm install

Install a package to your working directory's node_modules folder

$ fpm install path/to/my-core-package
📦  Installing @guscrawford.com/jyve-core@2.0.1c
  📂 in /Users/me/jyve/mongo/node_modules/@guscrawford.com/jyve-core

fpm transform

Transform a package.json in a project, and copy it into a dist folder

fpm transform path/to/package --distFolder dist

The above example will output the package.json found at path/to/package to path/to/package/dist/package.json; the --distFolder option by default is dist.

Annotate your package.json as so:

{
    "scripts":{
        "build":"echo building..."
    },
    "@fpm:transform":{
        "scripts":"@fpm:remove"
    }
}

More Annotation Examples

Replace in string properties

{ .., "@fpm:transform": { "main": { "@fpm:replace": { "dist\/": "" } } } }


Add properties and data to data properties

{
..,
  "@fpm:transform": {
    "scripts": {
      "@fpm:add": {
          "do":"anything you want"
      }
    }
  }
}

NPM

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.11
    1
    • latest

Version History

Package Sidebar

Install

npm i @guscrawford.com/fpm

Weekly Downloads

1

Version

0.0.11

License

MIT

Unpacked Size

30.5 kB

Total Files

11

Last publish

Collaborators

  • guscrawford