Skip to content

Commit

Permalink
Update all dependencies, tooling cleanup
Browse files Browse the repository at this point in the history
This switches to Node 20, updates most dependencies to their latest
version, and moves the obfuscator config to its own file.

Also included is the script I wrote to rewrite a branch into a version
that doesn't have the two hidden files in it.
  • Loading branch information
tiennou committed Feb 5, 2024
1 parent 0e23a85 commit 16b2c93
Show file tree
Hide file tree
Showing 9 changed files with 2,673 additions and 106 deletions.
11 changes: 8 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
[*]
charset=utf-8
end_of_line=crlf
end_of_line=lf
insert_final_newline=false
indent_style=space
indent_size=4

[{.babelrc,.stylelintrc,.eslintrc,jest.config,*.json,*.jsb3,*.jsb2,*.bowerrc}]
indent_style=space
indent_size=2
end_of_line=lf
trim_trailing_whitespace=true

[{*.ats,*.ts}]
[{*.ats,*.ts,*.js}]
indent_style=tab
tab_width=4
end_of_line=lf
trim_trailing_whitespace=true

[tslint.json]
indent_style=space
indent_size=2

end_of_line=lf
trim_trailing_whitespace=true
85 changes: 4 additions & 81 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ screeps.json
/dist
/node_modules
/typings
/.rpt2_cache
/tsc-out

# Ignore Mathematica notebooks so they don't add 50 billion lines to contribution count
Expand All @@ -17,88 +16,12 @@ screeps.json
# Ignore Assimilator.ts
/src/assimilation/Assimilator.ts

# yarn lock file
/yarn.lock

/webpack.config.js

# npm lock file (v5.0.0+)
/package-lock.json

# Screeps config file
/config.json

# Numerous always-ignore extensions
*.diff
*.err
*.orig
*.log
*.rej
*.swo
*.swp
*.zip
*.vi

# Editor folders
.cache
.project
.settings
.tmproj
*.esproj
nbproject
*.sublime-project
*.sublime-workspace
.idea

# =========================
# Operating System Files
# =========================

# OSX
# =========================

.DS_Store
.AppleDouble
.LSOverride

# Thumbnails
._*

# Files that might appear on external disk
.Spotlight-V100
.Trashes

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

# Windows
# =========================

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Windows shortcuts
*.lnk

# VStudio files
applicationhost.config
*.suo
*.njsproj
*.sln
# Multimeter-specific files
/multimeter.log
/.screeps-multimeter.history
/.screeps.yaml
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 20.11.0
28 changes: 28 additions & 0 deletions obfuscator.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"compact": false,
"controlFlowFlattening": false,
"deadCodeInjection": false,
"debugProtection": false,
"debugProtectionInterval": 0,
"disableConsoleOutput": false,
"identifierNamesGenerator": "hexadecimal",
"log": false,
"numbersToExpressions": false,
"renameGlobals": false,
"selfDefending": true,
"simplify": true,
"splitStrings": false,
"stringArray": true,
"stringArrayCallsTransform": false,
"stringArrayCallsTransformThreshold": 0.5,
"stringArrayEncoding": ["rc4"],
"stringArrayIndexShift": true,
"stringArrayRotate": true,
"stringArrayShuffle": true,
"stringArrayWrappersCount": 1,
"stringArrayWrappersChainedCalls": true,
"stringArrayWrappersParametersMaxCount": 2,
"stringArrayWrappersType": "variable",
"stringArrayThreshold": 1,
"unicodeEscapeSequence": false
}
Loading

0 comments on commit 16b2c93

Please sign in to comment.