Public
Script
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import { glasses } from "https://esm.town/v/tmcw/glasses";
import { materials } from "https://esm.town/v/tmcw/materials";
import { Recipe } from "https://esm.town/v/tmcw/Recipe";
import { U } from "https://esm.town/v/tmcw/U";
export const recipes = new Map<string, Recipe>([
[
"toronto",
new Recipe(
"Toronto",
"Stir in mixing glass with ice & strain. Garnish with Orange slice.",
glasses.cocktailGlass,
[
materials.canadianWhiskey.ingredient(
new U.CL(5.5),
),
materials.fernetBranca.ingredient(
new U.CL(0.75),
),
materials.sugar.ingredient(
new U.Tsp(0.25),
),
materials.angosturaBitters.ingredient(
new U.Dash(1),
),
materials.orange.ingredient(
new U.Slice(1),
),
],
),
],
[
"french-75",
new Recipe(
"French 75",
"Pour all the ingredients, except Champagne, into a shaker. Shake well and strain into a Champagne flute. Top up with Champagne. Stir gently.",
glasses.champagneFlute,
[
materials.gin.ingredient(
new U.CL(3),
),
materials.simpleSyrup.ingredient(
new U.CL(1.5),
),
materials.lemonJuice.ingredient(
new U.CL(1.5),
),
materials.champagne.ingredient(
new U.CL(6),
),
],
),
],
[
"cuba-libre",
new Recipe(
"Cuba Libre",
"Build all ingredients in a highball glass filled with ice. Garnish with lime wedge.",
glasses.highballGlass,
[
materials.cola.ingredient(
new U.CL(12),
),
materials.whiteRum.ingredient(
new U.CL(5),
),
materials.limeJuice.ingredient(
new U.CL(1),
),
materials.lime.ingredient(
new U.Wedge(1),
),
],
),
],
[
"moscow-mule",
new Recipe(
"Moscow mule",
"Combine vodka and ginger beer in a highball glass filled with ice. Add lime juice. Stir gently. Garnish with a lime slice.",
glasses.copperMug,
[
materials.vodka.ingredient(
new U.CL(4.5),
),
materials.gingerBeer.ingredient(
new U.CL(12),
),
materials.limeJuice.ingredient(
new U.CL(1),
),
materials.lime.ingredient(
new U.Slice(1),
),
],
),
],
[
"mimosa",
new Recipe(
November 16, 2023