Code Monkey home page Code Monkey logo

cli's Issues

issue while creating Vue app via cli

$ unite configure --packageName=abc --profile=VueJavaScript --unitTestRunner="None" --e2eTestRunner="None" --documenter="None" --title="sample app"

For the above command i am getting following response.
`UniteJS CLI
Engine v1.7.11

command: configure
profile: VueJavaScript
packageName: abc
sourceLanguage: JavaScript
moduleType: CommonJs
bundler: Webpack
ERROR: unitTestFramework is not valid if unitTestRunner is None`

not generating the application

Syntax error running any command

I am getting an error anytime I try to invoke the cli.

$ unite help
/usr/local/lib/node_modules/unitejs-cli/node_modules/unitejs-framework/dist/loggers/defaultLogger.js:7
    static log(message, ...args) {
                        ^^^

SyntaxError: Unexpected token ...
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:374:25)
    at Object.Module._extensions..js (module.js:405:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/unitejs-cli/node_modules/unitejs-cli-core/dist/cliBase.js:11:25)
    at Module._compile (module.js:398:26)
    at Object.Module._extensions..js (module.js:405:10)

I installed using sudo npm install -g unitejs-cli

ERROR: Loading dependencies failed util.promisify is not a function

While running on ubuntu 16.04
$ sudo npm install -g unitejs-cli

I got,

/usr/bin/unite -> /usr/lib/node_modules/unitejs-cli/bin/unite.js
/usr/lib
`-- [email protected]
  +-- UNMET PEER DEPENDENCY @angular/common@^4.4.4
  +-- UNMET PEER DEPENDENCY @angular/compiler@^4.4.4
  +-- UNMET PEER DEPENDENCY @angular/core@^4.4.4
  +-- UNMET PEER DEPENDENCY @angular/forms@^4.4.4
  +-- UNMET PEER DEPENDENCY @angular/http@^4.4.4
  +-- UNMET PEER DEPENDENCY @angular/platform-browser@^4.4.4
  +-- UNMET PEER DEPENDENCY @angular/platform-browser-dynamic@^4.4.4
  +-- UNMET PEER DEPENDENCY @angular/router@^4.4.4
  +-- UNMET PEER DEPENDENCY @types/chai@^4.0.4
  +-- UNMET PEER DEPENDENCY @types/jasmine@^2.6.0
  +-- UNMET PEER DEPENDENCY @types/mocha@^2.2.43
  +-- UNMET PEER DEPENDENCY @types/react@^16.0.9
  +-- UNMET PEER DEPENDENCY @types/react-dom@^16.0.0
  +-- UNMET PEER DEPENDENCY @types/react-router-dom@^4.0.8
  +-- UNMET PEER DEPENDENCY @types/systemjs@^0.20.5
  +-- UNMET PEER DEPENDENCY @types/webdriverio@^4.8.6
  +-- UNMET PEER DEPENDENCY allure-commandline@^2.3.5
  +-- UNMET PEER DEPENDENCY archiver@^2.0.3
  +-- UNMET PEER DEPENDENCY aurelia-animator-css@^1.0.3
  +-- UNMET PEER DEPENDENCY aurelia-binding@^1.3.0
  +-- UNMET PEER DEPENDENCY aurelia-bootstrapper@^2.1.1
  +-- UNMET PEER DEPENDENCY aurelia-dependency-injection@^1.3.2
  +-- UNMET PEER DEPENDENCY aurelia-dialog@^1.0.0-rc.1.0.3
  +-- UNMET PEER DEPENDENCY aurelia-event-aggregator@^1.0.1
  +-- UNMET PEER DEPENDENCY aurelia-fetch-client@^1.1.3
  +-- UNMET PEER DEPENDENCY aurelia-framework@^1.1.5
  +-- UNMET PEER DEPENDENCY aurelia-history@^1.1.0
  +-- UNMET PEER DEPENDENCY aurelia-history-browser@^1.1.0
  +-- UNMET PEER DEPENDENCY aurelia-http-client@^1.2.0
  +-- UNMET PEER DEPENDENCY aurelia-loader@^1.0.0
  +-- UNMET PEER DEPENDENCY aurelia-loader-default@^1.0.3
  +-- UNMET PEER DEPENDENCY aurelia-logging@^1.3.1
  +-- UNMET PEER DEPENDENCY aurelia-logging-console@^1.0.0
  +-- UNMET PEER DEPENDENCY aurelia-metadata@^1.0.3
  +-- UNMET PEER DEPENDENCY aurelia-pal@^1.4.0
  +-- UNMET PEER DEPENDENCY aurelia-pal-browser@^1.3.0
  +-- UNMET PEER DEPENDENCY aurelia-path@^1.1.1
  +-- UNMET PEER DEPENDENCY aurelia-polyfills@^1.2.2
  +-- UNMET PEER DEPENDENCY [email protected]
  +-- UNMET PEER DEPENDENCY aurelia-route-recognizer@^1.1.1
  +-- UNMET PEER DEPENDENCY aurelia-router@^1.4.0
  +-- UNMET PEER DEPENDENCY aurelia-task-queue@^1.2.1
  +-- UNMET PEER DEPENDENCY aurelia-templating@^1.5.0
  +-- UNMET PEER DEPENDENCY aurelia-templating-binding@^1.4.0
  +-- UNMET PEER DEPENDENCY aurelia-templating-resources@^1.5.1
  +-- UNMET PEER DEPENDENCY aurelia-templating-router@^1.2.0
  +-- UNMET PEER DEPENDENCY aurelia-validation@^1.1.2
  +-- UNMET PEER DEPENDENCY autoprefixer@^7.1.4
  +-- UNMET PEER DEPENDENCY babel-core@^6.26.0
  +-- UNMET PEER DEPENDENCY babel-eslint@^8.0.1
  +-- UNMET PEER DEPENDENCY babel-plugin-transform-class-properties@^6.24.1
  +-- UNMET PEER DEPENDENCY babel-plugin-transform-decorators@^6.24.1
  +-- UNMET PEER DEPENDENCY babel-plugin-transform-decorators-legacy@^1.3.4
  +-- UNMET PEER DEPENDENCY babel-preset-env@^1.6.0
  +-- UNMET PEER DEPENDENCY babel-preset-react@^6.24.1
  +-- UNMET PEER DEPENDENCY bluebird@^3.5.0
  +-- UNMET PEER DEPENDENCY browser-sync@^2.18.13
  +-- UNMET PEER DEPENDENCY browserify@^14.4.0
  +-- UNMET PEER DEPENDENCY browserify-css@^0.12.0
  +-- UNMET PEER DEPENDENCY chai@^4.1.2
  +-- UNMET PEER DEPENDENCY core-js@^2.5.1
  +-- UNMET PEER DEPENDENCY css-loader@^0.28.7
  +-- UNMET PEER DEPENDENCY cssnano@^3.10.0
  +-- UNMET PEER DEPENDENCY del@^3.0.0
  +-- UNMET PEER DEPENDENCY delete-empty@^1.0.1
  +-- UNMET PEER DEPENDENCY electron-packager@^9.1.0
  +-- UNMET PEER DEPENDENCY es6-shim@^0.35.3
  +-- UNMET PEER DEPENDENCY eslint@^4.8.0
  +-- UNMET PEER DEPENDENCY eslint-plugin-react@^7.4.0
  +-- UNMET PEER DEPENDENCY eslint-plugin-webdriverio@^1.0.1
  +-- UNMET PEER DEPENDENCY gulp@^3.9.1
  +-- UNMET PEER DEPENDENCY gulp-babel@^7.0.0
  +-- UNMET PEER DEPENDENCY gulp-concat@^2.6.1
  +-- UNMET PEER DEPENDENCY gulp-cssnano@^2.1.2
  +-- UNMET PEER DEPENDENCY gulp-eslint@^4.0.0
  +-- UNMET PEER DEPENDENCY gulp-htmlmin@^3.0.0
  +-- UNMET PEER DEPENDENCY gulp-inline-ng2-template@^4.0.0
  +-- UNMET PEER DEPENDENCY gulp-insert@^0.5.0
  +-- UNMET PEER DEPENDENCY gulp-karma-runner@^1.2.0
  +-- UNMET PEER DEPENDENCY gulp-less@^3.3.2
  +-- UNMET PEER DEPENDENCY gulp-mocha@^4.3.1
  +-- UNMET PEER DEPENDENCY gulp-postcss@^7.0.0
  +-- UNMET PEER DEPENDENCY gulp-rename@^1.2.2
  +-- UNMET PEER DEPENDENCY gulp-replace@^0.6.1
  +-- UNMET PEER DEPENDENCY gulp-sass@^3.1.0
  +-- UNMET PEER DEPENDENCY gulp-sourcemaps@^2.6.1
  +-- UNMET PEER DEPENDENCY gulp-stylus@^2.6.0
  +-- UNMET PEER DEPENDENCY gulp-tslint@^8.1.2
  +-- UNMET PEER DEPENDENCY gulp-typescript@^3.2.2
  +-- UNMET PEER DEPENDENCY gulp-uglify@^3.0.0
  +-- UNMET PEER DEPENDENCY gulp-util@^3.0.8
  +-- UNMET PEER DEPENDENCY gulp-webdriver@^2.0.3
  +-- UNMET PEER DEPENDENCY html-minifier@^3.5.5
  +-- UNMET PEER DEPENDENCY jasmine-core@^2.8.0
  +-- UNMET PEER DEPENDENCY jasmine-spec-reporter@^4.2.1
  +-- UNMET PEER DEPENDENCY jest@^21.2.1
  +-- UNMET PEER DEPENDENCY jsdom@^11.3.0
  +-- UNMET PEER DEPENDENCY karma@^1.7.1
  +-- UNMET PEER DEPENDENCY karma-chai@^0.1.0
  +-- UNMET PEER DEPENDENCY karma-chrome-launcher@^2.2.0
  +-- UNMET PEER DEPENDENCY karma-coverage@^1.1.1
  +-- UNMET PEER DEPENDENCY karma-coverage-allsources@^0.0.4
  +-- UNMET PEER DEPENDENCY karma-firefox-launcher@^1.0.1
  +-- UNMET PEER DEPENDENCY karma-html-reporter@^0.2.7
  +-- UNMET PEER DEPENDENCY karma-ie-launcher@^1.0.0
  +-- UNMET PEER DEPENDENCY karma-jasmine@^1.1.0
  +-- UNMET PEER DEPENDENCY karma-jsdom-launcher@^6.1.2
  +-- UNMET PEER DEPENDENCY karma-mocha@^1.3.0
  +-- UNMET PEER DEPENDENCY karma-phantomjs-launcher@^1.0.4
  +-- UNMET PEER DEPENDENCY karma-remap-istanbul@^0.6.0
  +-- UNMET PEER DEPENDENCY karma-safari-launcher@^1.0.0
  +-- UNMET PEER DEPENDENCY karma-sourcemap-loader@^0.3.7
  +-- UNMET PEER DEPENDENCY karma-story-reporter@^0.3.1
  +-- UNMET PEER DEPENDENCY less@^2.7.2
  +-- UNMET PEER DEPENDENCY minimist@^1.2.0
  +-- UNMET PEER DEPENDENCY mkdirp@^0.5.1
  +-- UNMET PEER DEPENDENCY mocha@^3.5.3
  +-- UNMET PEER DEPENDENCY mochawesome-screenshots@^1.5.3
  +-- UNMET PEER DEPENDENCY node-glob@^1.2.0
  +-- UNMET PEER DEPENDENCY node-sass@^4.5.3
  +-- UNMET PEER DEPENDENCY postcss@^6.0.12
  +-- UNMET PEER DEPENDENCY postcss-import@^11.0.0
  +-- UNMET PEER DEPENDENCY protractor@^5.1.2
  +-- UNMET PEER DEPENDENCY protractor-jasmine2-html-reporter@^0.0.7
  +-- UNMET PEER DEPENDENCY react@^16.0.0
  +-- UNMET PEER DEPENDENCY react-dom@^16.0.0
  +-- UNMET PEER DEPENDENCY react-router-dom@^4.2.2
  +-- UNMET PEER DEPENDENCY reflect-metadata@^0.1.10
  +-- UNMET PEER DEPENDENCY remap-istanbul@^0.9.5
  +-- UNMET PEER DEPENDENCY require-css@^0.1.10
  +-- UNMET PEER DEPENDENCY require-dir@^0.3.2
  +-- UNMET PEER DEPENDENCY requirejs@^2.3.5
  +-- UNMET PEER DEPENDENCY requirejs-text@^2.0.15
  +-- UNMET PEER DEPENDENCY run-sequence@^2.2.0
  +-- UNMET PEER DEPENDENCY rxjs@^5.4.3
  +-- UNMET PEER DEPENDENCY selenium-standalone@^6.9.0
  +-- UNMET PEER DEPENDENCY source-map-loader@^0.2.2
  +-- UNMET PEER DEPENDENCY stream-to-promise@^2.2.0
  +-- UNMET PEER DEPENDENCY style-loader@^0.19.0
  +-- UNMET PEER DEPENDENCY stylus@^0.54.5
  +-- UNMET PEER DEPENDENCY sugarss@^1.0.0
  +-- UNMET PEER DEPENDENCY systemjs@^0.20.19
  +-- UNMET PEER DEPENDENCY systemjs-builder@^0.16.11
  +-- UNMET PEER DEPENDENCY systemjs-plugin-css@^0.1.36
  +-- UNMET PEER DEPENDENCY systemjs-plugin-text@^0.0.11
  +-- UNMET PEER DEPENDENCY tslint@^5.7.0
  +-- UNMET PEER DEPENDENCY typescript@^2.5.3
  +-- UNMET PEER DEPENDENCY uglify-js@^3.1.3
  +-- UNMET PEER DEPENDENCY uglifyjs-webpack-plugin@^0.4.6
  +-- UNMET PEER DEPENDENCY unitejs-aurelia-webdriver-plugin@^1.0.0
  +-- UNMET PEER DEPENDENCY unitejs-image-cli@^1.0.0
  +-- UNMET PEER DEPENDENCY unitejs-plain-protractor-plugin@^1.0.0
  +-- UNMET PEER DEPENDENCY unitejs-plain-webdriver-plugin@^1.0.0
  +-- UNMET PEER DEPENDENCY unitejs-react-protractor-plugin@^1.0.0
  +-- UNMET PEER DEPENDENCY unitejs-react-webdriver-plugin@^1.0.0
  +-- UNMET PEER DEPENDENCY unitejs-types@^1.0.0
  +-- UNMET PEER DEPENDENCY vinyl-buffer@^1.0.0
  +-- UNMET PEER DEPENDENCY vinyl-source-stream@^1.1.0
  +-- UNMET PEER DEPENDENCY wdio-allure-reporter@^0.1.2
  +-- UNMET PEER DEPENDENCY wdio-jasmine-framework@^0.3.2
  +-- UNMET PEER DEPENDENCY wdio-mocha-framework@^0.5.11
  +-- UNMET PEER DEPENDENCY wdio-spec-reporter@^0.1.2
  +-- UNMET PEER DEPENDENCY webdriver-manager@^12.0.6
  +-- UNMET PEER DEPENDENCY webdriverio@^4.8.0
  +-- UNMET PEER DEPENDENCY webpack@^3.6.0
  +-- UNMET PEER DEPENDENCY webpack-stream@^4.0.0
  +-- UNMET PEER DEPENDENCY whatwg-fetch@^2.0.3
  `-- UNMET PEER DEPENDENCY zone.js@^0.8.18

npm WARN [email protected] requires a peer of @angular/common@^4.4.4 but none was installed.
npm WARN [email protected] requires a peer of @angular/compiler@^4.4.4 but none was installed.
npm WARN [email protected] requires a peer of @angular/core@^4.4.4 but none was installed.
npm WARN [email protected] requires a peer of @angular/forms@^4.4.4 but none was installed.
npm WARN [email protected] requires a peer of @angular/http@^4.4.4 but none was installed.
npm WARN [email protected] requires a peer of @angular/platform-browser@^4.4.4 but none was installed.
npm WARN [email protected] requires a peer of @angular/platform-browser-dynamic@^4.4.4 but none was installed.
npm WARN [email protected] requires a peer of @angular/router@^4.4.4 but none was installed.
npm WARN [email protected] requires a peer of @types/chai@^4.0.4 but none was installed.
npm WARN [email protected] requires a peer of @types/jasmine@^2.6.0 but none was installed.
npm WARN [email protected] requires a peer of @types/mocha@^2.2.43 but none was installed.
npm WARN [email protected] requires a peer of @types/react@^16.0.9 but none was installed.
npm WARN [email protected] requires a peer of @types/react-dom@^16.0.0 but none was installed.
npm WARN [email protected] requires a peer of @types/react-router-dom@^4.0.8 but none was installed.
npm WARN [email protected] requires a peer of @types/systemjs@^0.20.5 but none was installed.
npm WARN [email protected] requires a peer of @types/webdriverio@^4.8.6 but none was installed.
npm WARN [email protected] requires a peer of allure-commandline@^2.3.5 but none was installed.
npm WARN [email protected] requires a peer of archiver@^2.0.3 but none was installed.
npm WARN [email protected] requires a peer of aurelia-animator-css@^1.0.3 but none was installed.
npm WARN [email protected] requires a peer of aurelia-binding@^1.3.0 but none was installed.
npm WARN [email protected] requires a peer of aurelia-bootstrapper@^2.1.1 but none was installed.
npm WARN [email protected] requires a peer of aurelia-dependency-injection@^1.3.2 but none was installed.
npm WARN [email protected] requires a peer of aurelia-dialog@^1.0.0-rc.1.0.3 but none was installed.
npm WARN [email protected] requires a peer of aurelia-event-aggregator@^1.0.1 but none was installed.
npm WARN [email protected] requires a peer of aurelia-fetch-client@^1.1.3 but none was installed.
npm WARN [email protected] requires a peer of aurelia-framework@^1.1.5 but none was installed.
npm WARN [email protected] requires a peer of aurelia-history@^1.1.0 but none was installed.
npm WARN [email protected] requires a peer of aurelia-history-browser@^1.1.0 but none was installed.
npm WARN [email protected] requires a peer of aurelia-http-client@^1.2.0 but none was installed.
npm WARN [email protected] requires a peer of aurelia-loader@^1.0.0 but none was installed.
npm WARN [email protected] requires a peer of aurelia-loader-default@^1.0.3 but none was installed.
npm WARN [email protected] requires a peer of aurelia-logging@^1.3.1 but none was installed.
npm WARN [email protected] requires a peer of aurelia-logging-console@^1.0.0 but none was installed.
npm WARN [email protected] requires a peer of aurelia-metadata@^1.0.3 but none was installed.
npm WARN [email protected] requires a peer of aurelia-pal@^1.4.0 but none was installed.
npm WARN [email protected] requires a peer of aurelia-pal-browser@^1.3.0 but none was installed.
npm WARN [email protected] requires a peer of aurelia-path@^1.1.1 but none was installed.
npm WARN [email protected] requires a peer of aurelia-polyfills@^1.2.2 but none was installed.
npm WARN [email protected] requires a peer of [email protected] but none was installed.
npm WARN [email protected] requires a peer of aurelia-route-recognizer@^1.1.1 but none was installed.
npm WARN [email protected] requires a peer of aurelia-router@^1.4.0 but none was installed.
npm WARN [email protected] requires a peer of aurelia-task-queue@^1.2.1 but none was installed.
npm WARN [email protected] requires a peer of aurelia-templating@^1.5.0 but none was installed.
npm WARN [email protected] requires a peer of aurelia-templating-binding@^1.4.0 but none was installed.
npm WARN [email protected] requires a peer of aurelia-templating-resources@^1.5.1 but none was installed.
npm WARN [email protected] requires a peer of aurelia-templating-router@^1.2.0 but none was installed.
npm WARN [email protected] requires a peer of aurelia-validation@^1.1.2 but none was installed.
npm WARN [email protected] requires a peer of autoprefixer@^7.1.4 but none was installed.
npm WARN [email protected] requires a peer of babel-core@^6.26.0 but none was installed.
npm WARN [email protected] requires a peer of babel-eslint@^8.0.1 but none was installed.
npm WARN [email protected] requires a peer of babel-plugin-transform-class-properties@^6.24.1 but none was installed.
npm WARN [email protected] requires a peer of babel-plugin-transform-decorators@^6.24.1 but none was installed.
npm WARN [email protected] requires a peer of babel-plugin-transform-decorators-legacy@^1.3.4 but none was installed.
npm WARN [email protected] requires a peer of babel-preset-env@^1.6.0 but none was installed.
npm WARN [email protected] requires a peer of babel-preset-react@^6.24.1 but none was installed.
npm WARN [email protected] requires a peer of bluebird@^3.5.0 but none was installed.
npm WARN [email protected] requires a peer of browser-sync@^2.18.13 but none was installed.
npm WARN [email protected] requires a peer of browserify@^14.4.0 but none was installed.
npm WARN [email protected] requires a peer of browserify-css@^0.12.0 but none was installed.
npm WARN [email protected] requires a peer of chai@^4.1.2 but none was installed.
npm WARN [email protected] requires a peer of core-js@^2.5.1 but none was installed.
npm WARN [email protected] requires a peer of css-loader@^0.28.7 but none was installed.
npm WARN [email protected] requires a peer of cssnano@^3.10.0 but none was installed.
npm WARN [email protected] requires a peer of del@^3.0.0 but none was installed.
npm WARN [email protected] requires a peer of delete-empty@^1.0.1 but none was installed.
npm WARN [email protected] requires a peer of electron-packager@^9.1.0 but none was installed.
npm WARN [email protected] requires a peer of es6-shim@^0.35.3 but none was installed.
npm WARN [email protected] requires a peer of eslint@^4.8.0 but none was installed.
npm WARN [email protected] requires a peer of eslint-plugin-react@^7.4.0 but none was installed.
npm WARN [email protected] requires a peer of eslint-plugin-webdriverio@^1.0.1 but none was installed.
npm WARN [email protected] requires a peer of gulp@^3.9.1 but none was installed.
npm WARN [email protected] requires a peer of gulp-babel@^7.0.0 but none was installed.
npm WARN [email protected] requires a peer of gulp-concat@^2.6.1 but none was installed.
npm WARN [email protected] requires a peer of gulp-cssnano@^2.1.2 but none was installed.
npm WARN [email protected] requires a peer of gulp-eslint@^4.0.0 but none was installed.
npm WARN [email protected] requires a peer of gulp-htmlmin@^3.0.0 but none was installed.
npm WARN [email protected] requires a peer of gulp-inline-ng2-template@^4.0.0 but none was installed.
npm WARN [email protected] requires a peer of gulp-insert@^0.5.0 but none was installed.
npm WARN [email protected] requires a peer of gulp-karma-runner@^1.2.0 but none was installed.
npm WARN [email protected] requires a peer of gulp-less@^3.3.2 but none was installed.
npm WARN [email protected] requires a peer of gulp-mocha@^4.3.1 but none was installed.
npm WARN [email protected] requires a peer of gulp-postcss@^7.0.0 but none was installed.
npm WARN [email protected] requires a peer of gulp-rename@^1.2.2 but none was installed.
npm WARN [email protected] requires a peer of gulp-replace@^0.6.1 but none was installed.
npm WARN [email protected] requires a peer of gulp-sass@^3.1.0 but none was installed.
npm WARN [email protected] requires a peer of gulp-sourcemaps@^2.6.1 but none was installed.
npm WARN [email protected] requires a peer of gulp-stylus@^2.6.0 but none was installed.
npm WARN [email protected] requires a peer of gulp-tslint@^8.1.2 but none was installed.
npm WARN [email protected] requires a peer of gulp-typescript@^3.2.2 but none was installed.
npm WARN [email protected] requires a peer of gulp-uglify@^3.0.0 but none was installed.
npm WARN [email protected] requires a peer of gulp-util@^3.0.8 but none was installed.
npm WARN [email protected] requires a peer of gulp-webdriver@^2.0.3 but none was installed.
npm WARN [email protected] requires a peer of html-minifier@^3.5.5 but none was installed.
npm WARN [email protected] requires a peer of jasmine-core@^2.8.0 but none was installed.
npm WARN [email protected] requires a peer of jasmine-spec-reporter@^4.2.1 but none was installed.
npm WARN [email protected] requires a peer of jest@^21.2.1 but none was installed.
npm WARN [email protected] requires a peer of jsdom@^11.3.0 but none was installed.
npm WARN [email protected] requires a peer of karma@^1.7.1 but none was installed.
npm WARN [email protected] requires a peer of karma-chai@^0.1.0 but none was installed.
npm WARN [email protected] requires a peer of karma-chrome-launcher@^2.2.0 but none was installed.
npm WARN [email protected] requires a peer of karma-coverage@^1.1.1 but none was installed.
npm WARN [email protected] requires a peer of karma-coverage-allsources@^0.0.4 but none was installed.
npm WARN [email protected] requires a peer of karma-firefox-launcher@^1.0.1 but none was installed.
npm WARN [email protected] requires a peer of karma-html-reporter@^0.2.7 but none was installed.
npm WARN [email protected] requires a peer of karma-ie-launcher@^1.0.0 but none was installed.
npm WARN [email protected] requires a peer of karma-jasmine@^1.1.0 but none was installed.
npm WARN [email protected] requires a peer of karma-jsdom-launcher@^6.1.2 but none was installed.
npm WARN [email protected] requires a peer of karma-mocha@^1.3.0 but none was installed.
npm WARN [email protected] requires a peer of karma-phantomjs-launcher@^1.0.4 but none was installed.
npm WARN [email protected] requires a peer of karma-remap-istanbul@^0.6.0 but none was installed.
npm WARN [email protected] requires a peer of karma-safari-launcher@^1.0.0 but none was installed.
npm WARN [email protected] requires a peer of karma-sourcemap-loader@^0.3.7 but none was installed.
npm WARN [email protected] requires a peer of karma-story-reporter@^0.3.1 but none was installed.
npm WARN [email protected] requires a peer of less@^2.7.2 but none was installed.
npm WARN [email protected] requires a peer of minimist@^1.2.0 but none was installed.
npm WARN [email protected] requires a peer of mkdirp@^0.5.1 but none was installed.
npm WARN [email protected] requires a peer of mocha@^3.5.3 but none was installed.
npm WARN [email protected] requires a peer of mochawesome-screenshots@^1.5.3 but none was installed.
npm WARN [email protected] requires a peer of node-glob@^1.2.0 but none was installed.
npm WARN [email protected] requires a peer of node-sass@^4.5.3 but none was installed.
npm WARN [email protected] requires a peer of postcss@^6.0.12 but none was installed.
npm WARN [email protected] requires a peer of postcss-import@^11.0.0 but none was installed.
npm WARN [email protected] requires a peer of protractor@^5.1.2 but none was installed.
npm WARN [email protected] requires a peer of protractor-jasmine2-html-reporter@^0.0.7 but none was installed.
npm WARN [email protected] requires a peer of react@^16.0.0 but none was installed.
npm WARN [email protected] requires a peer of react-dom@^16.0.0 but none was installed.
npm WARN [email protected] requires a peer of react-router-dom@^4.2.2 but none was installed.
npm WARN [email protected] requires a peer of reflect-metadata@^0.1.10 but none was installed.
npm WARN [email protected] requires a peer of remap-istanbul@^0.9.5 but none was installed.
npm WARN [email protected] requires a peer of require-css@^0.1.10 but none was installed.
npm WARN [email protected] requires a peer of require-dir@^0.3.2 but none was installed.
npm WARN [email protected] requires a peer of requirejs@^2.3.5 but none was installed.
npm WARN [email protected] requires a peer of requirejs-text@^2.0.15 but none was installed.
npm WARN [email protected] requires a peer of run-sequence@^2.2.0 but none was installed.
npm WARN [email protected] requires a peer of rxjs@^5.4.3 but none was installed.
npm WARN [email protected] requires a peer of selenium-standalone@^6.9.0 but none was installed.
npm WARN [email protected] requires a peer of source-map-loader@^0.2.2 but none was installed.
npm WARN [email protected] requires a peer of stream-to-promise@^2.2.0 but none was installed.
npm WARN [email protected] requires a peer of style-loader@^0.19.0 but none was installed.
npm WARN [email protected] requires a peer of stylus@^0.54.5 but none was installed.
npm WARN [email protected] requires a peer of sugarss@^1.0.0 but none was installed.
npm WARN [email protected] requires a peer of systemjs@^0.20.19 but none was installed.
npm WARN [email protected] requires a peer of systemjs-builder@^0.16.11 but none was installed.
npm WARN [email protected] requires a peer of systemjs-plugin-css@^0.1.36 but none was installed.
npm WARN [email protected] requires a peer of systemjs-plugin-text@^0.0.11 but none was installed.
npm WARN [email protected] requires a peer of tslint@^5.7.0 but none was installed.
npm WARN [email protected] requires a peer of typescript@^2.5.3 but none was installed.
npm WARN [email protected] requires a peer of uglify-js@^3.1.3 but none was installed.
npm WARN [email protected] requires a peer of uglifyjs-webpack-plugin@^0.4.6 but none was installed.
npm WARN [email protected] requires a peer of unitejs-aurelia-webdriver-plugin@^1.0.0 but none was installed.
npm WARN [email protected] requires a peer of unitejs-image-cli@^1.0.0 but none was installed.
npm WARN [email protected] requires a peer of unitejs-plain-protractor-plugin@^1.0.0 but none was installed.
npm WARN [email protected] requires a peer of unitejs-plain-webdriver-plugin@^1.0.0 but none was installed.
npm WARN [email protected] requires a peer of unitejs-react-protractor-plugin@^1.0.0 but none was installed.
npm WARN [email protected] requires a peer of unitejs-react-webdriver-plugin@^1.0.0 but none was installed.
npm WARN [email protected] requires a peer of unitejs-types@^1.0.0 but none was installed.
npm WARN [email protected] requires a peer of vinyl-buffer@^1.0.0 but none was installed.
npm WARN [email protected] requires a peer of vinyl-source-stream@^1.1.0 but none was installed.
npm WARN [email protected] requires a peer of wdio-allure-reporter@^0.1.2 but none was installed.
npm WARN [email protected] requires a peer of wdio-jasmine-framework@^0.3.2 but none was installed.
npm WARN [email protected] requires a peer of wdio-mocha-framework@^0.5.11 but none was installed.
npm WARN [email protected] requires a peer of wdio-spec-reporter@^0.1.2 but none was installed.
npm WARN [email protected] requires a peer of webdriver-manager@^12.0.6 but none was installed.
npm WARN [email protected] requires a peer of webdriverio@^4.8.0 but none was installed.
npm WARN [email protected] requires a peer of webpack@^3.6.0 but none was installed.
npm WARN [email protected] requires a peer of webpack-stream@^4.0.0 but none was installed.
npm WARN [email protected] requires a peer of whatwg-fetch@^2.0.3 but none was installed.
npm WARN [email protected] requires a peer of zone.js@^0.8.18 but none was installed.

And after running the generator command
$ unite configure --packageName=abhinav-react-test --title="Abhinav React Test" --profile=AngularTypeScript --outputDirectory=dist
I got

ERROR: Loading dependencies failed:
	core: /usr/lib/node_modules/unitejs-cli/node_modules/unitejs-engine/
	dependenciesFile: package.json
util.promisify is not a function

unitTestFramework is not valid if unitTestRunner is None

I am getting an error when I try to create a new project with the most basic set-up - no test, linters, etc. Here is the command:

unite configure --packageName=unite-test --profile=AureliaJavaScript --linter=None --unitTestRunner=None --e2eTestRunner=None --cssPre=Css --cssPost=None --cssLinter=None --documenter=None

The error I am getting is "unitTestFramework is not valid if unitTestRunner is None."

Do I need to specify unit tests?

Great idea and excited to try this out!

img

Note: similar error for e2e...

ERROR: e2eTestFramework is not valid if e2eTestRunner is None

There's no documentation on how to add project dependencies

Hello,
I attempted to create a Polymer 3 app using PaperElements web components, I went ahead and
installed a couple elements (with some guidance from the PolymerElements documentation) the usual way by using "npm install" doing that doesn't work after testing with the "gulp build / serve commands". I then tried using the unite command line --i.e: "unite clientPackage --opetation=add --packageName=@polymer/paper-toolbar", however the same applied. There is no documentation on how to get this kind of package and presumably it's own dependencies added to the build in a graceful and effective manner.
I then realized that the unite commands and documentation were going to be no help.

There needs to be documentation for how to add this kind of package, and importantly, it's dependencies, in a graceful way. In other words if the cli or documentation does not cover this then it should be added right away.

Issues Encounted
In summary the problems I've faced in my testing are below:

  • There's no documentation on how to add project dependencies
  • There's no specific command for adding those kinds of project dependencies like PolymerElements ( or in the case of React, it might be @material-ui/core for example) (again if there could be clarification / additions to the docs about this that would be a huge help!)
  • Adding dependencies using "unite clientPackage" should also find and add those sub-dependencies, for example, if adding '@polymer/paper-toolbar', that in it-self has it's own sub-dependencies, and so those should be included as well to the unite.json and,or referenced in the dist build itself.
    Hense a user will see this in their served website's console, this is after installing their intended package (in this example I use @polymer/paper-toolbar). Below are errors for the missing dependencies that paper-toolbar uses. Its worth noting that these sub-dependencies are located in the project.json within the @polymer/paper-toolbar folder but aren't detected by the unite clientPackage --add command
:9000/node_modules/@polymer-transpiled/polymer/polymer-legacy.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
:9000/@polymer/paper-styles/default-theme.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
:9000/@polymer/paper-styles/typography.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
:9000/@polymer/iron-flex-layout/iron-flex-layout.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
:9000/node_modules/@polymer-transpiled/polymer/lib/utils/html-tag.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
(index):1 Uncaught (in promise) Error: Fetch error: 404 Not Found
  Instantiating http://localhost:9000/node_modules/@polymer-transpiled/polymer/polymer-legacy.js
  Loading http://localhost:9000/node_modules/@polymer-transpiled/paper-toolbar//paper-toolbar.js
  Loading dist/entryPoint
    at fetch.js:37
  • Lastly, the build process seems to be confused when adding packages like the paper-toolbar example below (look in the Additional Information below)

Steps to Replicate
Step 1
Establish a unitejs project using the below
unite configure --packageName=xtremeqatool-unitejs-react-ts_issuerepro --profile=PolymerTypeScript --linter=None --unitTestRunner=None --e2eTestRunner=None --cssPost=None --cssLinter=None --documenter=None --packageManager=Npm --title=Title --shortName="Short Name" --description=Description --keywords=Keywords --organization=Organization --copyright=Copyright --webSite="Web Site" --namespace=Namespace --author=Author --authorEmail=Email --authorWebSite="Author Web Site" --outputDirectory=xtremeqatool-unitejs-react-ts_issuerepro
Next in the Bash terminal, 'cd www' and run 'npm install'. After that, execute 'gulp theme-build'.

Step 2
Add any element from https://www.webcomponents.org/author/PolymerElements
--e.g: unite clientPackage --operation=add --packageName=@polymer/paper-toolbar

Step 3
Modify the Child.ts to include the required import for the element to be used in the html file

/**
 * Child class.
 *
 * @export
 * @class Child
 */
import { customElement, property } from "@polymer/decorators/src/decorators";
import { PolymerElement, html } from "@polymer/polymer/polymer-element";
import "@polymer/paper-toolbar/paper-toolbar.js"; // Add the element here according to the polymer element instructions
...

Step 3
Modify the Child.html to be something about the same as below

<span class="child">
    <paper-toolbar>
        <h2>{{message}}</h2>
    </paper-toolbar>
</span>

Step 4
In Bash, execute 'gulp build', and then after that, execute 'gulp serve'.

Step 5
In the website served, hit [F12] and observe the error in the console.

:9000/node_modules/@polymer/paper-toolbar/paper-toolbar/paper-toolbar.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
(index):1 Uncaught (in promise) Error: Fetch error: 404 Not Found
  Instantiating http://localhost:9000/node_modules/@polymer/paper-toolbar/paper-toolbar/paper-toolbar.js
  Loading http://localhost:9000/dist/child/child.js
  Loading dist/entryPoint
    at fetch.js:37

Additional Information
I noticed at step 5 it was referencing 'paper-toolbar/paper-toolbar/paper-toolbar' instead of 'paper-toolbar/paper-toolbar', so in 'app-module-config.js' I corrected the reference manually.

"@polymer/paper-toolbar": "node_modules/@polymer/paper-toolbar/paper-toolbar"
to
"@polymer/paper-toolbar": "node_modules/@polymer/paper-toolbar"

I then was getting this error message in the console:
EDIT: the error was bypassed by using a transpile alias, however like mentioned in the Issues Encounted, I was then missing paper-toolbar's dependencies which is a thing i want to avoid having to add manually to the unite.json every time I add a different PolymerElement.

(index):1 Uncaught (in promise) Error: Unable to dynamically transpile ES module
   A loader plugin needs to be configured via `SystemJS.config({ transpiler: 'transpiler-module' })`.
  Instantiating http://localhost:9000/node_modules/@polymer/paper-toolbar/paper-toolbar.js
  Loading http://localhost:9000/dist/child/child.js
  Loading dist/entryPoint
    at transpile (instantiate.js:470)
    at instantiate.js:245

Resources used
https://unitejs.com/
https://www.webcomponents.org/author/PolymerElements
https://www.polymer-project.org/3.0/start/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.