Compress roadmaps JSONs

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

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