Skip to content

Commit

Permalink
Merge pull request #18 from bcgov-nr/feat/updateDependencies
Browse files Browse the repository at this point in the history
Feat: update dependencies
  • Loading branch information
andrwils authored Feb 2, 2024
2 parents 3066364 + b63945e commit 72e28ef
Show file tree
Hide file tree
Showing 4 changed files with 8,369 additions and 8,500 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM node:21
FROM node:21-alpine

ARG APP=app
ARG HOME=/home/node

ENV NPM_CONFIG_PREFIX=$HOME/.npm-global
ENV PATH=$PATH:$HOME/.npm-global/bin

RUN npm install -g yo@4.3.1
RUN npm install -g yo

COPY --chown=node:node ./generator-nr-maven-build $HOME/$APP/
RUN cd $HOME/$APP/ && npm ci && npm link
Expand Down
11 changes: 5 additions & 6 deletions generator-nr-maven-build/generators/app/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
'use strict';
const Generator = require('yeoman-generator');
const chalk = require('chalk');
const yosay = require('yosay');
import Generator from "yeoman-generator";
import yosay from "yosay";

module.exports = class extends Generator {
export default class extends Generator {
prompting() {
this.log(
yosay(
Expand Down Expand Up @@ -82,6 +81,6 @@ module.exports = class extends Generator {
this.destinationPath('.jenkins/deployment-intention.json'),
{ projectName: this.props.projectName, serviceName: this.props.serviceName }
);
}
}
}
};
}
Loading

0 comments on commit 72e28ef

Please sign in to comment.