This repository has been archived by the owner on Jun 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
floatwork_jan
committed
Jul 10, 2019
1 parent
2887800
commit 74059bf
Showing
5 changed files
with
60 additions
and
79 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import meta from '../package.json'; | ||
|
||
export const configSchema = { | ||
customArguments: { | ||
title: 'Custom Arguments', | ||
description: 'Specify your preferred arguments for `makensis`, supports [replacement](https://github.com/noseglid/atom-build#replacement) placeholders', | ||
type: 'string', | ||
default: '{FILE_ACTIVE}', | ||
order: 0 | ||
}, | ||
manageDependencies: { | ||
title: 'Manage Dependencies', | ||
description: 'When enabled, third-party dependencies will be installed automatically', | ||
type: 'boolean', | ||
default: true, | ||
order: 1 | ||
}, | ||
alwaysEligible: { | ||
title: 'Always Eligible', | ||
description: 'The build provider will be available in your project, even when not eligible', | ||
type: 'boolean', | ||
default: false, | ||
order: 2 | ||
} | ||
}; | ||
|
||
export function getConfig(key) { | ||
return atom.config.get(`${meta.name}.${key}`); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import meta from '../package.json'; | ||
import { install } from 'atom-package-deps'; | ||
|
||
export function satisfyDependencies() { | ||
install(meta.name); | ||
|
||
const packageDeps = meta['package-deps']; | ||
|
||
packageDeps.forEach( packageDep => { | ||
if (packageDep) { | ||
if (atom.packages.isPackageDisabled(packageDep)) { | ||
if (atom.inDevMode()) console.log(`Enabling package '${packageDep}\'`); | ||
atom.packages.enablePackage(packageDep); | ||
} | ||
} | ||
}); | ||
} |