ソースを参照

Remove ES6 dependencies from build script

pull/384/head
Dave Machado 6年前
コミット
9698480c88
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: 948D4778D01A7B3F
4個のファイルの変更2252行の追加5行の削除
  1. +0
    -2
      build/build.sh
  2. +3
    -3
      build/md2json.js
  3. +2248
    -0
      json/entries.json
  4. +1
    -0
      json/entries.min.json

+ 0
- 2
build/build.sh ファイルの表示

@@ -6,5 +6,3 @@ mkdir -p ../json
node md2json.js ../README.md > ../json/entries.min.json node md2json.js ../README.md > ../json/entries.min.json
# beautify the previously created JSON file, redirect to /json # beautify the previously created JSON file, redirect to /json
python -m json.tool ../json/entries.min.json > ../json/entries.json python -m json.tool ../json/entries.min.json > ../json/entries.json
# print out pretty JSON (useful for debugging, checking for new entries, etc)
cat ../json/entries.json

+ 3
- 3
build/md2json.js ファイルの表示

@@ -1,6 +1,6 @@
fs = require('fs') fs = require('fs')


function md_trim(str, context = null) {
function md_trim(str, context) {
str = str.replace(/(^\s+)|(\s+$)/g, ""); str = str.replace(/(^\s+)|(\s+$)/g, "");


if (context == 1) { // Name if (context == 1) { // Name
@@ -52,7 +52,7 @@ function handle(filename, anchor) {
break; break;
} }
table_name = line.split(anchor)[1]; table_name = line.split(anchor)[1];
table_name = md_trim(table_name)
table_name = md_trim(table_name, 0)


line = read_line() line = read_line()


@@ -60,7 +60,7 @@ function handle(filename, anchor) {
line = line.split("|") line = line.split("|")
for (var j in line) { for (var j in line) {


line[j] = md_trim(line[j])
line[j] = md_trim(line[j], 0)
if ((j == 0 || j == line.length - 1) && line[j] === "") { if ((j == 0 || j == line.length - 1) && line[j] === "") {


} else { } else {


+ 2248
- 0
json/entries.json
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 1
- 0
json/entries.min.json
ファイル差分が大きすぎるため省略します
ファイルの表示


読み込み中…
キャンセル
保存