From abf622ffeb55f4e9197afe2d551f62966114ec5e Mon Sep 17 00:00:00 2001 From: kedashoe Date: Sun, 29 Jan 2017 22:18:07 -0800 Subject: [PATCH] search --- Makefile | 8 ++- index.html | 8 +++ package.json | 5 +- scripts/generate | 8 +++ search.js | 8 +++ src/search.js | 125 +++++++++++++++++++++++++++++++++++++++++++++++ style.css | 4 ++ 7 files changed, 163 insertions(+), 3 deletions(-) create mode 100644 search.js create mode 100644 src/search.js diff --git a/Makefile b/Makefile index d2f4d84..64df110 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,12 @@ ESLINT = node_modules/.bin/eslint +BROWSERIFY = node_modules/.bin/browserify +UGLIFY = node_modules/.bin/uglifyjs NPM = npm CUSTOM = $(shell find custom -name '*.md' | sort) VENDOR = ramda sanctuary sanctuary-def sanctuary-type-classes sanctuary-type-identifiers VENDOR_CHECKS = $(patsubst %,check-%-version,$(VENDOR)) -FILES = favicon.png index.html $(patsubst %,vendor/%.js,$(VENDOR)) +FILES = favicon.png index.html search.js $(patsubst %,vendor/%.js,$(VENDOR)) .PHONY: all @@ -22,6 +24,8 @@ vendor/ramda.js: node_modules/ramda/dist/ramda.js vendor/%.js: node_modules/%/index.js cp '$<' '$@' +search.js: src/search.js + $(BROWSERIFY) '$<' | $(UGLIFY) > '$@' .PHONY: $(VENDOR_CHECKS) $(VENDOR_CHECKS): check-%-version: @@ -46,7 +50,7 @@ lint: --config node_modules/sanctuary-style/eslint-es3.json \ --env es3 \ --env browser \ - -- behaviour.js + -- behaviour.js src/search.js make clean make git diff --exit-code diff --git a/index.html b/index.html index 6cbc779..7aca560 100644 --- a/index.html +++ b/index.html @@ -25,6 +25,13 @@

Sanctuary v0.12.0

Refuge from unsafe JavaScript

+
+ +
+
+ +
+