Commit ac142d53 authored by Jure's avatar Jure

chore: move components out of packages dir

parent 759a1311
......@@ -17,7 +17,7 @@ module.exports = api => {
presets: ['@babel/preset-env'],
},
{
test: [/\/packages\/components\/(?!model-)/],
test: [/\/components\/(?!model-)/],
presets: ['@babel/preset-env', '@babel/preset-react'],
plugins: [
'@babel/plugin-proposal-class-properties',
......@@ -25,7 +25,7 @@ module.exports = api => {
],
},
{
test: ['./packages/components/model-*'],
test: ['./components/model-*'],
presets: [['@babel/preset-env', { targets: { node: true } }]],
},
]
......
......@@ -2,10 +2,10 @@
In order to use this component, the following configuration needs to be added to a PubSweet application inside a section named `pubsweet-component-aws-s3`:
* `secretAccessKey`: the `AWS_S3_SECRET_KEY` value from the app's `.env` file
* `accessKeyId`: the `AWS_S3_ACCESS_KEY` value from the app's `.env` file
* `region`: the `AWS_S3_REGION` value from the app's `.env` file
* `bucket`: the `AWS_S3_BUCKET` value from the app's `.env` file
- `secretAccessKey`: the `AWS_S3_SECRET_KEY` value from the app's `.env` file
- `accessKeyId`: the `AWS_S3_ACCESS_KEY` value from the app's `.env` file
- `region`: the `AWS_S3_REGION` value from the app's `.env` file
- `bucket`: the `AWS_S3_BUCKET` value from the app's `.env` file
For example:
......
......@@ -8,7 +8,7 @@
Package layout
* `src/` contains ES6/JSX/SASS sources (pointed to by `main`)
- `src/` contains ES6/JSX/SASS sources (pointed to by `main`)
All modules forming part of the public API of the component should be exported from the index.js. Deep imports are discouraged (e.g. `package-name/some/file`).
......