diff --git a/.circleci/config.yml b/.circleci/config.yml index d0d09c2..3118c17 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,9 +11,9 @@ jobs: # Download and cache dependencies - restore_cache: keys: - - v1-dependencies-{{ checksum "package.json" }} - # fallback to using the latest cache if no exact match is found - - v1-dependencies- + - source-v1-{{ .Branch }}-{{ .Revision }} + - source-v1-{{ .Branch }}- + - source-v1- - run: name: Authenticate with NPM @@ -40,9 +40,9 @@ jobs: command: DISPLAY=:99 npm test - save_cache: + key: source-v1-{{ .Branch }}-{{ .Revision }} paths: - - node_modules - key: v1-dependencies-{{ checksum "package.json" }} + - ".git" workflows: version: 2 diff --git a/README.md b/README.md index f7d390f..751c933 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ A collection of form elements. ## Usage ```js const els = require('form-elements') -const html = require('bel') +const html = require('nanohtml') const scratch = { test: '', diff --git a/button-el.js b/button-el.js index 9636c6c..0f5088f 100644 --- a/button-el.js +++ b/button-el.js @@ -1,5 +1,5 @@ const applyOpts = require('./element-helper') -const html = require('bel') +const html = require('nanohtml') const noop = () => {} module.exports = button diff --git a/error-el.js b/error-el.js index 75f940e..fc4e1c5 100644 --- a/error-el.js +++ b/error-el.js @@ -1,4 +1,4 @@ -const html = require('bel') +const html = require('nanohtml') const helpers = require('./element-helper') function ErrorEl (opts) { diff --git a/input-el.js b/input-el.js index 63cced7..7c04638 100644 --- a/input-el.js +++ b/input-el.js @@ -1,4 +1,4 @@ -const html = require('bel') +const html = require('nanohtml') const applyOpts = require('./element-helper') const mergeFuncs = require('./merge-function') diff --git a/label-el.js b/label-el.js index 350e7f4..d84ecf7 100644 --- a/label-el.js +++ b/label-el.js @@ -1,5 +1,5 @@ const applyOpts = require('./element-helper') -const html = require('bel') +const html = require('nanohtml') module.exports = label diff --git a/package.json b/package.json index 827046d..7cf85df 100644 --- a/package.json +++ b/package.json @@ -7,12 +7,12 @@ "test": "standard && npm run dep && node test/ssr-rendering.js && browserify test/*.spec.js | tape-run", "coverage": "npm run test && node test-harness.js", "start": "bankai start standalone.js --debug --no-uglify", - "dep": "dependency-check . && dependency-check . --unused --no-dev -i envify -i yo-yoify -i babelify -i babel-preset-env -i sheetify" + "dep": "dependency-check . && dependency-check . --unused --no-dev -i envify -i babelify -i babel-preset-env -i sheetify" }, "browserify": { "transform": [ "envify", - "yo-yoify", + "nanohtml", "sheetify/transform", "babelify" ] @@ -29,13 +29,12 @@ "dependencies": { "babel-preset-env": "^1.5.2", "babelify": "^7.3.0", - "bel": "^5.1.2", "envify": "^4.0.0", - "sheetify": "^6.1.0", - "yo-yoify": "^4.0.0" + "nanohtml": "^1.2.4", + "sheetify": "^7.3.3" }, "devDependencies": { - "bankai": "^7.6.2", + "bankai": "^9.14.0", "browserify": "^14.3.0", "browserify-istanbul": "github:toddself/browserify-istanbul#strip-base-path", "dependency-check": "^2.9.1", @@ -46,6 +45,6 @@ "standard": "^10.0.2", "tape": "^4.6.3", "tape-istanbul": "^1.1.1", - "tape-run": "^3.0.0" + "tape-run": "^4.0.0" } } diff --git a/standalone.js b/standalone.js index 518be8b..99cf576 100644 --- a/standalone.js +++ b/standalone.js @@ -1,5 +1,5 @@ const choo = require('choo') -const html = require('bel') +const html = require('nanohtml') const els = require('./') const scratch = {