File tree 4 files changed +2052
-1
lines changed
4 files changed +2052
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ TARGET=cptable.js
5
5
AUXTARGETS =cputils.js cpexcel.js sbcs.js
6
6
DISTFULL_A =cpexcel sbcs
7
7
DISTFULL_B =cptable
8
+ DISTFULL_M =cpexcel
8
9
CMDS =
9
10
# DISTBITS=iso2022.js
10
11
DISTBITS =
@@ -28,6 +29,7 @@ js: make.sh codepage.md ## Build all output targets
28
29
bash make.sh <( awk -F, ' $$3=="1"' pages.csv) sbcs.js cptable
29
30
bash make.sh excel.csv cpexcel.js cptable
30
31
bash make.sh pages.csv cptable.js cptable
32
+ bash make_esm.sh excel.csv cpexcel.mjs
31
33
# node iso2022/make_iso2022.njs > iso2022.js
32
34
make cputils.js
33
35
@@ -43,12 +45,13 @@ dist: $(TARGET) $(AUXTARGETS) ## Copy files for distribution
43
45
cp $(TARGET ) $(AUXTARGETS ) LICENSE dist/
44
46
for i in $( DISTFULL_A) ; do cat $$ i.js cputils.js | sed " s#require('./cptable')#cptable#" > dist/$$ i.full.js; done
45
47
for i in $( DISTFULL_B) ; do cat $$ i.js $( DISTBITS) cputils.js | sed " s#require('./cptable')#cptable#" > dist/$$ i.full.js; done
48
+ for i in $( DISTFULL_M) ; do cat $$ i.mjs cputils.mjs | sed " s#require('./cptable')#cptable#" > dist/$$ i.full.mjs; done
46
49
47
50
# # Testing
48
51
49
52
.PHONY : test mocha
50
53
test mocha : $(TARGET ) baseline # # Run test suite
51
- mocha -R spec -t 20000
54
+ ./node_modules/.bin/ mocha -R spec -t 20000
52
55
53
56
.PHONY : ctest
54
57
ctest : # # Build browser test (into ctest/ subdirectory)
You can’t perform that action at this time.
0 commit comments