diff --git a/Makefile b/Makefile index d6ebe20..c0c267b 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,14 @@ # for saving keystrokes -build: +LIB := ./node_modules + +build: $(LIB) @npm run build + @sed -i "" $$'s/\t/ /' css-doodle.js + @cp css-doodle.js docs/ + +$(LIB): + @npm install docs: @npm run docs diff --git a/css-doodle.js b/css-doodle.js index 2d0403f..a0dff90 100644 --- a/css-doodle.js +++ b/css-doodle.js @@ -1,7 +1,7 @@ (function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? factory() : - typeof define === 'function' && define.amd ? define(factory) : - (factory()); + typeof exports === 'object' && typeof module !== 'undefined' ? factory() : + typeof define === 'function' && define.amd ? define(factory) : + (factory()); }(this, (function () { 'use strict'; const is = { @@ -35,12 +35,12 @@ function odd(x, y, count) { var cond = Object.freeze({ - nth: nth, - at: at, - row: row, - col: col, - even: even, - odd: odd + nth: nth, + at: at, + row: row, + col: col, + even: even, + odd: odd }); function index(x, y, count) { @@ -133,11 +133,11 @@ function remove_unit(str) { var func = Object.freeze({ - index: index, - row: row$1, - col: col$1, - any: any, - rand: rand + index: index, + row: row$1, + col: col$1, + any: any, + rand: rand }); function values(obj) { diff --git a/docs/css-doodle.js b/docs/css-doodle.js index 2d0403f..a0dff90 100644 --- a/docs/css-doodle.js +++ b/docs/css-doodle.js @@ -1,7 +1,7 @@ (function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? factory() : - typeof define === 'function' && define.amd ? define(factory) : - (factory()); + typeof exports === 'object' && typeof module !== 'undefined' ? factory() : + typeof define === 'function' && define.amd ? define(factory) : + (factory()); }(this, (function () { 'use strict'; const is = { @@ -35,12 +35,12 @@ function odd(x, y, count) { var cond = Object.freeze({ - nth: nth, - at: at, - row: row, - col: col, - even: even, - odd: odd + nth: nth, + at: at, + row: row, + col: col, + even: even, + odd: odd }); function index(x, y, count) { @@ -133,11 +133,11 @@ function remove_unit(str) { var func = Object.freeze({ - index: index, - row: row$1, - col: col$1, - any: any, - rand: rand + index: index, + row: row$1, + col: col$1, + any: any, + rand: rand }); function values(obj) {