Skip to content

A jetbrains adapter library to control you IDE configuration programmatically

License

Notifications You must be signed in to change notification settings

eladkishon/jetbrains-js

Repository files navigation

Installation

npm install jetbrains-js

Usage

Save a nodejs run configuration

import { WebstormRunConfiguration } from 'jetbrains-js';

WebstormRunConfiguration.saveNodeJsConfig(
{
    name: 'My Node.js project',
    args: ['--some-arg', '--another-arg'],
    filePath: '/path/to/my/project/index.js',
    workingDir: '/path/to/my/project',
    env: {
        NODE_ENV: 'development',
    }
})

Save an NPM run script configuration

import { WebstormRunConfiguration } from 'jetbrains-js';
WebstormRunConfiguration.saveNpmConfig(
    {
        packageJsonPath: '/path/to/my/project/package.json',
        env: {
            NODE_ENV: 'development',
        }
    }
)

About

A jetbrains adapter library to control you IDE configuration programmatically

Resources

License

Stars

Watchers

Forks

Packages

No packages published