1) Add support correct generate new files path names
Original files
admin.ts
export class Admin { id: string;}
admin-repository.ts
import { Admin } from './admin';export class AdminRepository { admins: Admin[]; createOneAdmin() { //null } updateOneAdmin() { //null } deleteOneAdmin() { //null } findManyAdmins() { //null }}
Command
npx -y rucken copy-paste --find=admin --replace=my-company --path=./libs/feature
New files:
my-company.ts
export class MyCompany { id: string;}
my-company-repository.ts
import { MyCompany } from './my-company';export class MyCompanyRepository { myCompanies: MyCompany[]; createOneMyCompany() { //null } updateOneMyCompany() { //null } deleteOneMyCompany() { //null } findManyMyCompanies() { //null }}
2) Add support correct replace long text with two or more words, when word for find include in replace options
Original files
new.ts
export class New { id: string;}
new-repository.ts
import { New } from './new';export class NewRepository { news: New[]; createOneNew() { //null } updateOneNew() { //null } deleteOneNew() { //null } findManyNews() { //null }}
Command
npx -y rucken copy-paste --find=new --replace=new-user --path=./libs/feature
New files:
new-user.ts
export class NewUser { id: string;}
new-user-repository.ts
import { NewUser } from './new-user';export class NewUserRepository { newUsers: NewUser[]; createOneNewUser() { //null } updateOneNewUser() { //null } deleteOneNewUser() { //null } findManyNewUsers() { //null }}
Top comments(0)
Subscribe
For further actions, you may consider blocking this person and/orreporting abuse