hiqdev / hidev

Automation tool mixed with code generator for easier continuous development
http://hiqdev.com/packages/hidev
BSD 3-Clause "New" or "Revised" License
29 stars 7 forks source link

How to specify symlink in goal.yml #5

Closed jomonkj closed 5 years ago

jomonkj commented 5 years ago

not possible?

hiqsol commented 5 years ago

Possible. Sorry for the long answer. There is no exact aliasing yet. But you can use: before and after features. See: https://github.com/hiqdev/hidev-php/blob/master/src/config/goals.yml#L1

E.g. hidev build runs hidev fix and if it finishes without error then runs hidev test

jomonkj commented 5 years ago

can i do it like

adminApp:
  path: .
  public:
    admin:
      LINK_NAME:
        link: TARGET
hiqsol commented 5 years ago

If I got you right you are asking about using Directory goal to create symlink? Like other files here: https://github.com/hiqdev/hidev-webapp/blob/master/src/config/goals.yml

There is no such function now. But you can add such functionality. It should not be difficult but you'll see how it works inside.

Please see:

I think Symlink component will be needed implementing save() that only creates the symlink.

jomonkj commented 5 years ago

Please look https://github.com/hiqdev/hidev/pull/6