[
https://issues.apache.org/jira/browse/CB-11623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15706206#comment-15706206
]
Kyle Kirbatski edited comment on CB-11623 at 11/29/16 7:04 PM:
---------------------------------------------------------------
Sorry for the late reply. I just tested it and it doesn't seem to be working.
The www folder is still being created. Here is the output from the command:
kkirbatski$ cordova create /absolute/path/to/project io.cordova.hellocordova
HelloCordova --verbose --link-to=/absolute/path/to/frontend
Warning: using prerelease version 6.4.1-nightly.2016.11.29.0dad8c6d
([email protected])
Using detached cordova-create
Creating a new cordova project.
Symlinking assets.
index.js does not specify valid sub-directory: /absolute/path/to/frontend
It looks like I now have to specify the --link-to argument to the parent folder
and add the following to that folder as "index.js":
module.exports = {
"dirname": __dirname + "/frontend"
}
Though even when doing that, the original www folder is being created without
symlinking.
was (Author: kkirbatski):
Sorry for the late reply. I just tested it and it doesn't seem to be working.
The www folder is still being created. Here is the output from the command:
kkirbatski$ cordova create /absolute/path/to/project io.cordova.hellocordova
HelloCordova --verbose --link-to=/absolute/path/to/frontend
Warning: using prerelease version 6.4.1-nightly.2016.11.29.0dad8c6d
([email protected])
Using detached cordova-create
Creating a new cordova project.
Symlinking assets.
index.js does not specify valid sub-directory: /absolute/path/to/frontend
It looks like I now have to specify the --link-to argument to the parent folder
and add the following to that folder as "index.js":
module.exports = {
"dirname": __dirname + "/frontend"
}
I'm unsure if this is expected functionality or not, but it's certainly not how
it used to work.
> --link-to no longer seems to be working
> ---------------------------------------
>
> Key: CB-11623
> URL: https://issues.apache.org/jira/browse/CB-11623
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI, CordovaLib
> Affects Versions: 6.3.0
> Environment: Windows 10, Windows Command Prompt
> Reporter: Graham Harper
> Assignee: Steve Gill
> Labels: triaged
>
> We have a build script for installing and building Cordova from source
> control that begins with the line:
> cordova create bin com.example.domain APPNAME --link-to=www
> Where www is our existing app code (html, css, js etc.)
> We've been running this build script on new deployments just fine for 6
> months or so, and its behaviour until this version has been to create a
> simlink in the newly-created 'bin' folder to our existing app in 'www';
> however, as of 6.3.0 this is no longer working. The command creates the bin
> folder, but it only contains the default 'Hello Cordova' application.
> --copy-from still seems to be working (although is marked as deprecated), so
> we can work around this issue, but it's not appropriate for our deployment
> and development process.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]