Skip to content

Commit 1f75ee1

Browse files
committed
icons upload tested
1 parent 2fbba2c commit 1f75ee1

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
"webpagetest": "github:HTTPArchive/WebPageTest.api-nodejs"
2222
},
2323
"scripts": {
24-
"lint": "eslint src/**/*.{js,json} tests/**/*.js bin/**/*.js && jsonlint -jsV ./schema.json --trim-trailing-commas --enforce-double-quotes ./src/technologies/ && jsonlint -js --trim-trailing-commas --enforce-double-quotes ./src/categories.json",
25-
"lint:fix": "eslint --fix src/**/*.{js,json} tests/**/*.js bin/**/*.js && jsonlint -isV ./schema.json --trim-trailing-commas --enforce-double-quotes ./src/technologies/ && jsonlint -is --trim-trailing-commas --enforce-double-quotes ./src/categories.json",
26-
"validate": "yarn run lint && node ./bin/validate.js",
24+
"lint": "eslint src/**/*.{js,json} tests/**/*.js scripts/**/*.js && jsonlint -jsV ./schema.json --trim-trailing-commas --enforce-double-quotes ./src/technologies/ && jsonlint -js --trim-trailing-commas --enforce-double-quotes ./src/categories.json",
25+
"lint:fix": "eslint --fix src/**/*.{js,json} tests/**/*.js scripts/**/*.js && jsonlint -isV ./schema.json --trim-trailing-commas --enforce-double-quotes ./src/technologies/ && jsonlint -is --trim-trailing-commas --enforce-double-quotes ./src/categories.json",
26+
"validate": "yarn run lint && node ./scripts/validate.js",
2727
"test": "jest",
28-
"upload": "node ./bin/upload_technology.js && node ./bin/upload_icons.js",
29-
"convert": "node --no-warnings ./bin/convert.js",
30-
"build": "yarn run validate && yarn run convert && node ./bin/build.js"
28+
"upload": "node ./scripts/upload_technology.js",
29+
"convert": "node --no-warnings ./scripts/convert.js",
30+
"build": "yarn run validate && yarn run convert && node ./scripts/build.js"
3131
},
3232
"jest": {
3333
"reporters": [
File renamed without changes.
File renamed without changes.

bin/upload_icons.js renamed to scripts/upload_icons.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const path = require('path')
44
const { Storage } = require('@google-cloud/storage')
55

66
// Configuration
7-
const BUCKET_NAME = 'wappalizer-icons'
7+
const BUCKET_NAME = 'technology_detections'
88
const ICONS_DIR = path.resolve(__dirname, '../src/images/icons/converted') // Local directory where your PNG icons are stored
99

1010
const storage = new Storage({
@@ -40,7 +40,7 @@ async function syncIcons() {
4040
) {
4141
try {
4242
await bucket.upload(filePath, {
43-
destination: file,
43+
destination: 'icons/'+file,
4444
metadata: {
4545
contentType: 'image/png',
4646
},
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)