0.0.2 • Published 3 years ago

@tfdf/ext-scripts v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Shared NPM script for tfdf packages.

tfdfext is a command line tool to run shared npm scripts in tfdf packages.

For instance, if you want add a new hello script that prints Hello World:

{
    "name": "@tfdf/ext-scripts",
    "scripts": {
        "ext:hello": "echo 'Hello World'"
    }
}
  • install tfdfext in your package (the actual version can be different)
{
    "name": "@tfdf/myextension",
    "devDependencies": {
        "@tfdf/ext-scripts": "^0.1.1"
    }
}
  • you should be able to call hello script in the context of your package:
    npx tfdfext hello
  • and from npm scripts of your package:
{
    "name": "@tfdf/myextension",
    "scripts": {
        "hello": "tfdfext hello"
    }
}