mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-13 03:35:52 +01:00
3f6eeb4d7d
* increases unit test coverage * remove dead code * update documentation * light refactoring fix #670
54 lines
993 B
JavaScript
54 lines
993 B
JavaScript
|
|
import path from 'path';
|
|
|
|
const config = {
|
|
storage: path.join(__dirname, '../store/test-storage'),
|
|
uplinks: {
|
|
'npmjs': {
|
|
'url': 'https://registry.npmjs.org/'
|
|
}
|
|
},
|
|
packages: {
|
|
'@*/*': {
|
|
allow_access: '$all',
|
|
allow_publish: '$all',
|
|
proxy: 'npmjs'
|
|
},
|
|
|
|
'forbidden-place': {
|
|
allow_access: 'nobody',
|
|
allow_publish: '$all'
|
|
},
|
|
|
|
'react': {
|
|
allow_access: '$all',
|
|
allow_publish: '$all',
|
|
proxy: 'npmjs'
|
|
},
|
|
|
|
'jquery': {
|
|
allow_access: '$all',
|
|
allow_publish: '$all',
|
|
proxy: 'npmjs'
|
|
},
|
|
'auth-package': {
|
|
allow_access: '$authenticated',
|
|
allow_publish: '$authenticated'
|
|
},
|
|
'vue': {
|
|
allow_access: '$authenticated',
|
|
allow_publish: '$authenticated',
|
|
proxy: 'npmjs'
|
|
},
|
|
'*': {
|
|
allow_access: '$all',
|
|
allow_publish: '$all'
|
|
},
|
|
},
|
|
logs: [
|
|
{type: 'stdout', format: 'pretty', level: 'fatal'},
|
|
],
|
|
};
|
|
|
|
module.exports = config;
|