From 898d8e32dd2ba1f0a3408836891b34df7e5130e5 Mon Sep 17 00:00:00 2001 From: Denis Demchenko Date: Fri, 22 Dec 2017 17:24:38 +0200 Subject: [PATCH] Remove old files --- helpers/convert-old-json-to-yaml.js | 29 ----------------------------- make/build.js | 24 ------------------------ 2 files changed, 53 deletions(-) delete mode 100644 helpers/convert-old-json-to-yaml.js delete mode 100644 make/build.js diff --git a/helpers/convert-old-json-to-yaml.js b/helpers/convert-old-json-to-yaml.js deleted file mode 100644 index a879916..0000000 --- a/helpers/convert-old-json-to-yaml.js +++ /dev/null @@ -1,29 +0,0 @@ -const fs = require('fs'); -const UAList = require('../src/useragents').useragents; -const json2yaml = require('json2yaml'); -const Parser = require('../lib/parser').default; - -const newBrowserList = {}; - -for (const browserName in UAList) { - const newBrowser = []; - const browserClass = UAList[browserName]; - - for (const browserUA in browserClass) { - const parsedUA = new Parser(browserUA).parse().getResult(); - const newBrowserDeclaration = { - ua: browserUA - }; - // const browserDeclaration = browserClass[browserUA]; - - newBrowserDeclaration.spec = parsedUA; - - newBrowser.push(newBrowserDeclaration); - } - - newBrowserList[browserName] = newBrowser; -} - -const yaml = json2yaml.stringify(newBrowserList); - -fs.writeFileSync('useragentstrings.yml', yaml); diff --git a/make/build.js b/make/build.js deleted file mode 100644 index 89d2f5b..0000000 --- a/make/build.js +++ /dev/null @@ -1,24 +0,0 @@ -require('smoosh').config({ - "JAVASCRIPT": { - "DIST_DIR": "./" - , "bowser": [ - "./src/bowser.js" - ] - } - , "JSHINT_OPTS": { - "boss": true - , "forin": false - , "curly": false - , "debug": false - , "devel": false - , "evil": false - , "regexp": false - , "undef": false - , "sub": true - , "white": false - , "indent": 2 - , "asi": true - , "laxbreak": true - , "laxcomma": true - } -}).run().build().analyze()