Compress roadmaps JSONs

astro
Kamran Ahmed 2 years ago
parent af27626a1c
commit fbdf3a6942
  1. 14
      bin/compress-jsons.cjs
  2. 4
      package.json
  3. 5634
      public/jsons/angular.json
  4. 21413
      public/jsons/aspnet-core.json
  5. 14495
      public/jsons/backend.json
  6. 14259
      public/jsons/blockchain.json
  7. 12187
      public/jsons/computer-science.json
  8. 8111
      public/jsons/design-system.json
  9. 17349
      public/jsons/devops.json
  10. 12456
      public/jsons/flutter.json
  11. 14196
      public/jsons/frontend.json
  12. 5196
      public/jsons/golang.json
  13. 4787
      public/jsons/graphql.json
  14. 4271
      public/jsons/java.json
  15. 16277
      public/jsons/javascript.json
  16. 12220
      public/jsons/nodejs.json
  17. 4129
      public/jsons/python.json
  18. 9935
      public/jsons/qa.json
  19. 7376
      public/jsons/react.json
  20. 6678
      public/jsons/software-architect.json
  21. 4771
      public/jsons/software-design-architecture.json
  22. 5392
      public/jsons/vue.json

@ -0,0 +1,14 @@
const fs = require('node:fs');
const path = require('node:path');
const jsonsDir = path.join(process.cwd(), 'public/jsons');
const jsonFiles = fs.readdirSync(jsonsDir);
jsonFiles.forEach((jsonFileName) => {
console.log(`Compressing ${jsonFileName}...`);
const jsonFilePath = path.join(jsonsDir, jsonFileName);
const json = require(jsonFilePath);
fs.writeFileSync(jsonFilePath, JSON.stringify(json));
});

@ -5,13 +5,13 @@
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "astro dev", "dev": "astro dev",
"dev:verbose": "astro dev --verbose",
"start": "astro dev", "start": "astro dev",
"build": "astro build", "build": "astro build",
"preview": "astro preview", "preview": "astro preview",
"astro": "astro", "astro": "astro",
"deploy": "NODE_DEBUG=gh-pages gh-pages -d dist -t", "deploy": "NODE_DEBUG=gh-pages gh-pages -d dist -t",
"sync-content": "sh ./bin/sync-content.sh" "sync-content": "sh ./bin/sync-content.sh",
"compress:jsons": "node bin/compress-jsons.cjs"
}, },
"dependencies": { "dependencies": {
"@astrojs/sitemap": "^1.0.0", "@astrojs/sitemap": "^1.0.0",

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save