File tree Expand file tree Collapse file tree 12 files changed +38
-1167
lines changed
Expand file tree Collapse file tree 12 files changed +38
-1167
lines changed Original file line number Diff line number Diff line change 1- name : Publish to npm
1+ name : NPM Publish
22
33on :
44 release :
9393 id : get_next_version_before_publish
9494 continue-on-error : true
9595 run : |
96- VERSION=$(npm view enum-plus @next version || " 0.0.0" )
96+ VERSION=$(npm view jsoneo @next version 2>/dev/null || echo 0.0.0)
9797 echo "NEXT_VERSION=$VERSION" >> $GITHUB_OUTPUT
9898
9999 - name : Publish a prerelease version to npm
Original file line number Diff line number Diff line change 1+ import type * as JSONeo from 'jsoneo' ;
12import type * as EnumPlus from './src' ;
23import type * as WeekConfig from './test/data/week-config' ;
34import type * as WeekData from './test/data/week-data' ;
4- import type * as SerializeJavascript from './test/utils/serialize-javascript' ;
55
66declare global {
77 interface Window {
88 EnumPlus : typeof EnumPlus ;
99 WeekConfig : typeof WeekConfig ;
1010 WeekData : typeof WeekData ;
11- SerializeJavascript : typeof SerializeJavascript ;
11+ JSONeo : typeof JSONeo ;
1212 }
1313}
1414export { } ;
Original file line number Diff line number Diff line change 1- <!DOCTYPE html>
1+ <!doctype html>
22< html >
3-
43 < head >
5- < meta charset ="UTF-8 ">
4+ < meta charset ="UTF-8 " / >
65 < title > Enum Plus Legacy Test</ title >
76 </ head >
87
98 < body >
109 < div id ="test-results "> </ div >
11- < script src ="scripts/serialize-javascript -bundle.js "> </ script >
10+ < script src ="scripts/jsoneo -bundle.js "> </ script >
1211 < script src ="scripts/es-legacy-bundle.js "> </ script >
1312 < script src ="scripts/week-config-bundle.js "> </ script >
1413 < script src ="scripts/week-data-bundle.js "> </ script >
1514 </ body >
16-
17- </ html >
15+ </ html >
Original file line number Diff line number Diff line change 1- <!DOCTYPE html>
1+ <!doctype html>
22< html >
3-
43 < head >
5- < meta charset ="UTF-8 ">
4+ < meta charset ="UTF-8 " / >
65 < title > Enum Plus Modern Test</ title >
76 </ head >
87
98 < body >
109 < div id ="test-results "> </ div >
11- < script src ="scripts/serialize-javascript -bundle.js "> </ script >
10+ < script src ="scripts/jsoneo -bundle.js "> </ script >
1211 < script src ="scripts/es-modern-bundle.js "> </ script >
1312 < script src ="scripts/week-config-bundle.js "> </ script >
1413 < script src ="scripts/week-data-bundle.js "> </ script >
1514 </ body >
16-
17- </ html >
15+ </ html >
Original file line number Diff line number Diff line change 175175 "father" : " ^4.5.5" ,
176176 "glob" : " ^11.0.3" ,
177177 "jest" : " ^29.7.0" ,
178+ "jsoneo" : " ^1.0.0" ,
178179 "npm-run-all2" : " ^8.0.3" ,
179180 "playwright" : " ^1.52.0" ,
180181 "rollup" : " ^4.41.1" ,
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ const fs = require('fs');
44const root = path . resolve ( __dirname , '..' ) ;
55
66generate ( path . join ( root , 'src/version.ts' ) ) ;
7- generate ( path . join ( root , 'test/utils/version.ts' ) ) ;
87
98/** @param {string } outFile */
109function generate ( outFile ) {
Original file line number Diff line number Diff line change @@ -24,15 +24,15 @@ async function build() {
2424 name : 'EnumPlus' ,
2525 } ) ;
2626
27- // Bundle serialize-javascript
28- const serializeJavascript = await rollup ( {
29- input : 'tses/test/utils/serialize-javascript .js' ,
27+ // Bundle jsoneo library
28+ const jsoneoLib = await rollup ( {
29+ input : 'jsoneo/es/index .js' ,
3030 plugins : [ nodeResolve ( ) ] ,
3131 } ) ;
32- await serializeJavascript . write ( {
33- file : 'e2e/fixtures/scripts/serialize-javascript -bundle.js' ,
32+ await jsoneoLib . write ( {
33+ file : 'e2e/fixtures/scripts/jsoneo -bundle.js' ,
3434 format : 'iife' ,
35- name : 'SerializeJavascript ' ,
35+ name : 'JSONeo ' ,
3636 } ) ;
3737
3838 // Bundle week-config
Original file line number Diff line number Diff line change 11import type * as EnumPlusNamespace from '@enum-plus' ;
2+ import type * as JsoneoNamespace from 'jsoneo' ;
23import type * as WeekConfigNamespace from '../data/week-config' ;
34import type * as WeekDataNamespace from '../data/week-data' ;
4- import type * as SerializeJavascriptNamespace from '../utils/serialize-javascript' ;
55import type { TestEngine } from './config' ;
66import type { MakeMatchers } from './playwright-types' ;
77
@@ -30,7 +30,7 @@ export interface RuntimeContext {
3030 EnumPlus : typeof EnumPlusNamespace ;
3131 WeekConfig : typeof WeekConfigNamespace ;
3232 WeekData : typeof WeekDataNamespace ;
33- SerializeJavascript : typeof SerializeJavascriptNamespace ;
33+ JSONeo : typeof JsoneoNamespace ;
3434 [ key : string ] : unknown ;
3535}
3636export default TestEngineBase ;
Original file line number Diff line number Diff line change 11import * as EnumPlus from '@enum-plus' ;
2+ import * as JSONeo from 'jsoneo' ;
23import * as WeekConfig from '../data/week-config' ;
34import * as WeekData from '../data/week-data' ;
4- import * as SerializeJavascript from '../utils/serialize-javascript' ;
55import TestEngineBase , { type RuntimeContext } from './base' ;
66
77export class JestEngine extends TestEngineBase {
@@ -38,7 +38,7 @@ export class JestEngine extends TestEngineBase {
3838 EnumPlus,
3939 WeekConfig,
4040 WeekData,
41- SerializeJavascript ,
41+ JSONeo : JSONeo ,
4242 } ;
4343 }
4444}
You can’t perform that action at this time.
0 commit comments