Generate spec directory