diff --git a/script/list-options-and-languages.coffee b/script/list-options-and-languages.coffee new file mode 100644 index 0000000..e982c18 --- /dev/null +++ b/script/list-options-and-languages.coffee @@ -0,0 +1,31 @@ +jsonStringify = require('json-stable-stringify') +Languages = require('../src/languages') +languages = new Languages().languages +# console.log(languages.length) +_ = require('lodash') +# options = _.chain(languages) +# .map((lang) -> return lang.options or []) +# .flatten() +# .reduce((result, value) -> +# _.merge(result, value) +# return result +# , {}) +# .value() +# console.log(jsonStringify(options, { +# space: 2 +# })) + +langs = _.chain(languages) + .map((lang) -> + return { + name: lang.name, + namespace: lang.namespace, + extensions: lang.extensions or [], + atomGrammars: lang.grammars or [], + sublimeSyntaxes: [] + } + ) + .value() +console.log(jsonStringify(langs, { + space: 2 +}))