mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-23 22:27:34 -05:00
59 lines
1,004 B
JavaScript
59 lines
1,004 B
JavaScript
|
|
import path from 'path';
|
|
|
|
const config = {
|
|
storage: path.join(__dirname, '../store/test-storage'),
|
|
uplinks: {
|
|
'npmjs': {
|
|
'url': 'http://localhost:4873/'
|
|
}
|
|
},
|
|
packages: {
|
|
'@*/*': {
|
|
access: '$all',
|
|
publish: '$all',
|
|
proxy: 'npmjs'
|
|
},
|
|
|
|
'forbidden-place': {
|
|
access: 'nobody',
|
|
publish: '$all'
|
|
},
|
|
|
|
'react': {
|
|
access: '$all',
|
|
publish: '$all',
|
|
proxy: 'npmjs'
|
|
},
|
|
|
|
'corrupted-package': {
|
|
access: '$all',
|
|
publish: '$all',
|
|
proxy: 'npmjs'
|
|
},
|
|
|
|
'jquery': {
|
|
access: '$all',
|
|
publish: '$all',
|
|
proxy: 'npmjs'
|
|
},
|
|
'auth-package': {
|
|
access: '$authenticated',
|
|
publish: '$authenticated'
|
|
},
|
|
'vue': {
|
|
access: '$authenticated',
|
|
publish: '$authenticated',
|
|
proxy: 'npmjs'
|
|
},
|
|
'*': {
|
|
access: '$all',
|
|
publish: '$all'
|
|
},
|
|
},
|
|
logs: [
|
|
{type: 'stdout', format: 'pretty', level: 'info'},
|
|
],
|
|
};
|
|
|
|
module.exports = config;
|