File tree Expand file tree Collapse file tree 5 files changed +18
-4
lines changed
backend/src/packages/mail/libs/views Expand file tree Collapse file tree 5 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ class DriverCredentialsView extends View implements IView {
10
10
public constructor ( templateName : TemplateNameValues ) {
11
11
const templatePath = path . join (
12
12
path . dirname ( url . fileURLToPath ( import . meta. url ) ) ,
13
- 'libs ' ,
14
- 'layout ' ,
13
+ '.. ' ,
14
+ 'layouts ' ,
15
15
`${ templateName } .hbs` ,
16
16
) ;
17
17
super ( templatePath ) ;
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ class PlainView extends View implements IView {
10
10
public constructor ( templateName : TemplateNameValues ) {
11
11
const templatePath = path . join (
12
12
path . dirname ( url . fileURLToPath ( import . meta. url ) ) ,
13
- 'libs ' ,
14
- 'layout ' ,
13
+ '.. ' ,
14
+ 'layouts ' ,
15
15
`${ templateName } .hbs` ,
16
16
) ;
17
17
super ( templatePath ) ;
Original file line number Diff line number Diff line change @@ -11,6 +11,17 @@ copy_and_clean() {
11
11
fi
12
12
}
13
13
14
+ copy_files () {
15
+ source_dir=" $1 "
16
+ destination_dir=" $2 "
17
+
18
+ if [ -d " $source_dir " ]; then
19
+ mkdir -p " $destination_dir "
20
+ cp -r " $source_dir " /* " $destination_dir "
21
+ fi
22
+ }
23
+
24
+
14
25
copy_and_clean " ./backend/build" " ./build/backend/"
15
26
mkdir -p " ./build/shared/"
16
27
cp -r " ./shared/build" " ./build/shared/"
@@ -19,3 +30,6 @@ copy_and_clean "./frontend/build" "./build/backend/public"
19
30
20
31
# Copy package files
21
32
cp " package.json" " package-lock.json" " ./build/"
33
+
34
+ # Copy mail layouts
35
+ copy_files " ./backend/src/packages/mail/libs/views/layouts" " ./build/backend/packages/mail/libs/views/layouts"
You can’t perform that action at this time.
0 commit comments