Skip to content

Commit ab8c96d

Browse files
committed
WIP: Multi-module
1 parent 37d59dc commit ab8c96d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+14707
-19699
lines changed

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,14 @@ jspm_packages
1212
.serverless
1313
settings.yml
1414
settings.*.yml
15+
16+
!jest.config.js
17+
*.d.ts
18+
node_modules
19+
20+
# CDK asset staging directory
21+
.cdk.staging
22+
cdk.out
23+
.aws-sam
24+
response.json
25+
locals.json

.nvmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 Venveo
3+
Copyright (c) 2019-2021 Venveo
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# HEY - THIS BRANCH ISN'T READY. DON'T USE IT.
2+
13
# Serverless Sharp Image Processor
24
A solution to dynamically optimize and transform images on the fly, utilizing [Sharp](https://sharp.pixelplumbing.com/en/stable/) and AWS Lambda.
35

jest.config.js

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
2+
3+
function project(displayName, testMatch) {
4+
return {
5+
6+
transform: {
7+
'^.+\\.ts?$': 'ts-jest',
8+
},
9+
moduleNameMapper: {
10+
11+
},
12+
13+
displayName,
14+
testMatch,
15+
collectCoverageFrom: [
16+
'packages/**/*.ts',
17+
'!**/dist/**',
18+
'!**/node_modules/**',
19+
'!**/build/**',
20+
'!**/stack.ts',
21+
'!**/cdk.out/**',
22+
'!**/test/**',
23+
'!**/node_modules/**',
24+
'!**/coverage/**'
25+
],
26+
coveragePathIgnorePatterns: [
27+
'/node_modules/',
28+
'/build/',
29+
'/dist/',
30+
'/coverage/'
31+
32+
],
33+
transformIgnorePatterns: [
34+
'/node_modules/',
35+
'/build/',
36+
'/dist/',
37+
],
38+
watchPathIgnorePatterns: [
39+
'/node_modules/',
40+
'/build/',
41+
'/dist/',
42+
'/coverage/',
43+
],
44+
coverageProvider: 'v8',
45+
}
46+
}
47+
48+
module.exports = {
49+
// preset: 'ts-jest',
50+
globals: {
51+
'ts-jest': {
52+
tsConfig: 'tsconfig.test.json',
53+
}
54+
},
55+
testEnvironment: 'node',
56+
// rootDir: './',
57+
// testRegex: '(/__tests__/.*|(\\.|/)(test))\\.tsx?$',
58+
testMatch: [
59+
60+
],
61+
62+
watchPlugins: [
63+
'jest-watch-typeahead/filename',
64+
'jest-watch-typeahead/testname'
65+
],
66+
67+
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
68+
projects: [
69+
project('all', [
70+
'<rootDir>/packages/**/*.test.ts'
71+
]),
72+
73+
// project('cdk', [
74+
// '<rootDir>/packages/app/lib/conductor/**/*.test.ts'
75+
// ]),
76+
77+
],
78+
79+
modulePathIgnorePatterns: [
80+
81+
'/dist/',
82+
'/build/'
83+
],
84+
modulePaths: [
85+
'node_modules',
86+
'<rootDir>/test/'
87+
],
88+
verbose: true,
89+
collectCoverage: false,
90+
91+
92+
}

0 commit comments

Comments
 (0)