Skip to content

Bump rimraf from 3.0.2 to 6.0.1 #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .barrelsby.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"directory": ["./src/controllers/rest", "./src/controllers/pages"],
"exclude": ["__mock__", "__mocks__", ".spec.ts"],
"delete": true
}
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
node_modules
Dockerfile
.env.local
.env.development
Empty file added .env
Empty file.
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dist
coverage
jest.config.js
processes.config.js
scripts
9 changes: 5 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended"
"prettier",
"plugin:@typescript-eslint/recommended"
],
"plugins": ["@typescript-eslint"],
"parserOptions": {
"ecmaVersion": 2018,
"ecmaVersion": 2018,
"sourceType": "module",
"project": "./tsconfig.json"
},
Expand All @@ -15,6 +15,7 @@
"es6": true
},
"rules": {
"@typescript-eslint/no-inferrable-types": 0,
"@typescript-eslint/no-unused-vars": 2,
"@typescript-eslint/no-var-requires": 0
}
Expand Down
9 changes: 9 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# These are supported funding model platforms

github: [romakita]
patreon: # Replace with a single Patreon username
open_collective: tsed
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
custom: # Replace with a single custom sponsorship URL
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: 💬 Question or help request
url: https://gitter.im/Tsed-io/Community
about: You want to ask a question or discuss with other community members
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "monthly"
assignees:
- "Romakita"
reviewers:
- "Romakita"
17 changes: 17 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 60
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Issues with these labels will never be considered stale
exemptLabels:
- pinned
- security
# Label to use when marking an issue as stale
staleLabel: wontfix
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
46 changes: 46 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Build & Release

on:
push:
pull_request:
branches:
- production

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run test
run: yarn test
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run build
run: yarn build
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,7 @@ test/**/*.js.map
# Project
/public
/dist

#env
.env.local
.env.development
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/post-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

git update-index --again
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged $1
4 changes: 4 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"**/*.{ts,js}": ["eslint --fix"],
"**/*.{ts,js,json,md,yml,yaml}": ["prettier --write"]
}
12 changes: 0 additions & 12 deletions .mocharc.js

This file was deleted.

27 changes: 0 additions & 27 deletions .nycrc

This file was deleted.

5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dist
docs
node_modules
*-lock.json
*.lock
10 changes: 10 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"printWidth": 140,
"singleQuote": false,
"jsxSingleQuote": true,
"semi": true,
"tabWidth": 2,
"bracketSpacing": true,
"arrowParens": "always",
"trailingComma": "none"
}
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

Binary file added .yarn/install-state.gz
Binary file not shown.
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
35 changes: 25 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,40 @@
## ##
## description : Dockerfile for TsED Application ##
## author : TsED team ##
## date : 20190820 ##
## version : 1.0 ##
## date : 2023-12-11 ##
## version : 3.0 ##
## ##
###############################################################################
###############################################################################
FROM node:12.13.0-alpine

RUN apk update && apk add build-base git python
ARG NODE_VERSION=20.10.0

FROM node:${NODE_VERSION}-alpine as build
WORKDIR /opt

COPY package.json .
COPY yarn.lock .
COPY package.json yarn.lock tsconfig.json tsconfig.compile.json .barrelsby.json ./

RUN yarn install --production
RUN yarn install --pure-lockfile

COPY ./resources ./resources
COPY ./src ./src
COPY ./dist ./dist

RUN yarn build

FROM node:${NODE_VERSION}-alpine as runtime
ENV WORKDIR /opt
WORKDIR $WORKDIR

RUN apk update && apk add build-base git curl
RUN npm install -g pm2

COPY --from=build /opt .

RUN yarn install --pure-lockfile --production

COPY . .

EXPOSE 8081
ENV PORT 8081
ENV NODE_ENV production

CMD ["yarn", "start:prod"]
CMD ["pm2-runtime", "start", "processes.config.js", "--env", "production"]
29 changes: 6 additions & 23 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
version: '3.3'
version: "3.5"
services:
mongo:
image: mongo:4.1
restart: always
volumes:
- mdb-data:/data/db
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME:
MONGO_INITDB_ROOT_PASSWORD:
server:
build:
context: .
Expand All @@ -18,17 +8,10 @@ services:
- http_proxy
- https_proxy
- no_proxy
image: tsed/server:latest
# The app will restart until Mongo is listening
restart: always
depends_on:
- mongo
image: tsed-example-mongoose/server:latest
ports:
- "8081:8081"
environment:
mongoose_url: mongodb://mongo:27017/tsed-mongoose
stdin_open: true # -i
tty: true # -t
volumes:
mdb-data:

mongodb:
image: mongo:5.0.8
ports:
- "27017:27017"
38 changes: 12 additions & 26 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,45 +12,31 @@ module.exports = {
// collectCoverageFrom: undefined,

// The directory where Jest should output its coverage files
coverageDirectory: 'coverage',
coverageDirectory: "coverage",

// An array of regexp pattern strings used to skip coverage collection
coveragePathIgnorePatterns: [
'index.ts',
'/node_modules/'
],
coveragePathIgnorePatterns: ["index.ts", "/node_modules/"],

// An object that configures minimum threshold enforcement for coverage results
coverageThreshold: {
global: {
'branches': 69.23,
'functions': 58.33,
'lines': 70,
'statements': 70
branches: 70,
functions: 70,
lines: 70,
statements: 70
}
},

// An array of file extensions your modules use
moduleFileExtensions: [
'js',
'json',
'jsx',
'ts',
'tsx',
'node'
],
moduleFileExtensions: ["js", "json", "jsx", "ts", "tsx", "node"],

// The test environment that will be used for testing
testEnvironment: 'node',
testEnvironment: "node",

// The glob patterns Jest uses to detect test files
testMatch: [
'**/src/**/__tests__/**/*.[jt]s?(x)',
'**/src/**/?(*.)+(spec|test).[tj]s?(x)'
],
testMatch: ["**/src/**/__tests__/**/*.[jt]s?(x)", "**/src/**/?(*.)+(spec|test).[tj]s?(x)"],
// A map from regular expressions to paths to transformers
transform: {
'\\.(ts)$': 'ts-jest'
},
globalTeardown: './scripts/jest/teardown.js'
}
"\\.(ts)$": "ts-jest"
}
};
Loading
Loading