Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2288 from amarzavery/jsdocmapping
Browse files Browse the repository at this point in the history
update mappings for jsdoc generation
  • Loading branch information
amarzavery authored Oct 5, 2017
2 parents d93e212 + e7bb4ed commit 643a08f
Show file tree
Hide file tree
Showing 2 changed files with 166 additions and 1 deletion.
53 changes: 53 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,4 +392,57 @@ gulp.task('sync-deps-rollup', (cb) => {
rollupPackage.dependencies = Object.keys(rollupDependencies).sort().reduce((r, k) => (r[k] = rollupDependencies[k], r), {});
console.log(`Total number of dependencies in the rollup package: ${Object.keys(rollupPackage.dependencies).length}`);
fs.writeFileSync('./package.json', JSON.stringify(rollupPackage, null, 2), { 'encoding': 'utf8' });
});

gulp.task('sync-package-service-mapping', (cb) => {
let packageMapping = require('./package_service_mapping');
for (let serviceName in mappings) {
let serviceObj = mappings[serviceName];
let resourceMgr = serviceObj['resource-manager'];
let Dataplane = serviceObj['data-plane'];
if (resourceMgr) {
if (resourceMgr.packageName) {
if (!packageMapping[resourceMgr.packageName]) {
packageMapping[resourceMgr.packageName] = {
category: 'Management',
'service_name': resourceMgr.dir.split('/')[0]
};
}
} else {
for (let service in resourceMgr) {
if (resourceMgr[service].packageName) {
if (!packageMapping[resourceMgr[service].packageName]) {
packageMapping[resourceMgr[service].packageName] = {
category: 'Management',
'service_name': resourceMgr[service].dir.split('/')[0]
};
}
}
}
}
}
if (Dataplane) {
if (Dataplane.packageName) {
if (!packageMapping[Dataplane.packageName]) {
packageMapping[Dataplane.packageName] = {
category: 'Dataplane',
'service_name': Dataplane.dir.split('/')[0]
};
}
} else {
for (let service in Dataplane) {
if (Dataplane[service].packageName) {
if (!packageMapping[Dataplane[service].packageName]) {
packageMapping[Dataplane[service].packageName] = {
category: 'Dataplane',
'service_name': Dataplane[service].dir.split('/')[0]
};
}
}
}
}
}
}
packageMapping = Object.keys(packageMapping).sort().reduce((r, k) => (r[k] = packageMapping[k], r), {});
fs.writeFileSync('./package_service_mapping.json', JSON.stringify(packageMapping, null, 2), { 'encoding': 'utf8' });
});
114 changes: 113 additions & 1 deletion package_service_mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@
"service_name": "Analysis Services",
"category": "Management"
},
"azure-arm-apimanagement": {
"category": "Management",
"service_name": "API Management"
},
"azure-arm-appinsights": {
"category": "Management",
"service_name": "App Insights"
},
"azure-arm-authorization": {
"service_name": "Authorization",
"category": "Management"
Expand All @@ -19,6 +27,10 @@
"service_name": "Automation",
"category": "Management"
},
"azure-arm-batch": {
"category": "Management",
"service_name": "Batch Management"
},
"azure-arm-billing": {
"service_name": "Billing",
"category": "Management"
Expand All @@ -39,10 +51,30 @@
"service_name": "Virtual Machines",
"category": "Management"
},
"azure-arm-consumption": {
"category": "Management",
"service_name": "Consumption Management"
},
"azure-arm-containerinstance": {
"category": "Management",
"service_name": "ContainerInstance Management"
},
"azure-arm-containerregistry": {
"service_name": "Container Registry",
"category": "Management"
},
"azure-arm-cosmosdb": {
"category": "Management",
"service_name": "CosmosDB Management"
},
"azure-arm-customerinsights": {
"category": "Management",
"service_name": "CustomerInsights Management"
},
"azure-arm-datafactory": {
"category": "Management",
"service_name": "Datafactory Management"
},
"azure-arm-datalake-analytics": {
"service_name": "Data Lake Analytics",
"category": "Management"
Expand All @@ -63,6 +95,14 @@
"service_name": "Cosmos DB",
"category": "Management"
},
"azure-arm-domainservices": {
"category": "Management",
"service_name": "DomainServices Management"
},
"azure-arm-eventgrid": {
"category": "Management",
"service_name": "Eventgrid Management"
},
"azure-arm-eventhub": {
"service_name": "Event Hub",
"category": "Management"
Expand Down Expand Up @@ -95,10 +135,30 @@
"service_name": "Machine Learning",
"category": "Management"
},
"azure-arm-machinelearningcompute": {
"category": "Management",
"service_name": "MachinelearningCompute Management"
},
"azure-arm-marketplaceordering": {
"category": "Management",
"service_name": "Marketplaceordering Management"
},
"azure-arm-mediaservices": {
"service_name": "Media Services",
"category": "Management"
},
"azure-arm-mobileengagement": {
"category": "Management",
"service_name": "Mobile Engagement"
},
"azure-arm-monitor": {
"category": "Management",
"service_name": "Monitor Management"
},
"azure-arm-mysql": {
"category": "Management",
"service_name": "Mysql Management"
},
"azure-arm-network": {
"service_name": "Virtual Network",
"category": "Management"
Expand All @@ -111,6 +171,14 @@
"service_name": "Operational Insights",
"category": "Management"
},
"azure-arm-operations": {
"category": "Management",
"service_name": "Operations Management"
},
"azure-arm-postgresql": {
"category": "Management",
"service_name": "Postgresql Management"
},
"azure-arm-powerbiembedded": {
"service_name": "PowerBI Embedded",
"category": "Management"
Expand All @@ -119,6 +187,10 @@
"service_name": "Site Recovery",
"category": "Management"
},
"azure-arm-recoveryservices-siterecovery": {
"category": "Management",
"service_name": "RecoveryServicesSiteRecovery Management"
},
"azure-arm-recoveryservicesbackup": {
"service_name": "Backup",
"category": "Management"
Expand All @@ -135,6 +207,10 @@
"service_name": "Resources",
"category": "Management"
},
"azure-arm-resourcehealth": {
"category": "Management",
"service_name": "ResourceHealth Management"
},
"azure-arm-sb": {
"service_name": "Service Bus",
"category": "Management"
Expand Down Expand Up @@ -171,12 +247,48 @@
"service_name": "Storage",
"category": "Management"
},
"azure-arm-storsimple8000series": {
"category": "Management",
"service_name": "Storsimple8000series Management"
},
"azure-arm-streamanalytics": {
"category": "Management",
"service_name": "Streamanalytics Management"
},
"azure-arm-trafficmanager": {
"service_name": "Traffic Manager",
"category": "Management"
},
"azure-arm-visualstudio": {
"category": "Management",
"service_name": "Visualstudio Management"
},
"azure-arm-website": {
"service_name": "App Service",
"category": "Management"
},
"azure-batch": {
"category": "Dataplane",
"service_name": "Batch"
},
"azure-cognitiveservices": {
"category": "Dataplane",
"service_name": "Cognitiveservices"
},
"azure-graph": {
"category": "Dataplane",
"service_name": "Graph Management"
},
"azure-keyvault": {
"category": "Dataplane",
"service_name": "Keyvault"
},
"azure-monitor": {
"category": "Dataplane",
"service_name": "Monitor"
},
"azure-servicefabric": {
"category": "Dataplane",
"service_name": "Service Fabric"
}
}
}

0 comments on commit 643a08f

Please sign in to comment.