webIDE/dev-packages/private-ext-scripts
龚祖望 6619137b54 webIDE initial commit 2023-12-07 10:39:55 +08:00
..
README.md webIDE initial commit 2023-12-07 10:39:55 +08:00
package.json webIDE initial commit 2023-12-07 10:39:55 +08:00
theia-ext.js webIDE initial commit 2023-12-07 10:39:55 +08:00
theia-run.js webIDE initial commit 2023-12-07 10:39:55 +08:00
theia-ts-clean.js webIDE initial commit 2023-12-07 10:39:55 +08:00

README.md


theia-ext-logo

ECLIPSE THEIA -EXT-SCRIPTS


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:

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

Additional Information

License

Trademark

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