Final updates to the new template and codebase

This commit is contained in:
Angelos Chalaris
2019-08-19 17:59:08 +03:00
parent 6281883952
commit 136281b8c5
4 changed files with 9 additions and 7 deletions

View File

@ -7,9 +7,9 @@
## PR Type
- [ ] Snippets, Tests & Tags (new snippets, updated snippets, re-tagging of snippets, added/updated tests)
- [ ] Scripts & Website & Meta (anything related to files in the [scripts folder](https://github.com/30-seconds/30-seconds-of-code/tree/master/scripts), how the repository's automated procedures work and the website)
- [ ] Glossary & Secondary Features (anything related to the glossary, such as new or updated terms or other secondary features)
- [ ] General, Typos, Misc. & Meta (everything else, typos, general stuff and meta files in the repository - e.g. the issue template)
- [ ] Tools, Scripts & Automation (anything related to files in the scripts folder, Gatsby, website, Travis CI or Netlify)
- [ ] General, Typos, Misc. & Meta (everything related to content, typos, general stuff and meta files in the repository - e.g. the issue template)
- [ ] Other (please specifiy in the description above)
## Guidelines
- [ ] I have read the guidelines in the [CONTRIBUTING](https://github.com/30-seconds/30-seconds-of-code/blob/master/CONTRIBUTING.md) document.

View File

@ -13,6 +13,7 @@ module.exports = {
pagePath: `src/docs/pages`,
staticPartsPath: `src/static-parts`,
distPath: `dist`,
testPath: `test`,
// General information
language: `js`,
// Module information

View File

@ -9,10 +9,11 @@ const fs = require('fs-extra'),
const childProcess = require('child_process');
const { green, yellow, red } = require('kleur');
const util = require('./util');
const config = require('../config');
// Declare paths
const SNIPPETS_PATH = './snippets';
const SNIPPETS_ARCHIVE_PATH = './snippets_archive';
const TEST_PATH = './test';
const SNIPPETS_PATH = `./${config.snippetPath}`;
const SNIPPETS_ARCHIVE_PATH = `./${config.snippetArchivePath}`;
const TEST_PATH = `./${config.testPath}`;
console.time('Tester');
try {

View File

@ -1,6 +1,6 @@
---
title: functionName
tags: function,utility,helper,beginner
tags: utility,intermediate
---
Explain briefly what the snippet does.