Backbase / bb-cli

Command line tools for working with Backbase CXP.
Other
33 stars 19 forks source link

@backbase/generator-widget causes crash in npm start (bb-serve) #172

Closed amendez-anzen closed 6 years ago

amendez-anzen commented 6 years ago

When using @backbase/generator-widget as dev dependency the cli order bb-serve crashes because for a rare reason it is loading the model.xml inside the directory: _nodemodules/@backbase/generator-widget.

Here it is the content of my package.json

{
  "scripts": {
    "provision-package": "bb-package project -b sass,uglify",
    "statics-package": "bb-package cxp-statics",
    "lint": "bb-test lint 'custom-collection/src/**/*.js'",
    "unit": "cross-env LOG_LEVEL=verbose COLOR=true bb-test unit",
    "test": "npm run lint && npm run unit",
    "prepackage": "bb-package project --exclude-defaults -b sass,uglify --prebuilt=custom-collection/prebuilt,target/collection-retail-banking-theming,target/fe-bb",
    "package": "bb-package cxp-statics package.zip -o cxp-statics.zip",
    "import": "npm run prepackage && bb-import package package.zip",
   "start": "bb-serve project",
    "docs": "jsdoc -c jsdoc.json",
    "docs-with-bug": "bb-doc js ./custom-collection/src -o ./docs",
    "create-widget": "bb-generate widget ng -o custom-collection/src",
    "create-component": "bb-generate ui-ng -o custom-collection/src"
  },
  "devDependencies": {
    "@backbase/eslint-config-backbase": "^2.4.0",
    "@bb-cli/bb-build-plugin-sass": "^1.4.0",
    "@bb-cli/bb-build-plugin-uglify": "^1.0.1",
    "@bb-cli/bb-config": "^2.0.3",
    "@bb-cli/bb-doc": "^2.0.1-pr.15",
    "@bb-cli/bb-generate": "~2.3.0",
    "@bb-cli/bb-import": "^2.2.1",
    "@bb-cli/bb-package": "^2.5.1",
    "@bb-cli/bb-serve": "^2.6.0",
    "@bb-cli/bb-test-plugin-ngmock": "^1.0.1",
    "@bb-cli/generator-ui-bb-component": "0.1.0",
    "@bb-cli/generator-widget": "1.1.5",
    "@bb-cli/generator-widget-bb-ng": "0.1.0",
    "confluence-api": "^1.1.0",
    "cross-env": "^5.1.0",
    "dotenv": "^4.0.0",
    "eslint": "^3.0.1",
    "eslint-plugin-import": "^1.10.3",
    "extract-zip": "^1.6.5",
    "jsdoc": "^3.5.5",
    "karma": "^1.7.1",
    "karma-phantomjs-launcher": "^1.0.4",
    "tui-jsdoc-template": "^1.2.2"
  },
  "dependencies": {
    "angular-ui-carousel": "^0.1.10"
  }
}
amendez-anzen commented 6 years ago

Solved through:

bb-serve project --exclude-defaults