Skip to content

Commit 19687b7

Browse files
Add Javascript to SCons
1 parent 1a0e3f2 commit 19687b7

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

SConstruct

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ languages = {
4141
'cpp': 'cpp',
4242
'fortran': 'f90',
4343
'go': 'go',
44+
'javascript': 'js',
4445
'julia': 'jl',
4546
'lolcode': 'lol',
4647
'lua': 'lua',

sconscripts/javascript_SConscript

+6
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)