sitemap-b-framework
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -271,2 +271,3 @@ const fs = require('fs'); | ||
const xml = sitemapIndexXML.end({ prettyPrint: true }); | ||
console.log(`sitemap build success=> sitemap.xml`); | ||
fs.writeFileSync(`${this.config.sitemapPath}build/sitemap.xml`, xml); | ||
@@ -294,2 +295,3 @@ fs.writeFileSync(`${this.config.sitemapPath}build-${buildNo}/sitemap.xml`, xml); | ||
const xml = sitemapXML.end({ prettyPrint: true }); | ||
console.log(`sitemap build success=> ${buildName}`); | ||
fs.writeFileSync(`${this.config.sitemapPath}build/${buildName}`, xml); | ||
@@ -315,2 +317,3 @@ fs.writeFileSync(`${this.config.sitemapPath}build-${buildNo}/${buildName}`, xml); | ||
if (mode == 's3') { | ||
console.log(`sitemap deploy to s3 started`); | ||
const AWS = require('aws-sdk'); | ||
@@ -338,2 +341,3 @@ const s3 = new AWS.S3({ | ||
} else if (mode == 'gcs') { | ||
console.log(`sitemap deploy to gcs started`); | ||
const { Storage } = require('@google-cloud/storage') | ||
@@ -340,0 +344,0 @@ const storage = new Storage({ |
{ | ||
"name": "sitemap-b-framework", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Advanced Sitemap Management, Generating & Deployment Framework", | ||
@@ -19,3 +19,4 @@ "main": "index.js", | ||
"sitemap-framework", | ||
"xml-sitemap" | ||
"xml-sitemap", | ||
"sitemap-on-bucket" | ||
], | ||
@@ -22,0 +23,0 @@ "repository": { |
38429
496