diff --git a/Makefile b/Makefile index 455da1a..3779316 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,7 @@ -# based on https://gist.github.com/passcod/4b382bc836456b77249b -# -# befofe hitting 'make' you should have a shell with emconfigure and emcc. -# install emscripten and follow instructions here: -# https://kripken.github.io/emscripten-site/docs/tools_reference/emsdk.html -# basically you must call (on bash): -# ~/emsdk-portable/emsdk update -# ~/emsdk-portable/emsdk install latest -# ~/emsdk-portable/emsdk activate latest -# source ~/emsdk-portable/emsdk_env.sh - all: jq.js jq.wasm clean: - rm -f jq jq.* + rm -fr jq jq.* jq/configure: git submodule update --init @@ -34,15 +23,3 @@ jq/jq.wasm: jq/jq jq.wasm: jq/jq jq/jq.wasm cp -f jq/jq.wasm . - -@PHONY: -test: jq.js node_modules/.bin/tape - node test.js - -node_modules/.bin/tape: node_modules - -node_modules/.bin/uglifyjs: node_modules - -@PHONY: -node_modules: - npm install diff --git a/package.json b/package.json index 181dff0..eeb4d33 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "jq-web", - "version": "0.5.1", + "version": "0.6.0", "description": "a hack that makes jq run in the browser with emscripten.", - "main": "jq.asm.bundle.min.js", + "main": "jq.js", "scripts": { "test": "make test" }, @@ -24,8 +24,8 @@ }, "homepage": "https://github.com/fiatjaf/jq-web#readme", "devDependencies": { + "esbuild": "^0.24.0", "tape": "^4.9.1", - "uglify-es": "^3.3.9", - "live-server": "^1.2.0" + "uglify-es": "^3.3.9" } }