Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
"use strict";

const camelCase = require('lodash/camelCase');

const variables = require('./variables');

const {
  desktopOrLarger,
  tabletOrLarger,
  phoneOrLarger,
  desktopOrSmaller,
  tabletOrSmaller,
  phoneOrSmaller,
  vw,
  rem,
  container,
  row,
  font,
  qa
} = require('./functions');

const remapped = {};

function remapKeys(key) {
  const camelKey = camelCase(key);
  remapped[camelKey] = variables[key]; // if required, add kebab as well
  // but this is handled in spread exports
  // remapped[key] = remapped[key]
}

Object.keys(variables).forEach(remapKeys);
module.exports = {
  desktopOrLarger,
  tabletOrLarger,
  phoneOrLarger,
  desktopOrSmaller,
  tabletOrSmaller,
  phoneOrSmaller,
  vw,
  rem,
  container,
  row,
  font,
  qa,
  ...variables,
  // add these new names
  remapped,
  ...remapped
};