-
Notifications
You must be signed in to change notification settings - Fork 17
Closed
Labels
Description
From @raphinesse on July 5, 2018 9:4
Current situation
Ignoring all special cases discussed in #103, cordovaCreate
w/ enabled link
option will
- symlink folders
www
,merges
andhooks
- symlink the file
config.xml
Pain Points
- The current implementation does not seem to solve any valid use cases
- This is a major impediment to a sane implementation of chore: bump 4.0.0-dev #69. Especially the need for renaming to
.gitingore
in cordova-create (CB-12397 fix .gitignore for plugins & platforms (cordova-create part) #8), is heavily conflicting with the linking feature. - Needs special privileges on Windows since it also links files.
hooks
is deprecated
Proposal
Drop it. 🔥
It seems it was planned to remove --link-to
before apache/cordova-discuss#49 (comment). Support was then removed in apache/cordova-lib#456 and re-added in 79cace5 addressing https://issues.apache.org/jira/browse/CB-11623 which is still open because the current implementation apparently still not satisfies the reporter's requirements. 😒
The reporter's requirements are to create a cordova project with www
linking to some existing web app. This could be easily achieved by running
$ cordova create bin com.example.domain APPNAME
$ rm -r bin/www && ln -sr www bin/www
instead of
$ cordova create bin com.example.domain APPNAME --link-to=www
Evolved from apache/cordova-discuss#89
Copied from original issue: apache/cordova-discuss#104