use src structure for templates

This commit is contained in:
Pierre Noël 2021-09-20 11:34:18 +02:00
parent b3f22bac5d
commit 938673db2f

View File

@ -13,13 +13,15 @@ const allowChildren = '*';
const allowedTemplateContents = { const allowedTemplateContents = {
'README.md': true, 'README.md': true,
'.env.example': true, '.env.example': true,
src: {
api: allowChildren, api: allowChildren,
components: allowChildren, components: allowChildren,
plugins: allowChildren,
},
config: { config: {
functions: allowChildren, functions: allowChildren,
}, },
data: allowChildren, data: allowChildren,
plugins: allowChildren,
public: allowChildren, public: allowChildren,
scripts: allowChildren, scripts: allowChildren,
}; };