From 136281b8c55b8f34fa4f5e68e6b5d6594c0bcb1d Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Mon, 19 Aug 2019 17:59:08 +0300 Subject: [PATCH] Final updates to the new template and codebase --- .github/PULL_REQUEST_TEMPLATE.md | 6 +++--- config.js | 1 + scripts/tdd.js | 7 ++++--- snippet-template.md | 2 +- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 3d6967438..c25c259de 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -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. diff --git a/config.js b/config.js index 1d041cbcd..c8bcaeefb 100644 --- a/config.js +++ b/config.js @@ -13,6 +13,7 @@ module.exports = { pagePath: `src/docs/pages`, staticPartsPath: `src/static-parts`, distPath: `dist`, + testPath: `test`, // General information language: `js`, // Module information diff --git a/scripts/tdd.js b/scripts/tdd.js index 563a439d1..d06631b74 100644 --- a/scripts/tdd.js +++ b/scripts/tdd.js @@ -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 { diff --git a/snippet-template.md b/snippet-template.md index 71f9525a8..d87a82f49 100644 --- a/snippet-template.md +++ b/snippet-template.md @@ -1,6 +1,6 @@ --- title: functionName -tags: function,utility,helper,beginner +tags: utility,intermediate --- Explain briefly what the snippet does.