feat(curriculum): add project creation tool (#42410)
* refactor: extract help category map as JSON * refactor: extract block names as json * feat: add create-project script * fix: correct case for tsconfig target Co-authored-by: Shaun Hamilton <shauhami020@gmail.com> Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
This commit is contained in:
committed by
GitHub
parent
bd88d9f7ce
commit
bd4d46915a
1
utils/block-nameify.d.ts
vendored
Normal file
1
utils/block-nameify.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare function blockNameify(phrase: string): string;
|
@@ -1,31 +1,4 @@
|
||||
const preFormattedBlockNames = {
|
||||
'api-projects': 'API Projects',
|
||||
'basic-css': 'Basic CSS',
|
||||
'basic-html-and-html5': 'Basic HTML and HTML5',
|
||||
'css-flexbox': 'CSS Flexbox',
|
||||
'css-grid': 'CSS Grid',
|
||||
devops: 'DevOps',
|
||||
es6: 'ES6',
|
||||
'information-security-with-helmetjs': 'Information Security with HelmetJS',
|
||||
jquery: 'jQuery',
|
||||
'json-apis-and-ajax': 'JSON APIs and Ajax',
|
||||
'mongodb-and-mongoose': 'MongoDB and Mongoose',
|
||||
'the-dom': 'The DOM',
|
||||
'apis-and-microservices': 'APIs and Microservices',
|
||||
'apis-and-microservices-projects': 'APIs and Microservices Projects',
|
||||
'scientific-computing-with-python': 'Scientific Computing with Python',
|
||||
'data-analysis-with-python': 'Data Analysis with Python',
|
||||
'machine-learning-with-python': 'Machine Learning with Python',
|
||||
tensorflow: 'TensorFlow',
|
||||
'basic-javascript-rpg-game': 'Basic JavaScript RPG Game',
|
||||
'basic-html-cat-photo-app': 'HTML Cat Photo App',
|
||||
'basic-css-cafe-menu': 'CSS Cafe Menu',
|
||||
'css-variables-skyline': 'CSS Variables Skyline',
|
||||
'javascript-spreadsheet': 'JavaScript Spreadsheet',
|
||||
'intermediate-javascript-calorie-counter':
|
||||
'Intermediate JavaScript Calorie Counter',
|
||||
'd3-dashboard': 'D3 Dashboard'
|
||||
};
|
||||
const preFormattedBlockNames = require('./preformatted-block-names.json');
|
||||
|
||||
const noFormatting = ['and', 'for', 'of', 'the', 'up', 'with'];
|
||||
|
||||
|
27
utils/preformatted-block-names.json
Normal file
27
utils/preformatted-block-names.json
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"api-projects": "API Projects",
|
||||
"basic-css": "Basic CSS",
|
||||
"basic-html-and-html5": "Basic HTML and HTML5",
|
||||
"css-flexbox": "CSS Flexbox",
|
||||
"css-grid": "CSS Grid",
|
||||
"devops": "DevOps",
|
||||
"es6": "ES6",
|
||||
"information-security-with-helmetjs": "Information Security with HelmetJS",
|
||||
"jquery": "jQuery",
|
||||
"json-apis-and-ajax": "JSON APIs and Ajax",
|
||||
"mongodb-and-mongoose": "MongoDB and Mongoose",
|
||||
"the-dom": "The DOM",
|
||||
"apis-and-microservices": "APIs and Microservices",
|
||||
"apis-and-microservices-projects": "APIs and Microservices Projects",
|
||||
"scientific-computing-with-python": "Scientific Computing with Python",
|
||||
"data-analysis-with-python": "Data Analysis with Python",
|
||||
"machine-learning-with-python": "Machine Learning with Python",
|
||||
"tensorflow": "TensorFlow",
|
||||
"basic-javascript-rpg-game": "Basic JavaScript RPG Game",
|
||||
"basic-html-cat-photo-app": "HTML Cat Photo App",
|
||||
"basic-css-cafe-menu": "CSS Cafe Menu",
|
||||
"css-variables-skyline": "CSS Variables Skyline",
|
||||
"javascript-spreadsheet": "JavaScript Spreadsheet",
|
||||
"intermediate-javascript-calorie-counter": "Intermediate JavaScript Calorie Counter",
|
||||
"d3-dashboard": "D3 Dashboard"
|
||||
}
|
Reference in New Issue
Block a user