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