feat: provide usable UMD builds for all packages (#2141)

This commit is contained in:
Tony Alves
2019-03-16 15:44:29 -07:00
committed by Shawn Erquhart
parent 1d935c704d
commit 82cc7941cc
89 changed files with 1025 additions and 712 deletions

View File

@ -0,0 +1,36 @@
{
"name": "netlify-cms-default-exports",
"version": "2.0.1",
"description": "NetlifyCMS default exports",
"repository": "https://github.com/netlify/netlify-cms/tree/master/packages/netlify-cms-default-exports",
"bugs": "https://github.com/netlify/netlify-cms/issues",
"main": "dist/netlify-cms-editor-component-image.js",
"license": "MIT",
"keywords": [
"netlify",
"netlify-cms",
"editor",
"component"
],
"sideEffects": false,
"scripts": {
"watch": "webpack -w",
"develop": "npm run watch",
"build": "cross-env NODE_ENV=production webpack",
"build:dev": "cross-env NODE_ENV=development webpack"
},
"dependencies": {
"@emotion/core": "^10.0.9",
"@emotion/styled": "^10.0.9",
"immutable": "^3.7.6",
"lodash": "^4.17.11",
"moment": "^2.24.0",
"prop-types": "^15.7.2",
"react-immutable-proptypes": "^2.1.0",
"uuid": "^3.3.2"
},
"peerDependencies": {
"react": "^16.8.4",
"react-dom": "^16.8.4"
}
}

View File

@ -0,0 +1,54 @@
import css from '@emotion/css';
import {
withEmotionCache,
CacheProvider,
ThemeContext,
jsx,
Global,
keyframes,
ClassNames,
} from '@emotion/core';
import EmotionStyled from '@emotion/styled';
import Immutable from 'immutable';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Lodash from 'lodash/lodash';
import Moment from 'moment';
import PropTypes from 'prop-types';
import React from 'react';
import ReactDOM from 'react-dom';
import * as UUId from 'uuid';
const EmotionCore = {
css,
withEmotionCache,
CacheProvider,
ThemeContext,
jsx,
Global,
keyframes,
ClassNames,
};
export const NetlifyCmsDefaultExports = {
EmotionCore,
EmotionStyled,
Immutable,
ImmutablePropTypes,
Lodash,
Moment,
PropTypes,
React,
ReactDOM,
UUId,
};
export {
EmotionCore,
EmotionStyled,
Immutable,
ImmutablePropTypes,
Lodash,
Moment,
PropTypes,
React,
ReactDOM,
UUId,
};

View File

@ -0,0 +1,3 @@
const { getConfig } = require('../../scripts/webpack.js');
module.exports = getConfig();