diff --git a/Makefile b/Makefile deleted file mode 100644 index c8e1dd5..0000000 --- a/Makefile +++ /dev/null @@ -1,24 +0,0 @@ -BIN = ./node_modules/.bin -SRC = $(wildcard src/* src/*/*) -TEST = $(wildcard test/* test/*/*) - -build: index.js - -index.js: src/index.js $(SRC) - $(BIN)/rollup $< -c > $@ - -test.js: test/index.js $(TEST) - $(BIN)/rollup $< -c > $@ - -test: test-node test-browser - -test-node: test.js index.js - node $< - -test-browser: test.js index.js - $(BIN)/browserify $< --debug | $(BIN)/tape-run - -clean: - rm -rf index.js test.js - -.PHONY: build clean test test-node test-browser diff --git a/package.json b/package.json index f0eb709..66aede9 100644 --- a/package.json +++ b/package.json @@ -10,29 +10,36 @@ "main": "index.js", "scripts": { "lint": "eslint src/ test/", - "build": "make clean && make", - "test": "make test", + "clean": "shx rm -rf index.js test.js", + "build": "npm-run-all clean build-lib", + "build-lib": "rollup src/index.js -c > index.js", + "build-test": "rollup test/index.js -c > test.js", + "test": "npm-run-all build-test test-node test-browser", + "test-node": "node test.js", + "test-browser": "browserify test.js --debug | tape-run", "prepublish": "npm run build", "autorelease": "autorelease pre && npm publish && autorelease post" }, "dependencies": { "immutable": "^3.8.1", - "lodash": "^4.8.2" + "lodash.topath": "^4.5.2" }, "devDependencies": { "autorelease": "^1.6.0", "autorelease-github": "^1.1.1", "autorelease-travis": "^1.2.1", - "babel-eslint": "^6.0.2", + "babel-eslint": "^7.2.1", "babel-plugin-transform-object-rest-spread": "^6.6.5", - "babel-preset-es2015-rollup": "^1.1.1", - "browserify": "^13.0.0", + "babel-preset-es2015-rollup": "^3.0.0", + "browserify": "^14.1.0", "eslint": "^3.0.0", - "rollup": "^0.34.0", + "npm-run-all": "^4.0.2", + "rollup": "^0.41.6", "rollup-plugin-babel": "^2.4.0", "rollup-plugin-json": "^2.0.0", + "shx": "^0.2.2", "tape": "^4.5.1", - "tape-run": "^2.1.3", + "tape-run": "^3.0.0", "uglify-js": "^2.6.2" }, "keywords": [], diff --git a/src/blueprint.js b/src/blueprint.js index 8002f08..93dc888 100644 --- a/src/blueprint.js +++ b/src/blueprint.js @@ -1,5 +1,5 @@ import { Record } from "immutable"; -import { toPath } from "lodash"; +import toPath from "lodash.topath"; import Schema from "./schema"; import Field from "./field";