Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
ember-cli-deploy-plugin
Advanced tools
This NPM module exposes a base class that can be used by ember-cli-deploy plugins to streamline implementation of a plugin.
In your plugin's directory:
npm install ember-cli-deploy-plugin --save
In your plugin's index.js
file:
/* jshint node: true */
'use strict';
var DeployPluginBase = require('ember-cli-deploy-plugin');
module.exports = {
name: 'ember-cli-deploy-awesomeness',
createDeployPlugin: function(options) {
var DeployPlugin = DeployPluginBase.extend({
name: options.name,
// note: most plugins can simply implement these next two properties and use
// the base class' implementation of the `configure` hook
defaultConfig: {
someKey: 'defaultValue',
anotherKey: function(context) {
return context.anotherKey; // to use data added to the context by another plugin
}
},
requiredConfig: ['awesomeApiKey'], // throw an error if this is not configured
// implement any hooks appropriate for your plugin
willUpload: function(context) {
// Use the `readConfig` method for uniform access to this plugin's config,
// whether via a dynamic function or a configured value
var someValue = this.readConfig('someKey');
var anotherValue = this.readConfig('anotherKey');
var awesomeApiKey = this.readConfig('awesomeApiKey');
// Use the `log` method to generate output consistent with the tree style
// of ember-cli-deploy's verbose output
this.log('output some awesomeness');
this.log('output some red awesomeness', { color: 'red' });
this.log('output this only when verbose option is enabled', { verbose: true });
// Need to do something async? You can return a promise.
// Need to fail out? Throw an error or return a promise which becomes rejected
return Promise.resolve();
},
});
return new DeployPlugin();
}
};
## TODO
Tests
FAQs
For building plugins for ember-cli-deploy
The npm package ember-cli-deploy-plugin receives a total of 20,760 weekly downloads. As such, ember-cli-deploy-plugin popularity was classified as popular.
We found that ember-cli-deploy-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.