0.0.2 • Published 4 years ago
@tfdf/ext-scripts v0.0.2
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:
- add a new script to package.json with the
ext:prefix.
{
"name": "@tfdf/ext-scripts",
"scripts": {
"ext:hello": "echo 'Hello World'"
}
}- install
tfdfextin your package (the actual version can be different)
{
"name": "@tfdf/myextension",
"devDependencies": {
"@tfdf/ext-scripts": "^0.1.1"
}
}- you should be able to call
helloscript in the context of your package:
npx tfdfext hello- and from npm scripts of your package:
{
"name": "@tfdf/myextension",
"scripts": {
"hello": "tfdfext hello"
}
}