Files
30-seconds-of-code/config.js
Angelos Chalaris d7013dd17c Setup snippet schema initial load logic
Use dynamic imports to load all the JSON files specified in config, read data from both sources, output the proper data in the new Snippet type nodes.
2019-09-14 13:14:47 +03:00

30 lines
862 B
JavaScript

module.exports = {
// Project metadata
name: `30 seconds of code`,
description: `Curated collection of useful JavaScript snippets that you can understand in 30 seconds or less.`,
shortName: `30s`,
repositoryUrl: `https://github.com/30-seconds/30-seconds-of-code`,
siteUrl: `https://www.30secondsofcode.org`,
// Path information
snippetPath: `snippets`,
snippetArchivePath: `snippets_archive`,
glossaryPath: `glossary`,
snippetDataPath: `snippet_data`,
assetPath: `assets`,
pagePath: `src/docs/pages`,
staticPartsPath: `src/static-parts`,
distPath: `dist`,
testPath: `test`,
// General information
language: `js`,
// Module information
moduleName: `_30s`,
rollupInputFile: `imports.temp.js`,
testModuleFile: `test/_30s.js`,
// Requirable JSONs
requirables: [
`snippets.json`,
`archivedSnippets.json`
]
};