refactor: Move config templates to templates folder

This commit is contained in:
Joachim Van Herwegen 2021-05-18 10:08:58 +02:00
parent 9666f6dd6a
commit fadbaefce2
6 changed files with 7 additions and 6 deletions

View File

@ -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",

View File

@ -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.

View File

@ -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": [
{ {

View File

@ -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": [
{ {

View File

@ -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),
}], }],
]; ];