Structuring monorepo better
This commit is contained in:
11
.gitignore
vendored
11
.gitignore
vendored
@ -34,6 +34,8 @@ build/Release
|
||||
|
||||
# Dependency directories
|
||||
node_modules/
|
||||
node_modules_pc/
|
||||
node_modules_surface/
|
||||
jspm_packages/
|
||||
|
||||
# Typescript v1 declaration files
|
||||
@ -57,10 +59,7 @@ typings/
|
||||
# dotenv environment variables file
|
||||
.env
|
||||
|
||||
# custom
|
||||
dist/
|
||||
/package-lock.json
|
||||
/dist
|
||||
src/private/dist
|
||||
src/public/public
|
||||
.cache
|
||||
/nbproject/private/
|
||||
.vscode
|
||||
.serverless
|
@ -11,6 +11,8 @@ cache:
|
||||
matrix:
|
||||
include:
|
||||
- env: PROJECT=src/private/
|
||||
include:
|
||||
- env: PROJECT=src/public/
|
||||
|
||||
install:
|
||||
- cd $PROJECT
|
||||
|
3
src/private/.gitignore
vendored
Normal file
3
src/private/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
dist/
|
||||
*.log
|
||||
*.lock
|
@ -7,7 +7,7 @@ package:
|
||||
excludeDevDependencies: false
|
||||
individually: true
|
||||
include:
|
||||
- backend/dist/**
|
||||
- dist/**
|
||||
|
||||
provider:
|
||||
name: aws
|
||||
@ -26,26 +26,20 @@ provider:
|
||||
|
||||
functions:
|
||||
ping:
|
||||
handler: backend/dist/index.ping
|
||||
handler: dist/index.ping
|
||||
events:
|
||||
- http: ANY ping
|
||||
sendMail:
|
||||
handler: backend/dist/functions/mail/send.sendMail
|
||||
handler: dist/functions/mail/send.sendMail
|
||||
events:
|
||||
- http: ANY mail/send
|
||||
|
||||
plugins:
|
||||
- serverless-plugin-include-dependencies
|
||||
- serverless-offline
|
||||
- serverless-finch
|
||||
|
||||
custom:
|
||||
ssm: '/aws/reference/secretsmanager/prod.domsPlace.'
|
||||
client:
|
||||
bucketName: domsplace-${self:provider.stage}-${self:provider.region}-public
|
||||
distributionFolder: frontned/public/
|
||||
indexDocument: index.html
|
||||
errorDocument: index.html
|
||||
serverless-offline:
|
||||
disableCookieValidation: true
|
||||
port: 3001
|
File diff suppressed because it is too large
Load Diff
2
src/public/.gitignore
vendored
Normal file
2
src/public/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
public/
|
||||
*.lock
|
21
src/public/serverless.yml
Normal file
21
src/public/serverless.yml
Normal file
@ -0,0 +1,21 @@
|
||||
org: yourwishes
|
||||
service: domsplace
|
||||
|
||||
frameworkVersion: ">=1.26.0"
|
||||
|
||||
package:
|
||||
excludeDevDependencies: false
|
||||
individually: true
|
||||
include:
|
||||
- public/**
|
||||
|
||||
plugins:
|
||||
- serverless-plugin-include-dependencies
|
||||
- serverless-finch
|
||||
|
||||
custom:
|
||||
client:
|
||||
bucketName: domsplace-${self:provider.stage}-${self:provider.region}-public
|
||||
distributionFolder: frontned/public/
|
||||
indexDocument: index.html
|
||||
errorDocument: index.html
|
10647
src/public/yarn.lock
10647
src/public/yarn.lock
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user