mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
Rewrite of Day 1 to use modern React (#294)
* update to hooks * more class to function * cleanup * finish ts final * update html lesson * add lessons page * clean up * move getters into context * adding type * fix bug * step 5 cleanup * init final pass * text tweak * fix ternaries * readme cleanup * fixed root readme
This commit is contained in:
@@ -15,7 +15,7 @@ function isValidLessonFolder(folder) {
|
||||
|
||||
function* getEntryPoint(step) {
|
||||
if (isValidLessonFolder(step)) {
|
||||
for (let prefix of ['', 'demo/', 'exercise/', 'final/']) {
|
||||
for (let prefix of ['', 'demo/', 'exercise/', 'final/', 'lesson/']) {
|
||||
for (let suffix of ['.js', '.jsx', '.ts', '.tsx']) {
|
||||
const entryRequest = `./${step}/${prefix}src/index${suffix}`;
|
||||
if (fs.existsSync(entryRequest)) {
|
||||
|
||||
Reference in New Issue
Block a user