2018-03-26 08:20:12 -05:00
|
|
|
|
|
|
|
import path from 'path';
|
|
|
|
|
2017-03-03 18:39:26 -05:00
|
|
|
const config = {
|
2018-03-26 08:20:12 -05:00
|
|
|
storage: path.join(__dirname, '../store/test-storage'),
|
2017-03-03 18:39:26 -05:00
|
|
|
uplinks: {
|
|
|
|
'npmjs': {
|
2018-06-27 01:52:52 -05:00
|
|
|
'url': 'http://localhost:4873/'
|
2017-03-03 18:39:26 -05:00
|
|
|
}
|
|
|
|
},
|
2017-04-10 15:00:41 -05:00
|
|
|
packages: {
|
2018-01-28 05:38:22 -05:00
|
|
|
'@*/*': {
|
2018-06-27 01:52:52 -05:00
|
|
|
access: '$all',
|
|
|
|
publish: '$all',
|
2018-01-28 05:38:22 -05:00
|
|
|
proxy: 'npmjs'
|
|
|
|
},
|
|
|
|
|
|
|
|
'forbidden-place': {
|
2018-06-27 01:52:52 -05:00
|
|
|
access: 'nobody',
|
|
|
|
publish: '$all'
|
2018-01-28 05:38:22 -05:00
|
|
|
},
|
|
|
|
|
2018-02-19 13:29:14 -05:00
|
|
|
'react': {
|
2018-06-27 01:52:52 -05:00
|
|
|
access: '$all',
|
|
|
|
publish: '$all',
|
|
|
|
proxy: 'npmjs'
|
|
|
|
},
|
|
|
|
|
|
|
|
'corrupted-package': {
|
|
|
|
access: '$all',
|
|
|
|
publish: '$all',
|
2018-02-19 13:29:14 -05:00
|
|
|
proxy: 'npmjs'
|
|
|
|
},
|
|
|
|
|
2018-01-28 05:38:22 -05:00
|
|
|
'jquery': {
|
2018-06-27 01:52:52 -05:00
|
|
|
access: '$all',
|
|
|
|
publish: '$all',
|
2018-01-28 05:38:22 -05:00
|
|
|
proxy: 'npmjs'
|
|
|
|
},
|
2018-04-29 14:50:10 -05:00
|
|
|
'auth-package': {
|
2018-06-27 01:52:52 -05:00
|
|
|
access: '$authenticated',
|
|
|
|
publish: '$authenticated'
|
2018-04-29 14:50:10 -05:00
|
|
|
},
|
|
|
|
'vue': {
|
2018-06-27 01:52:52 -05:00
|
|
|
access: '$authenticated',
|
|
|
|
publish: '$authenticated',
|
2018-04-29 14:50:10 -05:00
|
|
|
proxy: 'npmjs'
|
|
|
|
},
|
2017-04-10 15:00:41 -05:00
|
|
|
'*': {
|
2018-06-27 01:52:52 -05:00
|
|
|
access: '$all',
|
|
|
|
publish: '$all'
|
2017-04-10 15:00:41 -05:00
|
|
|
},
|
|
|
|
},
|
|
|
|
logs: [
|
2018-06-28 01:26:07 -05:00
|
|
|
{type: 'stdout', format: 'pretty', level: 'warn'},
|
2017-04-10 15:00:41 -05:00
|
|
|
],
|
2017-04-19 14:15:28 -05:00
|
|
|
};
|
2017-04-10 15:00:41 -05:00
|
|
|
|
|
|
|
module.exports = config;
|