How to use atom-package-deps - 10 common examples

To help you get started, we’ve selected a few atom-package-deps examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github AtomLinter / linter-markdown / lib / index.js View on Github external
const installLinterMarkdownDeps = () => {
    idleCallbacks.delete(callbackID);

    // Install package dependencies
    if (!atom.inSpecMode()) {
      require('atom-package-deps').install('linter-markdown');
    }
    // Load required modules
    loadDeps();
  };
github particle-iot / particle-dev / lib / main.js View on Github external
this.StatusView = require('./views/status-bar-view');
		}
		({ File: this.File } = require('atom'));


		this.workspaceElement = atom.views.getView(atom.workspace);
		({ CompositeDisposable, Emitter } = require('atom'));
		this.disposables = new CompositeDisposable;
		this.contextMenus = new CompositeDisposable;
		this.emitter = new Emitter;
		atom.particleDev = {
			emitter: this.emitter
		};

		// Install packages we depend on
		require('atom-package-deps').install(packageName(), true);

		// Create promises for consumed services
		activatePromise = Promise.all([
			new Promise((resolve, reject) => this.statusBarResolve = resolve),
			new Promise((resolve, reject) => this.toolBarResolve = resolve),
			new Promise((resolve, reject) => this.profilesResolve = resolve),
			new Promise((resolve, reject) => this.consolePanelResolve = resolve)
		]).then(() => {
			return this.ready();
		});
		return activatePromise;
	},
github joefitzgerald / gometalinter-linter / lib / main.js View on Github external
activate () {
    this.subscriptions = new CompositeDisposable()
    require('atom-package-deps').install('gometalinter-linter').then(() => {
      this.dependenciesInstalled = true
      return this.dependenciesInstalled
    }).catch((e) => {
      console.log(e)
    })
  },
github maisk / atom-psql / lib / atom-psql.js View on Github external
activate(state) {
		console.log("atom-psql activate");
		install('atom-psql');//.then(function() { });
		this.controller = new AtomPsqlController(state);

	},
github AtomLinter / linter-clojure / lib / index.js View on Github external
const installLinterClojureDeps = () => {
      this.idleCallbacks.delete(depsCallbackID);
      if (!atom.inSpecMode()) {
        require('atom-package-deps').install('linter-clojure');
      }
      loadDeps();
    };
    depsCallbackID = window.requestIdleCallback(installLinterClojureDeps);
github gorriecoe / atom-silverstripe / lib / main.js View on Github external
activate () {
    require('atom-package-deps').install(packageInfo.name, false)
    this.subscriptions = new CompositeDisposable()
  },
  consumeSignal (registry) {
github AtomLinter / linter-pycodestyle / lib / index.js View on Github external
const installLinterPycodestyleDeps = () => {
      this.idleCallbacks.delete(depsCallbackID);
      if (!atom.inSpecMode()) {
        require('atom-package-deps').install('linter-pycodestyle');
      }
      loadDeps();
    };
    depsCallbackID = window.requestIdleCallback(installLinterPycodestyleDeps);
github AtomLinter / linter-php / lib / main.js View on Github external
const installLinterPhpDeps = () => {
      this.idleCallbacks.delete(depsCallbackID);
      if (!atom.inSpecMode()) {
        require('atom-package-deps').install('linter-php');
      }
      loadDeps();
    };
    depsCallbackID = window.requestIdleCallback(installLinterPhpDeps);
github AtomLinter / linter-luacheck / lib / init.js View on Github external
const installLinterLuacheckDeps = () => {
      this.idleCallbacks.delete(depCallbackID);

      require('atom-package-deps').install('linter-luacheck');
      loadDeps();
    };
    depCallbackID = window.requestIdleCallback(installLinterLuacheckDeps);
github marko-js / atom-language-marko / src / index.js View on Github external
.then(() => {
                return require('atom-package-deps').install('language-marko');
            })
            .catch((e) => {

atom-package-deps

Automatically install package dependencies

MIT
Latest version published 3 years ago

Package Health Score

52 / 100
Full package analysis

Popular atom-package-deps functions