Merge "add jsdoc to component/license"
This commit is contained in:
commit
8a7b536bb6
|
@ -14,6 +14,11 @@
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* licence module
|
||||||
|
* @module
|
||||||
|
*/
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var projectBuilder = require('../project_builder');
|
var projectBuilder = require('../project_builder');
|
||||||
|
@ -35,7 +40,7 @@ function noop (generator) {
|
||||||
* @param {generator} generator The currently active generator.
|
* @param {generator} generator The currently active generator.
|
||||||
* @returns {generator} The passed generator, for promise chaining.
|
* @returns {generator} The passed generator, for promise chaining.
|
||||||
*/
|
*/
|
||||||
function configureLicense (generator) {
|
function configure (generator) {
|
||||||
projectBuilder.addFile('LICENSE');
|
projectBuilder.addFile('LICENSE');
|
||||||
pkgBuilder.setValues({license: 'Apache-2.0'});
|
pkgBuilder.setValues({license: 'Apache-2.0'});
|
||||||
|
|
||||||
|
@ -43,7 +48,10 @@ function configureLicense (generator) {
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
/** @see {@link module:component/license~noop} */
|
||||||
init: noop,
|
init: noop,
|
||||||
|
/** @see {@link module:component/license~noop} */
|
||||||
prompt: noop,
|
prompt: noop,
|
||||||
configure: configureLicense
|
/** @see {@link module:component/license~configure} */
|
||||||
|
configure: configure
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue