Back to Theia

README

dev-packages/private-ext-scripts/README.md

1.71.01.5 KB
Original Source
<div align='center'> <h2>ECLIPSE THEIA - EXT-SCRIPTS</h2> <hr /> </div>

Description

theiaext is a command line tool to run shared npm scripts in Theia packages.
For instance, if you want add a new hello script that prints Hello World:

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

Additional Information

License

Trademark

"Theia" is a trademark of the Eclipse Foundation https://www.eclipse.org/theia