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