ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Project Runner

by andrew4699 Win ALL

Utility for running programs (i.e. starting a Node server) when switching Sublime Text projects

Details

Installs

  • Total 256
  • Win 256
  • Mac 0
  • Linux 0
Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12
Windows 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

sublime-npm-project

A utility for running programs (i.e. starting a Node server) when switching Sublime Text projects.

Prerequisites

Follow the instructions to install Sublime Text's Package Control

Installation

  1. Open the Command Palette (default key-combo is Ctrl+Shift+P)
  2. Select “Package Control: Install Package”
  3. Search for sublime-npm-project and hit enter

Configuration

By default, this package won't do anything. Go to Project > Edit Project and add a section called “projectrunner” like below:

{
    "projectrunner":
    {
        "path": ".",
        "start": true
    },
    "folders":
    [
        {
            "path": "."
        }
    ]
}

This will ask you when you open a new project whether you want to perform the startup action, which unless explicitly specified is “npm start”. Note that by default, this is run from your project path.

Change startup action

"projectrunner":
    {
        "path": ".",
        "start": "node scripts/start.js"
    },

Change (relative) path

"projectrunner":
    {
        "path": "react/",
        "start": true
    },

Disable startup action

"projectrunner":
    {
        "path": ".",
        "start": false
    },