From 3ad02af07f8386ffb4100df1af8a7e279c7d649d Mon Sep 17 00:00:00 2001 From: Andy Sterland Date: Wed, 16 Feb 2022 18:15:11 -0800 Subject: [PATCH] Removing build scripts as the product is no longer in active dev. --- README.md | 1 - gulpfile.js | 96 ---------------------------------------------------- package.json | 16 --------- 3 files changed, 113 deletions(-) delete mode 100644 README.md delete mode 100644 gulpfile.js delete mode 100644 package.json diff --git a/README.md b/README.md deleted file mode 100644 index 36b10ea..0000000 --- a/README.md +++ /dev/null @@ -1 +0,0 @@ -# A11yDevTool \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js deleted file mode 100644 index 7fe385e..0000000 --- a/gulpfile.js +++ /dev/null @@ -1,96 +0,0 @@ -var gulp = require('gulp'); -var fs = require('fs'); -var builder = require('xmlbuilder'); - -var outputFileName = 'accessibilityTool.strings'; -var outputF12JsonFileName = 'accessbilityPropertyFilters.json'; -var startingIdNumber = 8169; - -gulp.task('buildStrings', function(){ - /* - Example xml string - - - Breakpoints - - - */ - fs.readFile('PropertyMapping.json', 'utf8', function (err, data) { - var jsonA11yProps = JSON.parse(data); - var jsonA11yPropsKeys = Object.keys(jsonA11yProps); - - var id = startingIdNumber; - - var rootEl = builder.create('resources'); - jsonA11yPropsKeys.forEach(function(key){ - var item = jsonA11yProps[key]; - var name = 'a11y_' + key + '_tooltip'; - var comment = 'String shown in the accessbility panel as the tooltip for the property name ' + key + '.'; - var value = item.description; - if(!value || value === ""){ - console.log(key); - value = " "; - } - - var stringObject = { - 'string': { - '@id': id, - '@name': name, - 'value': value, - 'comment': comment - } - }; - - rootEl.ele(stringObject); - - id++; - }); - rootEl.end({ pretty: true}); - - fs.writeFile(outputFileName, rootEl, function(err){ - if(err) { - return console.log(err); - } - - console.log("Saved resource strings to file."); - }); - }); -}); - -gulp.task('buildF12Json', function(){ - /* - Example output json - - "": { - "DisplayName": "", - "DefaultDisplay": true, - "Description": "", - "AriaEquivalent": "" - } - */ - fs.readFile('PropertyMapping.json', 'utf8', function (err, data) { - var jsonA11yProps = JSON.parse(data); - var jsonA11yPropsKeys = Object.keys(jsonA11yProps); - - var outputObject = {}; - jsonA11yPropsKeys.forEach(function(key){ - var item = jsonA11yProps[key]; - - outputObject[key] = { - 'DisplayName': item.displayName, - 'DefaultDisplay': item.defaultDisplay, - 'Description': '', - 'AriaEquivalent': item.ariaEquivalent - }; - }); - - var outputString = JSON.stringify(outputObject, null, 4); - fs.writeFile(outputF12JsonFileName, outputString, function(err){ - if(err) { - return console.log(err); - } - - console.log("Saved resource strings to file."); - }); - }); -}); \ No newline at end of file diff --git a/package.json b/package.json deleted file mode 100644 index 6f011a4..0000000 --- a/package.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "A11yDevTool", - "repository": { - "type": "git", - "url": "https://github.com/MicrosoftEdge/A11yDevTool.git" - }, - "engines": { - "node": "0.10.15" - }, - "devDependencies": { - "xmlbuilder": "^7.0.0" - }, - "dependencies": { - } -} -