diff --git a/.gitignore b/.gitignore index 29a74934..15030031 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,95 @@ -lib/ -start.sh -.idea/ +# Logs +logs/ +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov/ + +# Coverage directory used by tools like istanbul +coverage/ + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components/ + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories node_modules/ +jspm_packages/ + +# TypeScript v1 declaration files +typings/ + +# Optional npm cache directory +.npm/ + +# Optional eslint cache +.eslintcache + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env + +# parcel-bundler cache (https://parceljs.org/) +.cache + +# next.js build output +.next + +# nuxt.js build output +.nuxt + +# vuepress build output +.vuepress/dist + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +#DynamoDB Local files +.dynamodb/ + +########## end of https://github.com/github/gitignore/blob/master/Node.gitignore + +# ignore ide files +.idea/ +.vscode/ + +# ignore lib +lib/ + +# ignore docs docs/ + +# Certificates +*.crt +*.key \ No newline at end of file diff --git a/.npmignore b/.npmignore index 203fae89..22d76d4f 100644 --- a/.npmignore +++ b/.npmignore @@ -2,7 +2,6 @@ # See https://stackoverflow.com/a/29932318 /* # Except these files/folders -!docs !lib !LICENSE !package.json diff --git a/nginx.conf b/nginx.conf index 9d10a339..ac1d0fec 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,26 +1,26 @@ worker_processes 1; error_log stderr; -pid nginx.pid; -daemon off; +pid nginx.pid; +daemon off; events { - worker_connections 1024; + worker_connections 1024; } http { - include mime.types; - default_type application/octet-stream; - access_log /dev/stdout; + include mime.types; + default_type application/octet-stream; + access_log /dev/stdout; - proxy_temp_path /tmp/proxy; - client_body_temp_path /tmp/body; - fastcgi_temp_path /tmp/fastcgi; + proxy_temp_path /tmp/proxy; + client_body_temp_path /tmp/body; + fastcgi_temp_path /tmp/fastcgi; - sendfile on; - #tcp_nopush on; - gzip on; - keepalive_timeout 65; - - include /etc/nginx/conf.d/*; + sendfile on; + # tcp_nopush on; + gzip on; + keepalive_timeout 65; + + include /etc/nginx/conf.d/*; } diff --git a/nginx.conf.template b/nginx.conf.template index c1032647..005d2052 100644 --- a/nginx.conf.template +++ b/nginx.conf.template @@ -6,12 +6,11 @@ limit_req_zone $binary_remote_addr zone=customstappslimit:10m rate=20r/s; server { - {{{ listener }}} + {{{ listener }}} - {{{ visibleRoutes }}} + {{{ visibleRoutes }}} - {{{ hiddenRoutes }}} + {{{ hiddenRoutes }}} - {{{ staticRoute }}} + {{{ staticRoute }}} } - diff --git a/tsconfig.json b/tsconfig.json index 6719f1fa..44dae5f0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "extends": "./node_modules/@openstapps/configuration/tsconfig.json", "exclude": [ "./config/", - "./test/", - "./lib/" + "./lib/", + "./test/" ] } diff --git a/tslint.json b/tslint.json index 33dee7e5..f125abb0 100644 --- a/tslint.json +++ b/tslint.json @@ -1,3 +1,3 @@ { - "extends": ["./node_modules/@openstapps/configuration/tslint.json"] + "extends": "./node_modules/@openstapps/configuration/tslint.json" }