Skip to content

Commit

Permalink
Keep generated license information in git
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Oct 20, 2023
1 parent 88735ee commit d4eb55b
Show file tree
Hide file tree
Showing 5 changed files with 7,912 additions and 2,066 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ node_modules
dist/
yarn.lock
swagger.json
static/licenses.html
version-info.json
ee-dist/
config/development.toml
Expand Down
9 changes: 4 additions & 5 deletions copy-static-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ cp node_modules/ace-builds/src-min/ext-searchbox.js static/js/ace/ext-searchbox.
wget https://developers.google.com/static/search/apis/ipranges/special-crawlers.json -O data/google-crawlers.json
node -e 'console.log("Google crawlers updated: "+require("./data/google-crawlers.json").creationTime);'

curl -Ls \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${GITHUB_SBOM_TOKEN}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/postalsys/emailengine/dependency-graph/sbom -o sbom.json
# brew install gh
# gh auth login
# gh ext install advanced-security/gh-sbom
gh sbom -c -l > sbom.json
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"raw": "NODE_OPTIONS=--no-experimental-fetch EENGINE_LOG_RAW=true node server --dbs.redis='redis://127.0.0.1:6379/9' | eerawlog",
"test": "grunt && node --test test/",
"swagger": "./getswagger.sh",
"build-source": "rm -rf node_modules && npm install && npm run licenses && ./copy-static-files.sh && rm -rf node_modules && npm install --omit=dev && ./update-info.sh",
"build-source": "rm -rf node_modules && npm install && ./copy-static-files.sh && rm -rf node_modules && npm install --omit=dev && ./update-info.sh",
"build-dist": "npx pkg --compress Brotli package.json && npm install && node winconf.js",
"build-dist-fast": "npx pkg --debug package.json && npm install && node winconf.js",
"licenses": "license-checker --excludePackages emailengine-app --json | node license-table.js > static/licenses.html",
"postinstall": "npm run licenses",
"gettext": "find ./views -name \"*.hbs\" -print0 | xargs -0 xgettext-template -L Handlebars -o translations/messages.pot --force-po && jsxgettext lib/routes-ui.js workers/api.js -j -o translations/messages.pot",
"prepare-docker": "echo \"EE_DOCKER_LEGACY=$EE_DOCKER_LEGACY\" >> system.env && cat system.env"
"prepare-docker": "echo \"EE_DOCKER_LEGACY=$EE_DOCKER_LEGACY\" >> system.env && cat system.env",
"update": "rm -rf node_modules package-lock.json && ncu -u && npm install && ./copy-static-files.sh && npm run licenses"
},
"keywords": [
"IMAP",
Expand Down
Loading

0 comments on commit d4eb55b

Please sign in to comment.