Over high heat, bring a large pot of salted water to a boil. Add the broccoli and place the lid back on top, continue to cook for 4 minutes. Then using tongs or a slotted spoon, move broccoli to a large food processor or blender.
If making pasta, return water to a boil and cook pasta according to box instructions. Before draining, be sure to reserve 1 1/2 cups of pasta water, this will help the pesto to coat the pasta noodles--add only as much water as needed.
To the food processor, add the basil, garlic, pine nuts, olive oil, lemon juice, salt, parmesan, and red pepper flakes. Blend until smooth. Use as a dip, on toast, or for pasta, and enjoy!