Skip to content

Commit

Permalink
refactor!: Rewrote for new major v3 (see detail)
Browse files Browse the repository at this point in the history
- Added Live Compiler (on-the-fly, in-memory patching)
- Added experimental ES Module support (closes #58)
- Added mutex locks (closes #75)
- Updated to support TS v5+ (closes #83 closes #93)
- Fixed patching for non-standard libraries (cannot guarantee they will work as expected in IDEs) (closes #85)
- Added caching
  • Loading branch information
nonara authored Jun 13, 2023
1 parent 6977aa9 commit cd69c1c
Show file tree
Hide file tree
Showing 165 changed files with 5,241 additions and 3,627 deletions.
17 changes: 7 additions & 10 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ ij_editorconfig_space_before_colon = false
ij_editorconfig_space_before_comma = false
ij_editorconfig_spaces_around_assignment_operators = true


[{*.js, *.cjs}]
[{*.js,*.cjs}]
tab_width = 2
ij_continuation_indent_size = 2
ij_javascript_align_imports = false
Expand All @@ -34,7 +33,7 @@ ij_javascript_align_multiline_extends_list = false
ij_javascript_align_multiline_for = true
ij_javascript_align_multiline_parameters = true
ij_javascript_align_multiline_parameters_in_calls = false
ij_javascript_align_multiline_ternary_operation = true
ij_javascript_align_multiline_ternary_operation = false
ij_javascript_align_object_properties = 0
ij_javascript_align_union_types = false
ij_javascript_align_var_statements = 0
Expand Down Expand Up @@ -177,7 +176,6 @@ ij_javascript_ternary_operation_wrap = off
ij_javascript_union_types_wrap = on_every_item
ij_javascript_use_chained_calls_group_indents = false
ij_javascript_use_double_quotes = true
ij_javascript_use_explicit_js_extension = auto
ij_javascript_use_path_mapping = always
ij_javascript_use_public_modifier = false
ij_javascript_use_semicolon_after_statement = true
Expand All @@ -187,15 +185,15 @@ ij_javascript_while_on_new_line = false
ij_javascript_wrap_comments = false


[{*.zsh, *.bash, *.sh}]
[{*.zsh,*.bash,*.sh}]
ij_shell_binary_ops_start_line = false
ij_shell_keep_column_alignment_padding = false
ij_shell_minify_program = false
ij_shell_redirect_followed_by_space = false
ij_shell_switch_cases_indented = false


[{.babelrc, .prettierrc, .stylelintrc, .eslintrc, jest.config, *.json, *.jsb3, *.jsb2, *.bowerrc}]
[{.babelrc,.prettierrc,.stylelintrc,.eslintrc,jest.config,*.json,*.jsb3,*.jsb2,*.bowerrc}]
ij_json_keep_blank_lines_in_code = 2
ij_json_keep_indents_on_empty_lines = false
ij_json_keep_line_breaks = true
Expand All @@ -207,7 +205,7 @@ ij_json_spaces_within_braces = true
ij_json_spaces_within_brackets = true
ij_json_wrap_long_lines = false

[{*.ats, *.ts, *.tsx}]
[{*.ats,*.ts,*.tsx}]
tab_width = 2
ij_continuation_indent_size = 2
ij_typescript_align_imports = false
Expand All @@ -218,7 +216,7 @@ ij_typescript_align_multiline_extends_list = false
ij_typescript_align_multiline_for = true
ij_typescript_align_multiline_parameters = true
ij_typescript_align_multiline_parameters_in_calls = false
ij_typescript_align_multiline_ternary_operation = true
ij_typescript_align_multiline_ternary_operation = false
ij_typescript_align_object_properties = 0
ij_typescript_align_union_types = false
ij_typescript_align_var_statements = 0
Expand Down Expand Up @@ -364,11 +362,10 @@ ij_typescript_ternary_operation_wrap = off
ij_typescript_union_types_wrap = on_every_item
ij_typescript_use_chained_calls_group_indents = false
ij_typescript_use_double_quotes = false
ij_typescript_use_explicit_js_extension = auto
ij_typescript_use_path_mapping = always
ij_typescript_use_public_modifier = false
ij_typescript_use_semicolon_after_statement = true
ij_typescript_var_declaration_wrap = normal
ij_typescript_while_brace_force = never
ij_typescript_while_on_new_line = false
ij_typescript_wrap_comments = true
ij_typescript_wrap_comments = false
27 changes: 21 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,48 @@
name: Build

on: [ push ]
on:
pull_request:
push:
branches:
- master
- v3-beta
- next

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [ 12.x, 14.x, 16.x ]
node-version: [ 16.x, 18.x, 19.x ]

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Cache dependencies
uses: actions/cache@v2
with:
path: |
~/.cache/yarn
node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Packages
run: yarn install --frozen-lockfile

- name: Build
run: yarn build

- name: Test
run: yarn run test
run: yarn run test && yarn run perf
env:
CI: true
FORCE_COLOR: 1
NODE_OPTIONS: --max-old-space-size=4096
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# Built
*.d.ts
*.js.map
*.js
generator.stats.json
.nyc_output
dist
Expand Down
8 changes: 4 additions & 4 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions .idea/ts-patch.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cd69c1c

Please sign in to comment.