This repository was archived by the owner on Jul 9, 2021. It is now read-only.
File tree 21 files changed +1879
-992
lines changed
21 files changed +1879
-992
lines changed Original file line number Diff line number Diff line change 1
- FROM alpine:3.10
1
+ FROM alpine:3.13
2
2
3
3
LABEL maintainer="https://github.com/IanStorm"
4
4
@@ -8,9 +8,9 @@ WORKDIR /opt/xelement/money-server
8
8
COPY / ./
9
9
10
10
# ↓ 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
14
14
15
15
# ↓ Compile money-server
16
16
RUN npm install --unsafe-perm
Original file line number Diff line number Diff line change 1
1
# Money Server
2
+
2
3
[ ![ 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 )
3
4
[ ![ 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 )
4
6
[ ![ Docker Pulls] ( https://img.shields.io/docker/pulls/xelement/money-server )] ( https://hub.docker.com/r/xelement/money-server )
5
7
[ ![ Docker Stars] ( https://img.shields.io/docker/stars/xelement/money-server )] ( https://hub.docker.com/r/xelement/money-server )
6
8
7
9
8
10
## End-user installation
11
+
9
12
The software is currently in a state that does not yet allow an end-user installation.
10
13
11
14
12
15
## Development
16
+
13
17
1 . Install * Node.js* . (The required version can be found inside the ` package.json ` file.)
14
18
2 . Clone this repository.
15
19
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
19
23
20
24
21
25
### ...via Docker and Visual Studio Code
26
+
22
27
1 . Clone this repository.
23
28
2 . Open the repository in vscode.
24
29
2 . Run the vscode task ` install (Docker) ` .
Original file line number Diff line number Diff line change 1
1
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" ;
4
4
5
5
6
6
export class GulpModel {
Original file line number Diff line number Diff line change 1
- import * as gulp from "gulp" ;
2
- import * as Undertaker from "undertaker" ;
1
+ import gulp from "gulp" ;
2
+ import Undertaker from "undertaker" ;
3
3
import { typescriptTaskName } from "./ts" ;
4
4
import { tslintTaskName } from "./tslint" ;
5
5
import { tsoaTaskName } from "./tsoa" ;
Original file line number Diff line number Diff line change 1
- import * as del from "del" ;
2
- import * as gulp from "gulp" ;
1
+ import del from "del" ;
2
+ import gulp from "gulp" ;
3
3
import { GulpModel } from "./GulpModel" ;
4
4
5
5
Original file line number Diff line number Diff line change 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" ;
4
4
import { SrcOptions } from "vinyl-fs" ;
5
5
import { GulpModel } from "./GulpModel" ;
6
6
@@ -12,7 +12,7 @@ const runAllTestsTaskFunction: () => NodeJS.ReadWriteStream = () => {
12
12
read : false ,
13
13
since : undefined // always re-run tests from all files
14
14
} ;
15
- const mochaSetupOptions : MochaSetupOptions = {
15
+ const mochaSetupOptions : Mocha . MochaOptions = {
16
16
reporter : "spec"
17
17
} ;
18
18
const globs : Array < string > = [
Original file line number Diff line number Diff line change 1
- import * as gulp from "gulp" ;
2
- import * as Undertaker from "undertaker" ;
1
+ import gulp from "gulp" ;
2
+ import Undertaker from "undertaker" ;
3
3
import { buildTaskName } from "./build" ;
4
4
import { runAllTestsTaskName } from "./run-all-tests" ;
5
5
Original file line number Diff line number Diff line change 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" ;
5
5
import { SrcOptions } from "vinyl-fs" ;
6
6
import { GulpModel } from "./GulpModel" ;
7
7
Original file line number Diff line number Diff line change 1
- import * as gulp from "gulp" ;
1
+ import gulp from "gulp" ;
2
2
import {
3
3
default as gulpTslint ,
4
4
PluginOptions ,
5
5
ReportOptions
6
6
} from "gulp-tslint" ;
7
- import * as path from "path" ;
7
+ import path from "path" ;
8
8
import * as tslint from "tslint" ;
9
- import * as Undertaker from "undertaker" ;
9
+ import Undertaker from "undertaker" ;
10
10
import { SrcOptions } from "vinyl-fs" ;
11
11
import { GulpModel } from "./GulpModel" ;
12
12
Original file line number Diff line number Diff line change 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" ;
6
6
import { SrcOptions } from "vinyl-fs" ;
7
7
import { GulpModel } from "./GulpModel" ;
8
8
@@ -38,7 +38,7 @@ const tsoaTaskFunction: () => Promise<void> = async () => {
38
38
console . log ( `Going to run \`tsoa\` on ${ folderPaths . length } folder(s).` ) ;
39
39
const tsoaCmdPath = path . join ( GulpModel . absoluteCommandFolderPath , "tsoa" ) ;
40
40
for ( const folderPath of folderPaths ) {
41
- await exec ( `${ tsoaCmdPath } swagger ` , { cwd : folderPath } ) ;
41
+ await exec ( `${ tsoaCmdPath } spec ` , { cwd : folderPath } ) ;
42
42
await exec ( `${ tsoaCmdPath } routes` , { cwd : folderPath } ) ;
43
43
}
44
44
return ;
Original file line number Diff line number Diff line change 1
- import * as gulp from "gulp" ;
2
- import * as Undertaker from "undertaker" ;
1
+ import gulp from "gulp" ;
2
+ import Undertaker from "undertaker" ;
3
3
import { GulpModel } from "./GulpModel" ;
4
4
import { testTaskFunction } from "./test" ;
5
5
Original file line number Diff line number Diff line change 2
2
"compilerOptions" : {
3
3
"alwaysStrict" : true ,
4
4
"baseUrl" : " ../../../" ,
5
+ "esModuleInterop" : true ,
5
6
"module" : " commonjs" ,
6
7
"moduleResolution" : " node" ,
7
8
"noEmitOnError" : true ,
You can’t perform that action at this time.
0 commit comments