diff --git a/CHANGELOG.md b/CHANGELOG.md index c7ec985..225ea24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/cli-kit +## 0.2.2 + +### Patch Changes + +- Update project names + ## 0.2.1 ### Patch Changes diff --git a/package.json b/package.json index 378715a..3509799 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/cli-kit", "type": "module", - "version": "0.2.1", + "version": "0.2.2", "license": "MIT", "types": "./dist/index.d.ts", "packageManager": "pnpm@7.11.0", diff --git a/src/project/index.ts b/src/project/index.ts index a74ef41..5d0d831 100644 --- a/src/project/index.ts +++ b/src/project/index.ts @@ -4,6 +4,9 @@ import { random } from '../utils/index.js'; export function generateProjectName() { const adjective = random(adjectives); const validNouns = nouns.filter(n => n[0] === adjective[0]); - const noun = random(validNouns.length > 0 ? validNouns : nouns); + if (validNouns.length < 2) { + return `${random(adjectives)}-${random(nouns)}`; + } + const noun = random(validNouns); return `${adjective}-${noun}`; } diff --git a/src/project/words.ts b/src/project/words.ts index 7886c0a..e947318 100644 --- a/src/project/words.ts +++ b/src/project/words.ts @@ -1,224 +1,263 @@ export const nouns = [ - 'ablation', - 'accretion', - 'altitude', - 'antimatter', - 'aperture', - 'apogee', - 'ascension', - 'asteroid', - 'atmosphere', - 'aurora', - 'axis', - 'azimuth', - 'bar', - 'belt', - 'binary', - 'chaos', - 'chasm', - 'chroma', - 'cloud', - 'cluster', - 'comet', - 'conjunction', - 'crater', - 'cycle', - 'debris', - 'disk', - 'doppler', - 'dwarf', - 'eclipse', - 'ellipse', - 'ephemera', - 'equator', - 'equinox', - 'escape', - 'event', - 'field', - 'filament', - 'fireball', - 'flare', - 'force', - 'fusion', - 'galaxy', - 'gamma', - 'giant', - 'gravity', - 'group', - 'halo', - 'heliosphere', - 'horizon', - 'hubble', - 'ice', - 'inclination', - 'iron', - 'jet', - 'kelvin', - 'kuiper', - 'light', - 'limb', - 'limit', - 'luminosity', - 'magnitude', - 'main', - 'mass', - 'matter', - 'meridian', - 'metal', - 'meteor', - 'meteorite', - 'moon', - 'motion', - 'nadir', - 'nebula', - 'neutron', - 'nova', - 'orbit', - 'parallax', - 'parsec', - 'phase', - 'photon', - 'planet', - 'plasma', - 'point', - 'pulsar', - 'radiation', - 'remnant', - 'resonance', - 'ring', - 'rotation', - 'satellite', - 'series', - 'shell', - 'shepherd', - 'singularity', - 'solstice', - 'spectrum', - 'sphere', - 'spiral', - 'star', - 'telescope', - 'transit', - 'tower', - 'velocity', - 'virgo', - 'visual', - 'wavelength', - 'wind', - 'zenith', - 'zero', -] + "ablation", + "accretion", + "altitude", + "antimatter", + "aperture", + "apogee", + "ascension", + "asteroid", + "astronaut", + "atmosphere", + "aurora", + "axis", + "azimuth", + "bar", + "belt", + "binary", + "centauri", + "chaos", + "chasm", + "chroma", + "cloud", + "cluster", + "comet", + "conjunction", + "corot", + "crater", + "cycle", + "debris", + "disk", + "doppler", + "dwarf", + "earth", + "eclipse", + "ellipse", + "ephemera", + "equator", + "equinox", + "escape", + "event", + "field", + "filament", + "fireball", + "flare", + "force", + "fusion", + "galaxy", + "gamma", + "giant", + "graham", + "gravity", + "group", + "halo", + "heliosphere", + "horizon", + "houston", + "hubble", + "ice", + "inclination", + "iron", + "jet", + "jupiter", + "kelvin", + "kepler", + "kuiper", + "light", + "limb", + "limit", + "luminosity", + "magnitude", + "main", + "mars", + "mass", + "matter", + "mercury", + "meridian", + "metal", + "meteor", + "meteorite", + "moon", + "motion", + "nadir", + "nebula", + "neptune", + "neutron", + "nova", + "orbit", + "osiris", + "parallax", + "parsec", + "pegasi", + "phase", + "photon", + "planet", + "plasma", + "point", + "proxima", + "pulsar", + "radiation", + "raspberry", + "remnant", + "resonance", + "ring", + "rotation", + "satellite", + "saturn", + "series", + "shell", + "shepherd", + "singularity", + "solstice", + "spectrum", + "sphere", + "spiral", + "star", + "star", + "telescope", + "tower", + "transit", + "trappist", + "velocity", + "venus", + "virgo", + "visual", + "wasp", + "wavelength", + "wind", + "zenith", + "zero", +]; export const adjectives = [ - 'absent', - 'absolute', - 'adorable', - 'afraid', - 'agreeable', - 'apparent', - 'awesome', - 'beneficial', - 'better', - 'bizarre', - 'bustling', - 'callous', - 'capricious', - 'celestial', - 'certain', - 'civil', - 'cosmic', - 'curved', - 'dangerous', - 'dark', - 'deeply', - 'density', - 'dreary', - 'eccentric', - 'ecliptic', - 'electrical', - 'eminent', - 'evolved', - 'exotic', - 'extinct', - 'extra', - 'faithful', - 'far', - 'flaky', - 'former', - 'fumbling', - 'growing', - 'grubby', - 'gullible', - 'helpless', - 'hideous', - 'hilarious', - 'inferior', - 'interstellar', - 'irregular', - 'laughable', - 'lonely', - 'loose', - 'lunar', - 'mad', - 'magical', - 'majestic', - 'major', - 'minor', - 'mixed', - 'molecular', - 'nasty', - 'nebulous', - 'nuclear', - 'opposite', - 'ossified', - 'pale', - 'popular', - 'proper', - 'proto', - 'peaceful', - 'proud', - 'puffy', - 'radiant', - 'receptive', - 'regular', - 'retrograde', - 'second', - 'shaggy', - 'sleepy', - 'shaky', - 'short', - 'smoggy', - 'solar', - 'spiffy', - 'squalid', - 'square', - 'squealing', - 'stale', - 'steadfast', - 'steadfast', - 'stellar', - 'strong', - 'subsequent', - 'super', - 'superior', - 'tasty', - 'tender', - 'terrestrial', - 'tested', - 'tidal', - 'tremendous', - 'ultraviolet', - 'united', - 'useful', - 'useless', - 'utter', - 'verdant', - 'vigorous', - 'violet', - 'visible', - 'wandering', - 'whole', - 'wretched', - 'zany', - 'zapping' + "absent", + "absolute", + "adorable", + "afraid", + "agreeable", + "apparent", + "astronautical", + "awesome", + "beneficial", + "better", + "bizarre", + "blue", + "bustling", + "callous", + "capricious", + "celestial", + "certain", + "civil", + "cosmic", + "curved", + "cyan", + "dangerous", + "dark", + "deeply", + "density", + "digital", + "dimensional", + "dreary", + "eccentric", + "ecliptic", + "electrical", + "eminent", + "evolved", + "exotic", + "extinct", + "extra", + "extraterrestrial", + "faithful", + "far", + "fast", + "flaky", + "former", + "fumbling", + "galactic", + "grateful", + "green", + "growing", + "grubby", + "gullible", + "helpless", + "hilarious", + "intergalactic", + "interstellar", + "irregular", + "lonely", + "lunar", + "mad", + "magenta", + "magical", + "majestic", + "major", + "mechanical", + "minor", + "molecular", + "nasty", + "nebulous", + "nuclear", + "opposite", + "orbital", + "ossified", + "pale", + "peaceful", + "pink", + "planetary", + "popular", + "proper", + "proto", + "proud", + "puffy", + "purple", + "radiant", + "receptive", + "red", + "regular", + "retrograde", + "satellite", + "second", + "shaggy", + "shaky", + "shining", + "short", + "sleepy", + "smoggy", + "solar", + "spiffy", + "squalid", + "square", + "squealing", + "stale", + "starry", + "steadfast", + "stellar", + "strong", + "subsequent", + "super", + "superior", + "tasty", + "teal", + "technological", + "tender", + "terrestrial", + "tested", + "tidal", + "tremendous", + "ultraviolet", + "united", + "useful", + "useless", + "utter", + "verdant", + "vigorous", + "violet", + "virtual", + "visible", + "wandering", + "whole", + "wretched", + "yellow", + "zany", + "zapping", ];