1
0
mirror of https://github.com/lancedikson/bowser synced 2024-10-27 20:34:22 +00:00

Remove old files

This commit is contained in:
Denis Demchenko 2017-12-22 17:24:38 +02:00
parent ad2589f699
commit 898d8e32dd
2 changed files with 0 additions and 53 deletions

View File

@ -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);

View File

@ -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()