Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Iconscout/unicons
Browse files Browse the repository at this point in the history
  • Loading branch information
tarunmangukiya committed Mar 5, 2020
2 parents e42872e + 3494df4 commit 4f24ae3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion scripts/line/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const axios = require('axios')
const eachLimit = require('async/eachLimit')
const uniq = require('lodash/uniq')
const filter = require('lodash/filter')
const sortBy = require('lodash/sortBy')

const countDuplicates = require('../utils/countDuplicates')
const downloadImage = require('../utils/downloadImage')
Expand Down Expand Up @@ -88,7 +89,7 @@ const response = axios

console.log(`${data.length} Images Downloaded!`)
// Save the Airtable data as json
fs.writeFileSync(targetPath, JSON.stringify(data), 'utf-8')
fs.writeFileSync(targetPath, JSON.stringify(sortBy(data, 'name')), 'utf-8')

// console.log(`New Data saved from Airtable to ${targetPath}!`)
})
Expand Down
4 changes: 3 additions & 1 deletion scripts/monochrome/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ const targetImagePath = path.join(process.cwd(), 'svg/monochrome')
const eachLimit = require('async/eachLimit')
const uniq = require('lodash/uniq')
const filter = require('lodash/filter')
const sortBy = require('lodash/sortBy')

const countDuplicates = require('../utils/countDuplicates')
const downloadImage = require('../utils/downloadImage')
const replaceFill = require('./replaceFill')
Expand Down Expand Up @@ -89,7 +91,7 @@ const response = axios

console.log(`${data.length} Images Downloaded!`)
// Save the Airtable data as json
fs.writeFileSync(targetPath, JSON.stringify(data), 'utf-8')
fs.writeFileSync(targetPath, JSON.stringify(sortBy(data, 'name')), 'utf-8')

// console.log(`New Data saved from Airtable to ${targetPath}!`)
})
Expand Down

0 comments on commit 4f24ae3

Please sign in to comment.