0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-30 22:34:10 -05:00

add docker-examples to prettier format

include it to the ci paths list
This commit is contained in:
Juan Picado 2021-11-19 19:55:27 +01:00
parent 6822ab9fe2
commit 418bf0d8fa
9 changed files with 17 additions and 16 deletions

View file

@ -10,6 +10,7 @@ on:
- .changeset/** - .changeset/**
- .github/workflows/ci.yml - .github/workflows/ci.yml
- 'packages/**' - 'packages/**'
- 'docker-examples/**'
- 'jest/**' - 'jest/**'
- 'package.json' - 'package.json'
- 'pnpm-workspace.yaml' - 'pnpm-workspace.yaml'

View file

@ -20,7 +20,6 @@ packages/core/local-storage/_storage/**
packages/partials/storage_default_storage/ packages/partials/storage_default_storage/
packages/standalone/dist/bundle.js packages/standalone/dist/bundle.js
docker-examples/v5/reverse_proxy/nginx/relative_path/storage/* docker-examples/v5/reverse_proxy/nginx/relative_path/storage/*
docker-examples/
build/ build/
.vscode/ .vscode/
.github/ .github/

View file

@ -15,6 +15,7 @@ The following examples aim to be demonstrative and can be either improved or upd
This folder aims to create a collection of Docker and Kubernetes examples. This folder aims to create a collection of Docker and Kubernetes examples.
For more information about the **Helm** Chart, please check it [owns repo](https://github.com/verdaccio/charts). For more information about the **Helm** Chart, please check it [owns repo](https://github.com/verdaccio/charts).
### Kubernetes ### Kubernetes
- Kubernetes (minikube) + Verdaccio (Basic Configuration) - Kubernetes (minikube) + Verdaccio (Basic Configuration)

View file

@ -10,7 +10,7 @@ let _localMemory = require('./local-memory');
let _localMemory2 = _interopRequireDefault(_localMemory); let _localMemory2 = _interopRequireDefault(_localMemory);
function _interopRequireDefault(obj) { function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {default: obj}; return obj && obj.__esModule ? obj : { default: obj };
} }
exports.LocalMemory = _localMemory2.default; exports.LocalMemory = _localMemory2.default;

View file

@ -9,7 +9,7 @@ let _memoryHandler = require('./memory-handler');
let _memoryHandler2 = _interopRequireDefault(_memoryHandler); let _memoryHandler2 = _interopRequireDefault(_memoryHandler);
function _interopRequireDefault(obj) { function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {default: obj}; return obj && obj.__esModule ? obj : { default: obj };
} }
const DEFAULT_LIMIT = 1000; const DEFAULT_LIMIT = 1000;
@ -43,8 +43,8 @@ class LocalMemory {
cb(null); cb(null);
} else { } else {
this.logger.info( this.logger.info(
{limit: this.limit}, { limit: this.limit },
'Storage memory has reached limit of @{limit} packages', 'Storage memory has reached limit of @{limit} packages'
); );
cb(new Error('Storage memory has reached limit of limit packages')); cb(new Error('Storage memory has reached limit of limit packages'));
} }

View file

@ -16,7 +16,7 @@ let _memoryFs2 = _interopRequireDefault(_memoryFs);
let _streams = require('@verdaccio/streams'); let _streams = require('@verdaccio/streams');
function _interopRequireDefault(obj) { function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {default: obj}; return obj && obj.__esModule ? obj : { default: obj };
} }
// $FlowFixMe // $FlowFixMe
@ -111,8 +111,8 @@ class MemoryHandler {
const uploadStream = new _streams.UploadTarball(); const uploadStream = new _streams.UploadTarball();
const temporalName = `/${name}`; const temporalName = `/${name}`;
process.nextTick(function() { process.nextTick(function () {
fs.exists(temporalName, function(exists) { fs.exists(temporalName, function (exists) {
if (exists) { if (exists) {
return uploadStream.emit('error', fSError(fileExist)); return uploadStream.emit('error', fSError(fileExist));
} }
@ -122,7 +122,7 @@ class MemoryHandler {
uploadStream.pipe(file); uploadStream.pipe(file);
uploadStream.done = function() { uploadStream.done = function () {
const onEnd = function onEnd() { const onEnd = function onEnd() {
uploadStream.emit('success'); uploadStream.emit('success');
}; };
@ -130,7 +130,7 @@ class MemoryHandler {
uploadStream.on('end', onEnd); uploadStream.on('end', onEnd);
}; };
uploadStream.abort = function() { uploadStream.abort = function () {
uploadStream.emit('error', fSError('transmision aborted', 400)); uploadStream.emit('error', fSError('transmision aborted', 400));
file.end(); file.end();
}; };
@ -150,8 +150,8 @@ class MemoryHandler {
const readTarballStream = new _streams.ReadTarball(); const readTarballStream = new _streams.ReadTarball();
process.nextTick(function() { process.nextTick(function () {
fs.exists(pathName, function(exists) { fs.exists(pathName, function (exists) {
if (!exists) { if (!exists) {
readTarballStream.emit('error', noPackageFoundError()); readTarballStream.emit('error', noPackageFoundError());
} else { } else {
@ -164,7 +164,7 @@ class MemoryHandler {
readTarballStream.emit('error', error); readTarballStream.emit('error', error);
}); });
readTarballStream.abort = function() { readTarballStream.abort = function () {
readStream.destroy(fSError('read has been aborted', 400)); readStream.destroy(fSError('read has been aborted', 400));
}; };
} }