mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
refactor: Move config templates to templates folder
This commit is contained in:
parent
9666f6dd6a
commit
fadbaefce2
@ -25,7 +25,8 @@
|
|||||||
"lsd:importPaths": {
|
"lsd:importPaths": {
|
||||||
"https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^0.0.0/components/": "dist/components/",
|
"https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^0.0.0/components/": "dist/components/",
|
||||||
"https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^0.0.0/config/": "config/",
|
"https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^0.0.0/config/": "config/",
|
||||||
"https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^0.0.0/dist/": "dist/"
|
"https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^0.0.0/dist/": "dist/",
|
||||||
|
"https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^0.0.0/templates/config/": "templates/config/"
|
||||||
},
|
},
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
|
@ -11,7 +11,7 @@ import type { PodGenerator } from './PodGenerator';
|
|||||||
import type { VariableHandler } from './variables/VariableHandler';
|
import type { VariableHandler } from './variables/VariableHandler';
|
||||||
import { isValidVariable, TEMPLATE, TEMPLATE_VARIABLE } from './variables/Variables';
|
import { isValidVariable, TEMPLATE, TEMPLATE_VARIABLE } from './variables/Variables';
|
||||||
|
|
||||||
const DEFAULT_CONFIG_PATH = joinFilePath(__dirname, '../../../config/templates');
|
const DEFAULT_CONFIG_PATH = joinFilePath(__dirname, '../../../templates/config/');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new ResourceStore when creating a pod based on a Components.js configuration.
|
* Creates a new ResourceStore when creating a pod based on a Components.js configuration.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^0.0.0/components/context.jsonld",
|
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^0.0.0/components/context.jsonld",
|
||||||
"import": [
|
"import": [
|
||||||
"files-scs:config/templates/storage-defaults.json"
|
"files-scs:templates/config/defaults.json"
|
||||||
],
|
],
|
||||||
"@graph": [
|
"@graph": [
|
||||||
{
|
{
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^0.0.0/components/context.jsonld",
|
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^0.0.0/components/context.jsonld",
|
||||||
"import": [
|
"import": [
|
||||||
"files-scs:config/templates/storage-defaults.json"
|
"files-scs:templates/config/defaults.json"
|
||||||
],
|
],
|
||||||
"@graph": [
|
"@graph": [
|
||||||
{
|
{
|
@ -13,10 +13,10 @@ const rootFilePath = getTestFolder('dynamicPods');
|
|||||||
const podConfigJson = joinFilePath(rootFilePath, 'config-pod.json');
|
const podConfigJson = joinFilePath(rootFilePath, 'config-pod.json');
|
||||||
|
|
||||||
const configs: [string, any][] = [
|
const configs: [string, any][] = [
|
||||||
[ 'storage-memory.json', {
|
[ 'memory.json', {
|
||||||
teardown: (): void => removeFolder(rootFilePath),
|
teardown: (): void => removeFolder(rootFilePath),
|
||||||
}],
|
}],
|
||||||
[ 'storage-filesystem.json', {
|
[ 'filesystem.json', {
|
||||||
teardown: (): void => removeFolder(rootFilePath),
|
teardown: (): void => removeFolder(rootFilePath),
|
||||||
}],
|
}],
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user