v0.5.0
Features
-
Added
newCLI command and Programmatic export (#2): cf9746bUsing the command line, this is now possible on Linux, OSX, and Windows:
# Sequential $ ley new users #=> migrations/00000-users.js $ ley new teams #=> migrations/00001-teams.js # Timestamp $ ley new users --timestamp #=> migrations/1584389617-users.js $ ley new teams --timestamp #=> migrations/1584389631-teams.js # Customize Filename / Extension $ ley new users.ts #=> migrations/#####-users.ts $ ley new create-teams #=> migrations/#####-create-teams.js $ ley new "alter admin users" #=> migrations/#####-alter-admin-users.js # Modify Prefix Length (non-timestamp only) $ ley new users.ts --length 3 #=> migrations/###-users.ts
Patches
- Fix filename sorting for numeric/"natural" sorting: 529b2df
Affects001.jsvs00002.js– was['00002.js', '001.js']now['001.js', '00002.js']