Skip to content

Commit

Permalink
chore: Migrate to ferrum
Browse files Browse the repository at this point in the history
BREAKING CHANGE
  • Loading branch information
koraa committed Jul 8, 2019
1 parent cd6595b commit d8e97e0
Show file tree
Hide file tree
Showing 15 changed files with 1,464 additions and 3,672 deletions.
1,604 changes: 1,455 additions & 149 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"homepage": "https://github.com/adobe/helix-shared#readme",
"dependencies": {
"ajv": "6.10.1",
"ferrum": "^1.1.1",
"fs-extra": "^8.0.0",
"lodash": "^4.17.11",
"object-hash": "^1.3.1",
Expand Down
5 changes: 3 additions & 2 deletions src/HelixConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
const fs = require('fs-extra');
const path = require('path');
const YAML = require('yaml');
const {
concat, uniq, foldl, pipe,
} = require('ferrum');
const Strain = require('./Strain.js');
const Strains = require('./Strains.js');
const ConfigValidator = require('./ConfigValidator.js');
const { concat, uniq, foldl } = require('./sequence.js');
const { pipe } = require('./functional.js');


const HELIX_CONFIG = 'helix-config.yaml';
Expand Down
12 changes: 3 additions & 9 deletions src/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,9 @@
/* eslint-disable no-continue */
const assert = require('assert');
const {
withFunctionName, exec, pipe, identity,
} = require('./functional');
const {
Deepclone, deepclone, Equals, type,
} = require('./types');
const {
each, enumerate, reverse, takeUntilVal, extend1,
uniq, mapSort, join, map, all,
} = require('./sequence.js');
withFunctionName, exec, pipe, identity, Deepclone, deepclone, Equals, type,
each, enumerate, reverse, takeUntilVal, extend1, uniq, mapSort, join, map, all,
} = require('ferrum');

/** Check whether the given type is the type of a dom node. Note that, in
* order to support various dom implementations, this function uses a heuristic
Expand Down
128 changes: 0 additions & 128 deletions src/functional.js

This file was deleted.

8 changes: 0 additions & 8 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ const HelixConfig = require('./HelixConfig.js');
const Strain = require('./Strain.js');
const Logger = require('./Logger.js');
const utils = require('./utils.js');
const sequence = require('./sequence.js');
const functional = require('./functional.js');
const op = require('./op.js');
const types = require('./types.js');
const string = require('./string.js');
const dom = require('./dom.js');

Expand All @@ -26,10 +22,6 @@ module.exports = {
HelixConfig,
Strain,
Logger,
functional,
op,
types,
sequence,
string,
dom,
utils,
Expand Down
66 changes: 0 additions & 66 deletions src/op.js

This file was deleted.

Loading

0 comments on commit d8e97e0

Please sign in to comment.