Skip to content

Commit

Permalink
Reduce NPM package size
Browse files Browse the repository at this point in the history
  • Loading branch information
fershad authored Jan 8, 2024
2 parents 49da1c4 + d7eca01 commit dbd9d7d
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ url2green.db
url2green.json

# don't track generated content
dist
dist/*

# but commit the bundled IIFE code for anyone who needs it
!dist/iife

# don't track source maps
*.js.map
Expand Down
20 changes: 14 additions & 6 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,24 @@ src/constants/test-constants.js
# Data
# exclude mode data
data/**

# but include the output js / json files
!data/output/**
# and include the minimized versions
!src/data/**
dist/data/**

# Local sqlite db
url2green.db
url2green.json

# don't track workspace files
*.vscode
*.code-workspace
*.code-workspace

# don't publish IIFE files, will commit these to git for people who need them
dist/iife/**

# don't publish the src folder, that code can be found on github
src/**

## ignore the fixup file
fixup

## don't publish the dotfiles
.*
20 changes: 20 additions & 0 deletions dist/iife/index.js

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

0 comments on commit dbd9d7d

Please sign in to comment.