Skip to content

Commit

Permalink
Merge pull request #3 from safe-fleet/feat/project-setup
Browse files Browse the repository at this point in the history
feat(global): project setup
  • Loading branch information
veronicatofino authored Aug 30, 2021
2 parents 1825318 + d81d64d commit de666fd
Show file tree
Hide file tree
Showing 15 changed files with 17,075 additions and 137 deletions.
10 changes: 9 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Editor configuration, see http://editorconfig.org
# Editor configuration, see https://editorconfig.org
root = true

[*]
Expand All @@ -7,7 +7,15 @@ indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf
max_line_length = 150

[*.md]
max_line_length = off
trim_trailing_whitespace = false

[*.json]
max_line_length = unset

[nginx.conf]
max_line_length = unset
19 changes: 19 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
* text=auto

*.png binary
*.ico binary

.* text eol=lf
CODEOWNERS text eol=lf
Dockerfile text eol=lf
*.groovy text eol=lf
*.md text eol=lf
*.json text eol=lf
browserslist text eol=lf
*.js text eol=lf
*.ts text eol=lf
*.conf text eol=lf
*.yaml text eol=lf
*.html text eol=lf
*.scss text eol=lf
*.svg text eol=lf
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @safe-fleet/sf-leads @safe-fleet/mm-leads @safe-fleet/mm-qa
35 changes: 0 additions & 35 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

17 changes: 0 additions & 17 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

48 changes: 48 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
const { pathsToModuleNameMapper } = require('ts-jest/utils');
const { compilerOptions } = require('./tsconfig.json');
module.exports = {
globals: {
'ts-jest': {
tsconfig: './projects/testing/tsconfig.spec.json',
stringifyContentPathRegex: '\\.html$',
astTransformers: {
before: [
'jest-preset-angular/build/InlineFilesTransformer',
'jest-preset-angular/build/StripStylesTransformer',
],
},
diagnostics: {
ignoreCodes: [151001],
},
},
},
transform: {
'^.+\\.(ts|js|html)$': 'ts-jest',
},
preset: 'jest-preset-angular',
setupFilesAfterEnv: ['<rootDir>/setupJest.ts'],
testMatch: ['**/+(*.)+(spec|test).+(ts|js)?(x)'],
moduleFileExtensions: ['ts', 'js', 'html'],
testPathIgnorePatterns: ['/node_modules/', '/dist/', 'contract.spec.ts$', 'comp.spec.ts$'],
silent: true,
moduleDirectories: ['node_modules'],
roots: ['<rootDir>/projects/testing/src'],
collectCoverage: true,
collectCoverageFrom: [
'**/*.ts',
'!**/node_modules/**',
'!**/interfaces/**',
'!**/*.spec.ts',
'!**/*.module.ts',
'!**/polyfills.ts',
'!**/main.ts',
'!**/index.ts',
'!**/src/environments/**',
'!**/*.d.ts',
'!**/public-api.ts'
],
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, { prefix: '<rootDir>/projects/testing/' }),
transformIgnorePatterns: [`/node_modules/`],
coverageDirectory: 'coverage',
coverageReporters: ['json', 'lcov', 'clover', 'html', 'text'],
};
Loading

0 comments on commit de666fd

Please sign in to comment.