npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ide-deploy-config

v1.1.0

Published

Set JetBrains IDE deployment config from config file.

Downloads

15

Readme

ide-deploy-config

Ease set / switch deployment config for JetBrains IDE from config file using node CLI.

Tested on:

  • PhpStorm 2016.2 @ macOS Sierra 10.12.1
  • PhpStorm 2016.2 @ Windows 10
  • WebStorm 2016.3 @ macOS Sierra 10.12.1

Help with testing! Write if it's works or not works in you system.

Install

Require Node.js.

$ npm install ide-deploy-config -g

Usage

Init project with IDE

.idea folder must be created in project root.

Configure server in IDE

  1. Go to Tools - Deployment - Configuration and create server
  2. Set Name for server and access data: FTP host, Port, Root path, Username, Password

It's all. Mappings and excluded paths will be configured with script.

Create config .json file

Buy default script search deploy-config.json in project root. You can specify path to config file.

$ cd my-project
$ touch deploy-config.json

Also you can run ide-deploy-config init for create config file.

Content of deploy-config.json:

{
  "dev": {
    "serverName": "serverName",
    "autoUpload": "Always",
    "autoUploadExternalChanges": true,
    "mappings": [
      {
        "deploy": "/",
        "local": "$PROJECT_DIR$",
        "web": "/"
      }
    ],
    "excludedLocal": [
      "$PROJECT_DIR$/.idea",
      "$PROJECT_DIR$/bower_components",
      "$PROJECT_DIR$/node_modules",
      "$PROJECT_DIR$/deploy-config.json"
    ],
    "excludedServer": [
      "/uploads/"
    ]
  },
  "production": {
    "serverName": "anotherServerName",
    "autoUpload": "Always",
    "autoUploadExternalChanges": true,
    "mappings": [
      {
        "deploy": "/",
        "local": "$PROJECT_DIR$",
        "web": "/"
      }
    ],
    "excludedLocal": [
       "$PROJECT_DIR$/.idea",
       "$PROJECT_DIR$/bower_components",
       "$PROJECT_DIR$/node_modules",
       "$PROJECT_DIR$/deploy-config.json"
    ],
    "excludedServer": [
      "/uploads/"
    ]
  }
}

Set serverName that exist in IDE deployment configuration.

Set / switch deployment configuration

Go to project root and run script:

  Usage
    $ ide-deploy-config
    $ ide-deploy-config <env>
    $ ide-deploy-config <env> <path to config>

  Example
    $ ide-deploy-config // set first deployment configuration from deploy-config.json
    $ ide-deploy-config production // set 'production' deployment configuration from deploy-config.json
    $ ide-deploy-config stage configs/deploy.json // set 'stage' deployment configuration from configs/deploy.json

Changelog

1.1.0

  • Set default notifyRemoteChanges: true

1.0.0

  • Rewrite to ES6
  • Add multiple mappings config instead serverPath and localPath options. Breaking change

License

MIT