@vvakame/typescript-plugin-example

1.1.1 • Public • Published

TypeScript Plugin Example

TypeScript Language Service has plugins. We can make proxy for Language Service. see 1, 2.

We can't use plugin with tsc command. We should use plugin via tsserver.

How to try?

$ npm install --save-dev @vvakame/typescript-plugin-example
$ cat tsconfig.json
{
  "compilerOptions": {
    "target": "esnext",
    "module": "esnext",
    "strict": true,
    "plugins": [
      {
        "name": "@vvakame/typescript-plugin-example",
        // Plugin specific configuration
        "verbose": true,
        "goody": "😻"
      }
    ]
  }
}
$ git clone https://github.com/vvakame/typescript-plugin-example.git
$ cd typescript-plugin-example
$ npm install && npm run build
$ code .
# open fixture/index.ts and see quickinfo & completion list.
# ⌘+⌥+P > TypeScript: Open TS Server log file
# This is extremely cool!
$ npm run test
# check behavior via tsserver command.

bibliography

Dependents (0)

Package Sidebar

Install

npm i @vvakame/typescript-plugin-example

Weekly Downloads

0

Version

1.1.1

License

MIT

Last publish

Collaborators

  • vvakame