Skip to content

Commit

Permalink
2.1.43
Browse files Browse the repository at this point in the history
  • Loading branch information
sefinek24 committed Sep 29, 2024
1 parent 18567bf commit 7a7a359
Show file tree
Hide file tree
Showing 13 changed files with 43 additions and 83 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ npm run updatedb-force license_key=YOUR_LICENSE_KEY

You can also run it by doing:
```shell
node ./node_modules/geoip-lite2/scripts/updatedb.js license_key=YOUR_LICENSE_KEY
node ./node_modules/geoip-lite2/utils/updatedb.js license_key=YOUR_LICENSE_KEY
```

### Ways to reload data in your app when update finished
Expand Down
6 changes: 0 additions & 6 deletions _Minify/linux.bash
Original file line number Diff line number Diff line change
@@ -1,29 +1,24 @@
#!/bin/bash

# Function to minimize JavaScript files
function MinifyJSFiles {
SourceDirectory="$1"
OutputDirectory="$2"

echo "Minimizing JavaScript files in $SourceDirectory and saving to $OutputDirectory"

# Check if the source directory exists
if [ ! -d "$SourceDirectory" ]; then
echo "Source directory does not exist: $SourceDirectory"
return 1
fi

# Remove the existing output directory if it exists
if [ -d "$OutputDirectory" ]; then
echo "Removing existing output directory: $OutputDirectory"
rm -rf "$OutputDirectory"
fi

# Create the output directory
mkdir -p "$OutputDirectory"
echo "Created output directory: $OutputDirectory"

# Minimize JavaScript files from the source directory and save them to the output directory using Terser
for file in "$SourceDirectory"/*.js; do
if [ -e "$file" ]; then
FileName=$(basename "$file")
Expand All @@ -35,7 +30,6 @@ function MinifyJSFiles {
echo "Minimization of JavaScript files in $SourceDirectory completed"
}

# Minimize files in the specified directories
MinifyJSFiles "./lib-unminified" "./lib"
MinifyJSFiles "./utils-unminified" "./utils"
MinifyJSFiles "./test-unminified" "./test"
Loading

0 comments on commit 7a7a359

Please sign in to comment.