mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-13 03:35:52 +01:00
fix: rename variable yaml on source code (#3146)
no logic changes, just rename variables
This commit is contained in:
parent
0d1dd136eb
commit
f9a58dce98
@ -183,7 +183,7 @@
|
|||||||
"title": "Package Managers",
|
"title": "Package Managers",
|
||||||
"description": "This is the configuration details for the registry. Each package manager could have different configuration, expand each section for more details. If the section is disable review your configuration.",
|
"description": "This is the configuration details for the registry. Each package manager could have different configuration, expand each section for more details. If the section is disable review your configuration.",
|
||||||
"yarnclassicDetails": "Yarn classic configuration differs from Yarn 2+ configuration. For more details, please visit [Yarn Classic](https://verdaccio.org/docs/cli-registry#yarn-1x).",
|
"yarnclassicDetails": "Yarn classic configuration differs from Yarn 2+ configuration. For more details, please visit [Yarn Classic](https://verdaccio.org/docs/cli-registry#yarn-1x).",
|
||||||
"yarnBerryDetails": "Yarn Berry does not support the `--registry` flag, instead all configurarion should be defined on the `yarnrc.yalm` file in the root of your project. For more details, please visit [Yarn Berry](https://verdaccio.org/docs/cli-registry#yarn-berry-2x)."
|
"yarnBerryDetails": "Yarn Berry does not support the `--registry` flag, instead all configurarion should be defined on the `yarnrc.yaml` file in the root of your project. For more details, please visit [Yarn Berry](https://verdaccio.org/docs/cli-registry#yarn-berry-2x)."
|
||||||
},
|
},
|
||||||
"language": {
|
"language": {
|
||||||
"title": "Translations",
|
"title": "Translations",
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
const yalm = require('js-yaml');
|
const yaml = require('js-yaml');
|
||||||
const startServer = require('verdaccio').default;
|
const startServer = require('verdaccio').default;
|
||||||
|
|
||||||
const storageLocation = path.join(__dirname, '../partials/storage');
|
const storageLocation = path.join(__dirname, '../partials/storage');
|
||||||
const pluginsLocation = path.join(__dirname, '../partials/plugins');
|
const pluginsLocation = path.join(__dirname, '../partials/plugins');
|
||||||
const configJsonFormat = Object.assign(
|
const configJsonFormat = Object.assign(
|
||||||
{},
|
{},
|
||||||
yalm.safeLoad(fs.readFileSync('./tools/_verdaccio.config.yaml', 'utf8')),
|
yaml.safeLoad(fs.readFileSync('./tools/_verdaccio.config.yaml', 'utf8')),
|
||||||
{
|
{
|
||||||
storage: storageLocation,
|
storage: storageLocation,
|
||||||
plugins: pluginsLocation,
|
plugins: pluginsLocation,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import FriendlyErrorsPlugin from 'friendly-errors-webpack-plugin';
|
import FriendlyErrorsPlugin from 'friendly-errors-webpack-plugin';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import HTMLWebpackPlugin from 'html-webpack-plugin';
|
import HTMLWebpackPlugin from 'html-webpack-plugin';
|
||||||
import yalm from 'js-yaml';
|
import yaml from 'js-yaml';
|
||||||
import StyleLintPlugin from 'stylelint-webpack-plugin';
|
import StyleLintPlugin from 'stylelint-webpack-plugin';
|
||||||
import webpack from 'webpack';
|
import webpack from 'webpack';
|
||||||
|
|
||||||
@ -9,7 +9,7 @@ import env from '../config/env';
|
|||||||
import getPackageJson from './getPackageJson';
|
import getPackageJson from './getPackageJson';
|
||||||
import baseConfig from './webpack.config';
|
import baseConfig from './webpack.config';
|
||||||
|
|
||||||
const configJsonFormat = yalm.safeLoad(fs.readFileSync('./tools/_verdaccio.config.yaml', 'utf8'));
|
const configJsonFormat = yaml.safeLoad(fs.readFileSync('./tools/_verdaccio.config.yaml', 'utf8'));
|
||||||
export default {
|
export default {
|
||||||
...baseConfig,
|
...baseConfig,
|
||||||
mode: 'development',
|
mode: 'development',
|
||||||
|
Loading…
Reference in New Issue
Block a user