Skip to content
This repository was archived by the owner on Jul 9, 2021. It is now read-only.

Commit a518d3a

Browse files
authored
Merge pull request #20 from XElementDev/Updates_20210128
Updates 20210128
2 parents 529961c + ad72e59 commit a518d3a

21 files changed

+1879
-992
lines changed

Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine:3.10
1+
FROM alpine:3.13
22

33
LABEL maintainer="https://github.com/IanStorm"
44

@@ -8,9 +8,9 @@ WORKDIR /opt/xelement/money-server
88
COPY / ./
99

1010
# ↓ Install Node.js
11-
RUN apk add jq=1.6-r0 && \
12-
XE_NODE_VERSION="$(cat ./package.json | jq -r '.engines.node')-r0" && \
13-
apk add nodejs=$XE_NODE_VERSION npm=$XE_NODE_VERSION
11+
RUN apk add jq=~1.6 && \
12+
XE_NODE_VERSION="$(cat ./package.json | jq -r '.engines.node')" && \
13+
apk add nodejs=~$XE_NODE_VERSION npm=~$XE_NODE_VERSION
1414

1515
# ↓ Compile money-server
1616
RUN npm install --unsafe-perm

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
# Money Server
2+
23
[![Build Status](https://xelement.visualstudio.com/money-server/_apis/build/status/XElementDev.money-server?branchName=master)](https://xelement.visualstudio.com/money-server/_build/latest?definitionId=5&branchName=master)
34
[![dependencies Status](https://david-dm.org/XElementDev/money-server/status.svg)](https://david-dm.org/XElementDev/money-server)
5+
[![devDependencies Status](https://david-dm.org/XElementDev/money-server/dev-status.svg)](https://david-dm.org/XElementDev/money-server?type=dev)
46
[![Docker Pulls](https://img.shields.io/docker/pulls/xelement/money-server)](https://hub.docker.com/r/xelement/money-server)
57
[![Docker Stars](https://img.shields.io/docker/stars/xelement/money-server)](https://hub.docker.com/r/xelement/money-server)
68

79

810
## End-user installation
11+
912
The software is currently in a state that does not yet allow an end-user installation.
1013

1114

1215
## Development
16+
1317
1. Install *Node.js*. (The required version can be found inside the `package.json` file.)
1418
2. Clone this repository.
1519
2. `cd` inside the cloned directory and run `npm install`.
@@ -19,6 +23,7 @@ The software is currently in a state that does not yet allow an end-user install
1923

2024

2125
### ...via Docker and Visual Studio Code
26+
2227
1. Clone this repository.
2328
2. Open the repository in vscode.
2429
2. Run the vscode task `install (Docker)`.

etc/gulp/GulpModel.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as colors from "ansi-colors";
2-
import * as path from "path";
3-
import * as through from "through2";
2+
import path from "path";
3+
import through from "through2";
44

55

66
export class GulpModel {

etc/gulp/build.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as gulp from "gulp";
2-
import * as Undertaker from "undertaker";
1+
import gulp from "gulp";
2+
import Undertaker from "undertaker";
33
import { typescriptTaskName } from "./ts";
44
import { tslintTaskName } from "./tslint";
55
import { tsoaTaskName } from "./tsoa";

etc/gulp/clean.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as del from "del";
2-
import * as gulp from "gulp";
1+
import del from "del";
2+
import gulp from "gulp";
33
import { GulpModel } from "./GulpModel";
44

55

etc/gulp/run-all-tests.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import * as gulp from "gulp";
2-
import * as gulpMocha from "gulp-mocha";
3-
import * as path from "path";
1+
import gulp from "gulp";
2+
import gulpMocha from "gulp-mocha";
3+
import path from "path";
44
import { SrcOptions } from "vinyl-fs";
55
import { GulpModel } from "./GulpModel";
66

@@ -12,7 +12,7 @@ const runAllTestsTaskFunction: () => NodeJS.ReadWriteStream = () => {
1212
read: false,
1313
since: undefined // always re-run tests from all files
1414
};
15-
const mochaSetupOptions: MochaSetupOptions = {
15+
const mochaSetupOptions: Mocha.MochaOptions = {
1616
reporter: "spec"
1717
};
1818
const globs: Array<string> = [

etc/gulp/test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as gulp from "gulp";
2-
import * as Undertaker from "undertaker";
1+
import gulp from "gulp";
2+
import Undertaker from "undertaker";
33
import { buildTaskName } from "./build";
44
import { runAllTestsTaskName } from "./run-all-tests";
55

etc/gulp/ts.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import * as gulp from "gulp";
2-
import * as gulpTs from "gulp-typescript";
3-
import * as path from "path";
4-
import * as ts from "typescript";
1+
import gulp from "gulp";
2+
import gulpTs from "gulp-typescript";
3+
import path from "path";
4+
import ts from "typescript";
55
import { SrcOptions } from "vinyl-fs";
66
import { GulpModel } from "./GulpModel";
77

etc/gulp/tslint.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import * as gulp from "gulp";
1+
import gulp from "gulp";
22
import {
33
default as gulpTslint,
44
PluginOptions,
55
ReportOptions
66
} from "gulp-tslint";
7-
import * as path from "path";
7+
import path from "path";
88
import * as tslint from "tslint";
9-
import * as Undertaker from "undertaker";
9+
import Undertaker from "undertaker";
1010
import { SrcOptions } from "vinyl-fs";
1111
import { GulpModel } from "./GulpModel";
1212

etc/gulp/tsoa.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import * as cpp from "child-process-promise";
2-
import * as gulp from "gulp";
3-
import * as ListStream from "list-stream";
4-
import * as path from "path";
5-
import * as File from "vinyl";
1+
import cpp from "child-process-promise";
2+
import gulp from "gulp";
3+
import ListStream from "list-stream";
4+
import path from "path";
5+
import File from "vinyl";
66
import { SrcOptions } from "vinyl-fs";
77
import { GulpModel } from "./GulpModel";
88

@@ -38,7 +38,7 @@ const tsoaTaskFunction: () => Promise<void> = async () => {
3838
console.log(`Going to run \`tsoa\` on ${folderPaths.length} folder(s).`);
3939
const tsoaCmdPath = path.join(GulpModel.absoluteCommandFolderPath, "tsoa");
4040
for (const folderPath of folderPaths) {
41-
await exec(`${tsoaCmdPath} swagger`, { cwd: folderPath });
41+
await exec(`${tsoaCmdPath} spec`, { cwd: folderPath });
4242
await exec(`${tsoaCmdPath} routes`, { cwd: folderPath });
4343
}
4444
return;

etc/gulp/watch.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as gulp from "gulp";
2-
import * as Undertaker from "undertaker";
1+
import gulp from "gulp";
2+
import Undertaker from "undertaker";
33
import { GulpModel } from "./GulpModel";
44
import { testTaskFunction } from "./test";
55

etc/ts/base/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"compilerOptions": {
33
"alwaysStrict": true,
44
"baseUrl": "../../../",
5+
"esModuleInterop": true,
56
"module": "commonjs",
67
"moduleResolution": "node",
78
"noEmitOnError": true,

0 commit comments

Comments
 (0)