raoul2000 / yii2-workflow-view

Display your workflow with no effort
BSD 3-Clause "New" or "Revised" License
16 stars 6 forks source link

incomplete download for the vis.js bower-asset #2

Open jairusmartin opened 7 years ago

jairusmartin commented 7 years ago

Symptom

When attempting to view the workflow in yii2-workflow-manager the following error occurred:

The file or directory to be published does not exist: C:\wamp64\www\migration-basic/vendor\bower/vis/dist

Additional Info

The composer.json has the vis asset included, however, after performing composer update the vendor/bower/vis folder is incomplete. Two major files were not installed:

The following dependency is in the workflow-view composer.json file":

"require" : {
    "php" : ">=5.4.0",
    "yiisoft/yii2" : "*",
    "raoul2000/yii2-workflow" : ">=0.0.18",
    "bower-asset/vis" : "*"
},

The following fails since the asset can't be loaded and no vis/dist folder exists:

WorkflowViewWidget::widget([
    echo raoul2000\workflow\view\WorkflowViewWidget::widget([
    'workflow' => Yii::$app->workflowSource->getWorkflow($model->id),
    'containerId' => 'workflowView'
]);
echo '<div id="workflowView" style="height: 400px;"></div>';

Steps To Reproduce

**execute:** composer global require "fxp/composer-asset-plugin:^1.3.1"
**execute:** cd c:/www
**execute:** composer create-project --prefer-dist yiisoft/yii2-app-basic app
**execute:** cd c:/www/app
**execute:** init, then select '0' for development.
**execute:** composer require cornernote/yii2-workflow-manager "*"

modify frontend config to specify your db and credentials.

**execute:** php yii migrate --migrationPath=@cornernote/workflow/manager/migrations

**Run page:** http://app/workflow/

create a workflow with the builder.

**Run page:** http://app/workflow/default/view?id=YourNewWorkflow
raoul2000 commented 7 years ago

Hi @jairusmartin , sorry but I didn't see this issue before (email notification from github seems to no work as I expected ) I will take a look as soon as possible. ciao

😎