01 - Preheat oven to 350°F. Line two baking sheets with parchment paper for easy cleanup and to prevent sticking.
02 - In a medium bowl, whisk together flour, cinnamon, ginger, nutmeg, baking soda, baking powder, and salt until evenly distributed.
03 - In a large bowl, beat the softened butter, brown sugar, and granulated sugar together until light and fluffy, approximately 2-3 minutes.
04 - Beat in the egg and vanilla extract until fully incorporated into the butter mixture.
05 - Stir in the grated carrots until evenly distributed throughout the batter.
06 - Gradually add the dry ingredients to the wet mixture, mixing gently until just combined. Avoid overmixing to prevent tough cookies.
07 - Fold in oats, chopped nuts, and raisins if using, distributing evenly throughout the dough.
08 - Drop tablespoon-sized mounds of dough onto the prepared baking sheets, leaving approximately 2 inches of space between each cookie to allow for spreading.
09 - Bake for 11-13 minutes until edges are lightly golden and centers are set. Remove from oven and let cool on the baking sheet for 5 minutes before transferring to a wire rack.
10 - While cookies cool, beat cream cheese and softened butter together until smooth and creamy. Add powdered sugar, vanilla, and salt, then continue beating until fluffy and well combined.
11 - Once cookies have cooled completely, spread or pipe the cream cheese frosting onto each cookie as desired.