Skip to content

Commit

Permalink
add build
Browse files Browse the repository at this point in the history
  • Loading branch information
pablojvritx committed Oct 8, 2023
1 parent b73f204 commit aca763b
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 14 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
"lint": "eslint . --ext .ts --max-warnings=0",
"lint:fix": "eslint . --ext .ts --fix",
"pre-commit": "lint-staged",
"build": "npm run build:clean && npm run build:tsc && npm run build:di",
"build:tsc": "tsc -p tsconfig.prod.json",
"build:di": "find ./src -type f \\( -name '*.json' -o -name '*.yml' -o -name '*.yaml' -o -name '*.html' -o -name '*.png' \\) -exec rsync --relative {} dist/ \\;",
"build:clean": "rm -r dist; exit 0",
"test": "npm run test:unit && npm run test:features",
"test:features": "cross-env NODE_ENV=test cucumber-js -p apiApp_backend",
"test:unit": "cross-env NODE_ENV=test jest --detectOpenHandles --forceExit --coverage"
Expand All @@ -25,8 +29,7 @@
"lint-staged": {
"{src,tests}/**/*.ts": [
"prettier --write",
"npm run lint:fix",
"git add"
"npm run lint:fix"
]
},
"repository": {
Expand Down
2 changes: 2 additions & 0 deletions src/apps/apiApp/backend/dependency-injection/application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
imports:
- { resource: ./apps/application.yaml }
2 changes: 0 additions & 2 deletions src/apps/apiApp/backend/dependency-injection/application.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
imports:
- { resource: ./application.yaml }

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
imports:
- { resource: ./application.yaml }

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
imports:
- { resource: ./application.yaml }

This file was deleted.

2 changes: 1 addition & 1 deletion src/apps/apiApp/backend/dependency-injection/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ const container = new ContainerBuilder();
const loader = new YamlFileLoader(container);
const env = process.env.NODE_ENV ?? 'dev';

loader.load(`${__dirname}/application_${env}.yml`);
loader.load(`${__dirname}/application_${env}.yaml`);

export default container;
4 changes: 1 addition & 3 deletions tsconfig.prod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"baseUrl": ".",
},
"compilerOptions": {},
"exclude": ["node_modules", "tests"]
}

0 comments on commit aca763b

Please sign in to comment.