This repository was archived by the owner on Dec 2, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +113
-5
lines changed Expand file tree Collapse file tree 5 files changed +113
-5
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,8 @@ node_js:
3
3
- 8
4
4
- 7
5
5
before_install : yarn global add greenkeeper-lockfile@1
6
- before_script :
7
- - greenkeeper-lockfile-update
8
- - ls
9
- - ls ./bin
10
- script : pwd && yarn run test-cov
6
+ before_script : greenkeeper-lockfile-update
7
+ script : yarn run test-cov
11
8
after_script :
12
9
- greenkeeper-lockfile-upload
13
10
- cat ./coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf ./coverage
Original file line number Diff line number Diff line change
1
+ {
2
+ "version" : " 0.2.0" ,
3
+ "configurations" : [
4
+ {
5
+ "name" : " Launch" ,
6
+ "type" : " node" ,
7
+ "request" : " launch" ,
8
+ "program" : " bin/www" ,
9
+ "stopOnEntry" : false ,
10
+ "args" : [],
11
+ "cwd" : " ." ,
12
+ "runtimeExecutable" : null ,
13
+ "runtimeArgs" : [
14
+ " --nolazy"
15
+ ],
16
+ "env" : {
17
+ "NODE_ENV" : " development"
18
+ },
19
+ "externalConsole" : false ,
20
+ "sourceMaps" : false ,
21
+ "outDir" : null
22
+ },
23
+ {
24
+ "name" : " Attach" ,
25
+ "type" : " node" ,
26
+ "request" : " attach" ,
27
+ "port" : 5858
28
+ }
29
+ ]
30
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "editor.tabSize" : 2 ,
3
+ "editor.insertSpaces" : true ,
4
+ "editor.formatOnSave" : true ,
5
+ "files.exclude" : {
6
+ "**/.git" : true ,
7
+ "**/.DS_Store" : true ,
8
+ "**/*.js" : {
9
+ "when" : " $(basename).ts"
10
+ },
11
+ "**/*.js.map" : true ,
12
+ "logs" : true ,
13
+ ".nyc_output" : true ,
14
+ "coverage" : true ,
15
+ "html-report" : true ,
16
+ "config.yaml" : true
17
+ },
18
+ "search.exclude" : {
19
+ "**/node_modules" : true ,
20
+ "**/bower_components" : true ,
21
+ "**/*.js" : {
22
+ "when" : " $(basename).ts"
23
+ }
24
+ },
25
+ "typescript.tsdk" : " node_modules/typescript/lib" ,
26
+ "tslint.exclude" : " ${workspaceRoot}/node_modules/**/*" ,
27
+ "tslint.autoFixOnSave" : true ,
28
+ "tslint.configFile" : " tslint.json" ,
29
+ "tslint.alwaysShowRuleFailuresAsWarnings" : true
30
+ }
Original file line number Diff line number Diff line change
1
+ // Available variables which can be used inside of strings.
2
+ // ${workspaceRoot}: the root folder of the team
3
+ // ${file}: the current opened file
4
+ // ${fileBasename}: the current opened file's basename
5
+ // ${fileDirname}: the current opened file's dirname
6
+ // ${fileExtname}: the current opened file's extension
7
+ // ${cwd}: the current working directory of the spawned process
8
+
9
+ {
10
+ "version" : " 0.1.0" ,
11
+
12
+ "command" : " tsc" ,
13
+
14
+ "isShellCommand" : true ,
15
+
16
+ "showOutput" : " silent" ,
17
+
18
+ "args" : [" --watch" ],
19
+
20
+ "problemMatcher" : " $tsc"
21
+ }
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env node
2
+
3
+ if ( process . env . NODE_ENV !== "test" ) {
4
+ console . log ( `ss-ui Copyright (C) 2017 coderfox\n
5
+ This program comes with ABSOLUTELY NO WARRANTY.
6
+ This is free software, and you are welcome to redistribute it
7
+ under certain conditions.
8
+ For more information, see "${ __dirname } /../LICENSE.md".
9
+ ` ) ;
10
+ }
11
+
12
+ import server from "../server" ;
13
+ import db from "../lib/db" ;
14
+ import config from "../lib/config" ;
15
+ import log from "../lib/log" ;
16
+ import "../lib/email" ;
17
+
18
+ if ( process . env . NODE_ENV === "test" ) {
19
+ log . level = "silent" ;
20
+ }
21
+
22
+ const PORT = config . get ( "port" ) || 3000 ;
23
+
24
+ db
25
+ . then ( ( connection ) => {
26
+ log . info ( `database connected to ${ config . get ( "db_path" ) } ` ) ;
27
+ server . listen ( PORT ) ;
28
+ log . info ( `server listening on port ${ PORT } ` ) ;
29
+ } )
30
+ . catch ( ( err ) => console . error ( err ) ) ;
You can’t perform that action at this time.
0 commit comments