mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
31 lines
708 B
JavaScript
31 lines
708 B
JavaScript
'use strict';
|
|
|
|
const SError = require('./Error'),
|
|
RuntimeBase = require('./RuntimeBase'),
|
|
SCli = require('./utils/cli'),
|
|
_ = require('lodash'),
|
|
BbPromise = require('bluebird');
|
|
|
|
let SUtils;
|
|
|
|
class ServerlessRuntimeNode extends RuntimeBase {
|
|
constructor(S) {
|
|
super( S, 'nodejs' );
|
|
|
|
SUtils = S.utils;
|
|
}
|
|
|
|
getFunctionRunActionName() {
|
|
return 'functionRunLambdaNodeJs';
|
|
}
|
|
|
|
installDepedencies( dir ) {
|
|
SCli.log('Installing "serverless-helpers" for this component via NPM...');
|
|
SCli.log(`-----------------`);
|
|
SUtils.npmInstall(this.S.getProject().getRootPath(dir));
|
|
SCli.log(`-----------------`);
|
|
}
|
|
}
|
|
|
|
module.exports = ServerlessRuntimeNode;
|