Skip to content
Snippets Groups Projects
Commit 1a19f8fd authored by john's avatar john
Browse files

use a common config for dev and production

parent 91b319da
No related branches found
No related tags found
No related merge requests found
const path = require('path')
const editoriaMode = require('../app/authsome_editoria')
const universal = require('./universal')
module.exports = {
'pubsweet-backend': {
......@@ -9,26 +9,13 @@ module.exports = {
API_ENDPOINT: '/api'
},
'pubsweet-frontend': {
theme: 'ThemeEditoria',
theme: universal.theme,
routes: 'app/routes.jsx',
navigation: 'app/components/Navigation/Navigation.jsx'
},
authsome: {
mode: editoriaMode,
teams: {
teamProduction: {
name: 'Production Editor',
permissions: 'all'
},
teamCopyEditor: {
name: 'Copy Editor',
permissions: 'update'
},
teamauthors: {
name: 'Author',
permissions: 'update'
}
}
mode: universal.mode,
teams: universal.teams
},
pubsweet: {
components: ['pubsweet-component-signup', 'pubsweet-component-login']
......
const path = require('path')
const blogmode = require('authsome/src/modes/blog')
const universal = require('./universal')
module.exports = {
'pubsweet-backend': {
......@@ -9,22 +9,13 @@ module.exports = {
API_ENDPOINT: '/api'
},
'pubsweet-frontend': {
theme: 'PepperTheme',
theme: universal.theme,
routes: 'app/routes.jsx',
navigation: 'app/components/Navigation/Navigation.jsx'
},
authsome: {
mode: blogmode,
teams: {
teamContributors: {
name: 'Contributors',
permissions: 'create'
},
teamCoauthors: {
name: 'Coauthors',
permissions: 'update'
}
}
mode: universal.mode,
teams: universal.teams
},
pubsweet: {
components: ['pubsweet-component-signup', 'pubsweet-component-login']
......
const editoriaMode = require('../app/authsome_editoria')
module.exports = {
mode: editoriaMode,
teams: {
teamProduction: {
name: 'Production Editor',
permissions: 'all'
},
teamCopyEditor: {
name: 'Copy Editor',
permissions: 'update'
},
teamauthors: {
name: 'Author',
permissions: 'update'
}
},
theme: 'ThemeEditoria'
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment