Skip to content

Commit cd4c748

Browse files
Add Javascript to SCons
1 parent f96b2b1 commit cd4c748

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

SConstruct

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ languages = {
4545
'cpp': 'cpp',
4646
'fortran': 'f90',
4747
'go': 'go',
48+
'javascript': 'js',
4849
'julia': 'jl',
4950
'lolcode': 'lol',
5051
'lua': 'lua',

sconscripts/javascript_SConscript

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Import('files_to_compile env')
2+
from pathlib import Path
3+
4+
for file in files_to_compile:
5+
chapter_name = file.parent.parent.parent.stem
6+
env.Copier(f'#/build/javascript/{chapter_name}.js', str(file))

0 commit comments

Comments
 (0)