Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ide-template

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ide-template

Programatically generate ide project files.

  • 2.3.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

IDE Template

Programatically create ide projects from configuration objects.

Supercharge shared your project scaffolding and workflow with dynamic ide configurations. Also includes ability to open the ide programatically from your scaffolding tools.

Currently WebStorm support is provided.

Example of a project with common WebStorm configurations such as resourceRoots, libraries and Javascript Run Configuration.

var webStorm = require('ide-template').webStorm;
var path = require('path');

var projectName = 'awesome';
var serverPort = 3233;
var destination = path.join(process.cwd(), projectName);

var projectContext = {
    projectName         : projectName,
    libraries           : ['jasmine-DefinitelyTyped', 'angular'],
    resourceRoots       : [
      'file://$PROJECT_DIR$/src/app',
      'file://$PROJECT_DIR$/src/target'
    ],
    jsDebugConfiguration: [
      {
        name   : project.projectName,
        uri    : 'http://localhost:' + serverPort + '/app',
        mapping: {
          url      : 'http://localhost:' + serverPort,
          localFile: '$PROJECT_DIR$'
        }
      }
    ]
}

webStorm.createProject(destination, projectContext);
webStorm.open(destination);

FAQs

Package last updated on 29 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc