From 105e6533e1cd3d86322238c6c08361fd5a6c12b4 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Mon, 16 Sep 2019 09:32:58 -0400 Subject: [PATCH] Tooling is now portable and the linter passes --- .gitignore | 3 ++- assets/grid.js | 4 ++-- build.js | 5 +++-- package.json | 6 +++--- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 28f1ba75..f854f3fb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules -.DS_Store \ No newline at end of file +.DS_Store +package-lock.json diff --git a/assets/grid.js b/assets/grid.js index 0bede361..396a6600 100644 --- a/assets/grid.js +++ b/assets/grid.js @@ -7,11 +7,11 @@ $.getJSON('assets/data.json', function (data) { var img = $('', { 'class': 'hex', 'src': val.raster, - 'alt': val.description, + 'alt': val.description }) $('', { - 'href': "http://hexb.in/" + val.filename, + 'href': 'http://hexb.in/' + val.filename, 'target': '_blank' }).append(img).appendTo('#grid') }) diff --git a/build.js b/build.js index 5c04bd6c..5f71e7b0 100644 --- a/build.js +++ b/build.js @@ -10,6 +10,7 @@ glob('meta/*.json', function (err, files) { file.filename = f data.push(file) }) - + fs.writeFileSync(__dirname + '/assets/data.json', JSON.stringify(data, null, ' ')) -}) \ No newline at end of file +}) + diff --git a/package.json b/package.json index 32d6df16..77b9c54b 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,9 @@ "description": "hexagon directory", "main": "grid.js", "scripts": { - "build": "node build.js && browserify assets/grid.js -o assets/bundle.js", - "test": "standard", - "start": "wzrd assets/grid.js:assets/bundle.js" + "build": "node build.js && ./node_modules/.bin/browserify assets/grid.js -o assets/bundle.js", + "test": "./node_modules/.bin/standard", + "start": "./node_module/.bin/wzrd assets/grid.js:assets/bundle.js" }, "author": "max ogden", "license": "BSD",