mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 02:44:55 +00:00
Add rollup to strapi-helper-plugin
This commit is contained in:
parent
1f83ef123e
commit
b68a04d0fc
@ -1,4 +1,5 @@
|
||||
{
|
||||
"plugins": ["@babel/plugin-proposal-class-properties"],
|
||||
"presets": [
|
||||
[
|
||||
"@babel/preset-env",
|
||||
|
||||
1
packages/strapi-helper-plugin/.gitignore
vendored
1
packages/strapi-helper-plugin/.gitignore
vendored
@ -6,6 +6,7 @@ node_modules
|
||||
stats.json
|
||||
package-lock.json
|
||||
yarn.lock
|
||||
yarn-error.log
|
||||
|
||||
# Cruft
|
||||
.DS_Store
|
||||
|
||||
@ -40,7 +40,10 @@ function PluginHeader({
|
||||
<PluginHeaderActions actions={subActions} />
|
||||
</div>
|
||||
<div className="col-lg-3 justify-content">
|
||||
<PluginHeaderActions actions={actions} overrideRendering={overrideRendering} />
|
||||
<PluginHeaderActions
|
||||
actions={actions}
|
||||
overrideRendering={overrideRendering}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// CommonPropTypes
|
||||
// // CommonPropTypes
|
||||
export { default as routerPropTypes } from './commonPropTypes/router/index.js';
|
||||
|
||||
// Components
|
||||
// // Components
|
||||
export { default as BackHeader } from './components/BackHeader';
|
||||
export { default as BlockerComponent } from './components/BlockerComponent';
|
||||
export { default as Button } from './components/Button';
|
||||
|
||||
@ -30,23 +30,28 @@
|
||||
"lint:admin"
|
||||
],
|
||||
"peerDependencies": {
|
||||
"react": "^16.8.6",
|
||||
"react-dom": "^16.8.6",
|
||||
"react-intl": "^2.8.0",
|
||||
"react": "^16.0.0",
|
||||
"react-router": "^5.0.0",
|
||||
"react-dom": "^16.0.0",
|
||||
"react-router-dom": "^5.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.4.3",
|
||||
"@babel/plugin-proposal-class-properties": "^7.4.0",
|
||||
"@babel/preset-env": "^7.4.3",
|
||||
"@babel/preset-react": "^7.0.0",
|
||||
"autoprefixer": "^9.5.1",
|
||||
"chalk": "^2.1.0",
|
||||
"cross-env": "^5.0.5",
|
||||
"enzyme": "^3.8.0",
|
||||
"enzyme-adapter-react-16": "^1.8.0",
|
||||
"enzyme-to-json": "^3.3.5",
|
||||
"express": "^4.15.4",
|
||||
"node-sass": "^4.11.0",
|
||||
"plop": "^2.2.0",
|
||||
"postcss-import": "^12.0.1",
|
||||
"postcss-smart-import": "^0.7.6",
|
||||
"precss": "^4.0.0",
|
||||
"prettier": "^1.5.3",
|
||||
"react-test-renderer": "^16.7.0",
|
||||
"rimraf": "^2.6.1",
|
||||
@ -54,18 +59,27 @@
|
||||
"rollup-plugin-babel": "^4.3.2",
|
||||
"rollup-plugin-commonjs": "^9.3.4",
|
||||
"rollup-plugin-node-resolve": "^4.2.3",
|
||||
"rollup-plugin-postcss": "^2.0.3",
|
||||
"rollup-plugin-sass": "^1.2.2",
|
||||
"rollup-plugin-scss": "^1.0.1",
|
||||
"rollup-plugin-svg": "^1.0.1",
|
||||
"shelljs": "^0.7.8"
|
||||
},
|
||||
"dependencies": {
|
||||
"bootstrap": "^4.0.0-alpha.6",
|
||||
"classnames": "^2.2.5",
|
||||
"immutable": "^4.0.0-rc.12",
|
||||
"imports-loader": "^0.7.1",
|
||||
"invariant": "2.2.1",
|
||||
"json-loader": "^0.5.7",
|
||||
"lodash": "^4.17.5",
|
||||
"moment": "^2.16.0",
|
||||
"react": "^16.8.6",
|
||||
"react-datetime": "^2.15.0",
|
||||
"react-dom": "^16.8.6",
|
||||
"react-intl": "^2.8.0",
|
||||
"react-loadable": "^5.5.0",
|
||||
"react-router-dom": "^5.0.0",
|
||||
"react-router-redux": "^5.0.0-alpha.9",
|
||||
"react-transition-group": "^2.5.0",
|
||||
"reactstrap": "^5.0.0",
|
||||
@ -73,4 +87,4 @@
|
||||
"styled-components": "^3.2.6",
|
||||
"whatwg-fetch": "^2.0.3"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,33 +1,43 @@
|
||||
import babel from 'rollup-plugin-babel';
|
||||
import commonjs from 'rollup-plugin-commonjs';
|
||||
import resolve from 'rollup-plugin-node-resolve';
|
||||
import commonjs from 'rollup-plugin-commonjs';
|
||||
import svg from 'rollup-plugin-svg';
|
||||
import postcss from 'rollup-plugin-postcss';
|
||||
import pkg from './package.json';
|
||||
|
||||
export default {
|
||||
input: 'lib/src/index.js',
|
||||
input: './lib/src/index.js',
|
||||
output: [
|
||||
{
|
||||
exports: 'named',
|
||||
file: pkg.main,
|
||||
format: 'cjs',
|
||||
sourceMap: true,
|
||||
name: 'strapi-helper-plugin',
|
||||
},
|
||||
{
|
||||
exports: 'named',
|
||||
sourceMap: true,
|
||||
file: pkg.module,
|
||||
format: 'es',
|
||||
name: 'strapi-helper-plugin',
|
||||
},
|
||||
],
|
||||
|
||||
plugins: [
|
||||
postcss({
|
||||
modules: true,
|
||||
}),
|
||||
babel({
|
||||
exclude: 'node_modules/**',
|
||||
}),
|
||||
resolve(),
|
||||
commonjs(),
|
||||
svg(),
|
||||
],
|
||||
|
||||
external: [
|
||||
...Object.keys(pkg.dependencies || {}),
|
||||
...Object.keys(pkg.peerDependencies || {}),
|
||||
],
|
||||
plugins: [
|
||||
commonjs(),
|
||||
resolve(),
|
||||
babel({
|
||||
exclude: 'node_modules/**',
|
||||
}),
|
||||
],
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user