- Architecture
- Create a top level
index.ts
file for entry point - Create a top level
deps.ts
file for dependencies and use this file to generate a lock file - Every data object has its own folder
repository
folder for in memory or databasecontroller.ts
for main operationsindex.ts
for exportexport type MyType = ...
- Create a top level
- React lets you compose your UI from many separate, isolated compontents, which makes building and maintenence easier
- Syntax
- Valid JSX must be inside of a single element
- JSX looks like HTML with Javascript in curly braces
- Valid comments are structured as follows:
{/* my comment */}
class
in html becomesclassName
- Use camel case for naming convention, like
onClick
andonChange
- Every tag must be self-closing (
<br />
) or closed (<div> </div>
), but it cannot be left open (<br>
must be<br/>
)
- Valid comments are structured as follows:
- Functions must begin with a capital letter, e.g.,
DemoComponent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import jenkins | |
import logging | |
import os | |
import time | |
logging.basicConfig(level=logging.INFO) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repositories: | |
ament/ament_cmake: | |
type: git | |
url: https://github.com/ament/ament_cmake.git | |
version: master | |
ament/ament_index: | |
type: git | |
url: https://github.com/ament/ament_index.git | |
version: master | |
ament/ament_lint: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Test with deno test | |
import { getRecipesWithIngredients, isIngredientsInRecipe, recipes } from "./index.ts" | |
import { assert, assertEquals } from "https://deno.land/[email protected]/testing/asserts.ts"; | |
Deno.test('getRecipesWithNumbers', () => { | |
{ | |
const results = getRecipesWithIngredients(recipes, [1, 2, 3, 4]); | |
assert(results.length === 0); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repositories: | |
ament/ament_cmake: | |
type: git | |
url: https://github.com/ament/ament_cmake.git | |
version: master | |
ament/ament_index: | |
type: git | |
url: https://github.com/ament/ament_index.git | |
version: master | |
ament/ament_lint: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repositories: | |
ament/ament_cmake: | |
type: git | |
url: https://github.com/ament/ament_cmake.git | |
version: master | |
ament/ament_index: | |
type: git | |
url: https://github.com/ament/ament_index.git | |
version: master | |
ament/ament_lint: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repositories: | |
ament/ament_cmake: | |
type: git | |
url: https://github.com/ament/ament_cmake.git | |
version: master | |
ament/ament_index: | |
type: git | |
url: https://github.com/ament/ament_index.git | |
version: master | |
ament/ament_lint: |