Giter VIP home page Giter VIP logo

generator-vsts-extension's People

Contributors

goeddie avatar hkamel avatar japj avatar jeffrey-opdam avatar jsalter2013 avatar mikaelkrief avatar mrtarantula avatar tspascoal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

generator-vsts-extension's Issues

Cordova build error while building for Android on VSTS

While trying to build Cordova project for Android, the build is failing with an ERROR as follows:

d:\a_tasks\CordovaBuild_70e94267-15dc-434d-8973-023d766825d7\1.3.11\lib\cordova-task.js:70 process.chdir(cwd); ^ Error: ENOENT: no such file or directory, uv_chdir

aausw

Can someone resolve this issue?

The log file of Cordova Build says:

017-11-01T09:58:52.7209717Z ##[debug]Evaluating condition for step: 'Cordova Build android'
2017-11-01T09:58:52.7209717Z ##[debug]Evaluating: succeeded()
2017-11-01T09:58:52.7209717Z ##[debug]Evaluating succeeded:
2017-11-01T09:58:52.7209717Z ##[debug]=> (Boolean) True
2017-11-01T09:58:52.7209717Z ##[debug]Expanded: True
2017-11-01T09:58:52.7209717Z ##[debug]Result: True
2017-11-01T09:58:52.7209717Z ##[section]Starting: Cordova Build android
2017-11-01T09:58:52.7509720Z ==============================================================================
2017-11-01T09:58:52.7509720Z Task : Cordova Build
2017-11-01T09:58:52.7509720Z Description : Build a hybrid app project based on the Cordova CLI, Ionic CLI, TACO CLI, or other Cordova-compliant CLI
2017-11-01T09:58:52.7509720Z Version : 1.3.11
2017-11-01T09:58:52.7509720Z Author : Microsoft Corporation
2017-11-01T09:58:52.7509720Z Help : More Information
2017-11-01T09:58:52.7509720Z ==============================================================================
2017-11-01T09:58:52.7679724Z ##[debug]tf vc resolvePath "$\VisitReport_Br\Client Components\Main\Source\visitreportpoc_client with windows and android working\visitreportpoc.sln" /loginType:OAuth /login:.,******** /noprompt
2017-11-01T09:58:53.3029712Z ##[debug]d:\a\1\s\Client Components\Main\Source\visitreportpoc_client with windows and android working\visitreportpoc.sln
2017-11-01T09:58:55.1959726Z ##[debug]agent.workFolder=d:\a
2017-11-01T09:58:55.2239725Z ##[debug]loading inputs and endpoints
2017-11-01T09:58:55.2239725Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2017-11-01T09:58:55.2239725Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2017-11-01T09:58:55.2239725Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2017-11-01T09:58:55.2239725Z ##[debug]loading INPUT_ANTBUILD
2017-11-01T09:58:55.2239725Z ##[debug]loading INPUT_CONFIGURATION
2017-11-01T09:58:55.2239725Z ##[debug]loading INPUT_CORDOVAVERSION
2017-11-01T09:58:55.2239725Z ##[debug]loading INPUT_CWD
2017-11-01T09:58:55.2239725Z ##[debug]loading INPUT_IOSSIGNMETHOD
2017-11-01T09:58:55.2239725Z ##[debug]loading INPUT_KEYSTOREFILE
2017-11-01T09:58:55.2239725Z ##[debug]loading INPUT_OUTPUTPATTERN
2017-11-01T09:58:55.2239725Z ##[debug]loading INPUT_P12
2017-11-01T09:58:55.2239725Z ##[debug]loading INPUT_PLATFORM
2017-11-01T09:58:55.2239725Z ##[debug]loading INPUT_PROVPROFILE
2017-11-01T09:58:55.2239725Z ##[debug]loading INPUT_REMOVEPROFILE
2017-11-01T09:58:55.2239725Z ##[debug]loading INPUT_TARGETEMULATOR
2017-11-01T09:58:55.2239725Z ##[debug]loading INPUT_UNLOCKDEFAULTKEYCHAIN
2017-11-01T09:58:55.2239725Z ##[debug]loading INPUT_WINDOWSONLY
2017-11-01T09:58:55.2239725Z ##[debug]loading INPUT_WINDOWSPHONEONLY
2017-11-01T09:58:55.2239725Z ##[debug]loaded 18
2017-11-01T09:58:55.2239725Z ##[debug]BUILD_SOURCEDIRECTORY=undefined
2017-11-01T09:58:55.2239725Z ##[debug]BUILD_SOURCESDIRECTORY=d:\a\1\s
2017-11-01T09:58:55.2249717Z ##[debug]CWD=d:\a\1\s\Client Components\Main\Source\visitreportpoc_client with windows and android working\visitreportpoc.sln
2017-11-01T09:58:55.2249717Z ##[debug]XCODEDEVELOPERDIR=null
2017-11-01T09:58:55.2249717Z ##[debug]CONFIGURATION=Debug
2017-11-01T09:58:55.2249717Z ##[debug]ARCHS=null
2017-11-01T09:58:55.2249717Z ##[debug]PLATFORM=android
2017-11-01T09:58:55.2249717Z ##[debug]TARGETEMULATOR=false
2017-11-01T09:58:55.2249717Z ##[debug]WINDOWSAPPX=null
2017-11-01T09:58:55.2249717Z ##[debug]WINDOWSONLY=false
2017-11-01T09:58:55.2249717Z ##[debug]WINDOWSPHONEONLY=false
2017-11-01T09:58:55.2249717Z ##[debug]UNLOCKDEFAULTKEYCHAIN=false
2017-11-01T09:58:55.2249717Z ##[debug]DEFAULTKEYCHAINPASSWORD=null
2017-11-01T09:58:55.2249717Z ##[debug]P12=d:\a\1\s
2017-11-01T09:58:55.2249717Z ##[debug]P12PWD=null
2017-11-01T09:58:55.2249717Z ##[debug]IOSSIGNINGIDENTITY=null
2017-11-01T09:58:55.2249717Z ##[debug]PROVPROFILEUUID=null
2017-11-01T09:58:55.2249717Z ##[debug]PROVPROFILE=d:\a\1\s
2017-11-01T09:58:55.2249717Z ##[debug]REMOVEPROFILE=false
2017-11-01T09:58:55.2249717Z ##[debug]ANTBUILD=false
2017-11-01T09:58:55.2249717Z ##[debug]KEYSTOREFILE=d:\a\1\s
2017-11-01T09:58:55.2249717Z ##[debug]KEYSTOREPASS=null
2017-11-01T09:58:55.2249717Z ##[debug]KEYSTOREALIAS=null
2017-11-01T09:58:55.2249717Z ##[debug]KEYPASS=null
2017-11-01T09:58:55.2249717Z ##[debug]OUTPUTPATTERN=bin
2017-11-01T09:58:55.2249717Z ##[debug]CORDOVAARGS=null
2017-11-01T09:58:55.2249717Z ##[debug]CORDOVAVERSION=6.2.1
2017-11-01T09:58:56.7119726Z d:\a_tasks\CordovaBuild_70e94267-15dc-434d-8973-023d766825d7\1.3.11\lib\cordova-task.js:70
2017-11-01T09:58:56.7119726Z process.chdir(cwd);
2017-11-01T09:58:56.7119726Z ^
2017-11-01T09:58:56.7119726Z
2017-11-01T09:58:56.7119726Z Error: ENOENT: no such file or directory, uv_chdir
2017-11-01T09:58:56.7119726Z at Error (native)
2017-11-01T09:58:56.7119726Z at processInputs (d:\a_tasks\CordovaBuild_70e94267-15dc-434d-8973-023d766825d7\1.3.11\lib\cordova-task.js:70:13)
2017-11-01T09:58:56.7119726Z at Object. (d:\a_tasks\CordovaBuild_70e94267-15dc-434d-8973-023d766825d7\1.3.11\lib\cordova-task.js:32:1)
2017-11-01T09:58:56.7119726Z at Module._compile (module.js:570:32)
2017-11-01T09:58:56.7129723Z at Object.Module._extensions..js (module.js:579:10)
2017-11-01T09:58:56.7129723Z at Module.load (module.js:487:32)
2017-11-01T09:58:56.7129723Z at tryModuleLoad (module.js:446:12)
2017-11-01T09:58:56.7189705Z at Function.Module._load (module.js:438:3)
2017-11-01T09:58:56.7189705Z at Module.runMain (module.js:604:10)
2017-11-01T09:58:56.7189705Z at run (bootstrap_node.js:394:7)
2017-11-01T09:58:56.7309743Z ##[debug]task result: Failed
2017-11-01T09:58:56.7399729Z ##[error]Task failed
2017-11-01T09:58:56.7399729Z ##[debug]Processed: ##vso[task.issue type=error;]Task failed
2017-11-01T09:58:56.7419727Z ##[debug]Processed: ##vso[task.complete result=Failed;]Task failed
2017-11-01T09:58:56.7479948Z ##[section]Finishing: Cordova Build android

Apply appropriate VSTS branding guidelines

Use "Visual Studio Team Services (VSTS)" when first introducing, then use "VSTS". It's also acceptable to use "Visual Studio Team Services". Avoid "Team Services" and "VS Team Services".

This applies to the README, repo description, and text presented by the generator itself.

throw er; // Unhandled 'error' event On MAC OS

On macOS
Trying to generate a build/release task using the generator version v.1.0.33 getting the above mentioned error.

screenshot

Here is the full trace

events.js:163
throw er; // Unhandled 'error' event
^

Error: ENOENT: no such file or directory, uv_chdir
at process.chdir (/usr/local/lib/node_modules/yo/node_modules/graceful-fs/polyfills.js:21:9)
at process.chdir (/usr/local/lib/node_modules/generator-team-services-extension/node_modules/graceful-fs/polyfills.js:21:9)
at child.install (/usr/local/lib/node_modules/generator-team-services-extension/generators/taskitem/index.js:254:12)
at Object. (/usr/local/lib/node_modules/generator-team-services-extension/node_modules/yeoman-generator/lib/base.js:431:23)
at /usr/local/lib/node_modules/generator-team-services-extension/node_modules/run-async/index.js:25:25
at /usr/local/lib/node_modules/generator-team-services-extension/node_modules/run-async/index.js:24:19
at /usr/local/lib/node_modules/generator-team-services-extension/node_modules/yeoman-generator/lib/base.js:432:9
at runCallback (timers.js:672:20)
at tryOnImmediate (timers.js:645:5)
at processImmediate [as _immediateCallback] (timers.js:617:5)
hkamels-MBP:~ hkamel$

Error team-services-extension

You don’t seem to have a generator with the name “team-services-extension:widget” installed. From these template the dashboard widget is not getting installed.

PS p> yo --help
Usage: yo GENERATOR [args] [options]

General options:
--help # Print this info and generator's options and usage
-f, --force # Overwrite files that already exist
--version # Print version
--no-color # Disable colors
--[no-]insight # Toggle anonymous tracking
--generators # Print available generators

Install a generator:

Generators can be installed through npm.

$ npm install generator-angular
$ yo angular --help

Completion:

To enable shell completion for the yo command, try running

$ yo completion

Troubleshooting:

For any issues, try running

$ yo doctor

Full Documentation: http://yeoman.io

Available Generators:
team-services-extension
hub
taskitem

new build\release extension does not build out of the box.

After generating a new build extension the tool attempts to package the extension into a visx. tsc is failing with the below error. Full text even further down. Thanks!

b/node_modules/vsts-task-lib/task.d.ts(2,21): error TS2307: Cannot find module 'fs'.
b/node_modules/vsts-task-lib/task.d.ts(8,32): error TS2503: Cannot find namespace 'NodeJS'.
b/node_modules/vsts-task-lib/task.d.ts(9,32): error TS2503: Cannot find namespace 'NodeJS'.
b/node_modules/vsts-task-lib/task.d.ts(210,64): error TS2304: Cannot find name 'Buffer'.
b/node_modules/vsts-task-lib/toolrunner.d.ts(2,25): error TS2307: Cannot find module 'events'.
b/node_modules/vsts-task-lib/toolrunner.d.ts(3,25): error TS2307: Cannot find module 'stream'.
C:\WTF>node --version
v6.11.0

C:\WTF>npm install -g yo
C:\Users\mbarry\AppData\Roaming\npm\yo -> C:\Users\mbarry\AppData\Roaming\npm\node_modules\yo\lib\cli.js
C:\Users\mbarry\AppData\Roaming\npm\yo-complete -> C:\Users\mbarry\AppData\Roaming\npm\node_modules\yo\lib\completion\index.js

> [email protected] postinstall C:\Users\mbarry\AppData\Roaming\npm\node_modules\yo
> yodoctor


Yeoman Doctor
Running sanity checks on your system

√ Global configuration file is valid
√ NODE_PATH matches the npm root
√ Node.js version
√ No .bowerrc file in home directory
√ No .yo-rc.json file in home directory
√ npm version

Everything looks all right!
C:\Users\mbarry\AppData\Roaming\npm
`-- [email protected]


C:\WTF>npm install -g generator-team-services-extension
C:\Users\mbarry\AppData\Roaming\npm
`-- [email protected]


C:\WTF>yo team-services-extension

     _-----_     ╭──────────────────────────╮
    |       |    │ Welcome to Team Services │
    |--(o)--|    │        Extensions        │
   `---------´   │         v.1.0.44         │
    ( _´U`_ )    ╰──────────────────────────╯
    /___A___\   /
     |  ~  |
   __'.___.'__
 ´   `  |° ´ Y `

? What type of extension do you want to create? Build/Release custom Task
? Please enter the (friendly) name of your extension: b
? Please enter the ID of your extension: b
? Please enter a description of your extension: b
? Please enter the name of your marketplace publisher ID: b
? Please enter the name (Id) of your task: b
? Please enter the friendly (display) name of your task: b
? Please enter a description for your task: b
? Please select the type of task you would like to create: Build
? Please select the visibility level for your task (check all that apply): Build, Release
? Please select the scripting type for your task: TypeScript
? Do you intend to use Visual Studio ? No
   create b\static\images\logo.png
   create b\static\images\Screen1.png
   create b\b\b.ts
   create b\b\package.json
   create b\tsconfig.json
   create b\b\task.json
   create b\b\icon.png
   create b\vss-extension.json
   create b\package.json
   create b\license.md
   create b\overview.md
   create b\ThirdPartyNotices.txt
   create b\.gitignore
+ Running npm install on b
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Use uuid module instead
+ Running npm run package for vsix generating
npm WARN deprecated [email protected]: Use uuid module instead
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.

npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\mbarry\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "compile"
npm ERR! node v6.11.0
npm ERR! npm  v4.0.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] compile: `tsc -p .`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] compile script 'tsc -p .'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the packagetask package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     tsc -p .
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs packagetask
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls packagetask
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\WTF\b\npm-debug.log

npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\mbarry\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "package"
npm ERR! node v6.11.0
npm ERR! npm  v4.0.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] package: `npm run clean  && npm run compile  && tfx extension create  --rev-version`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] package script 'npm run clean  && npm run compile  && tfx extension create  --rev-version'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the packagetask package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run clean  && npm run compile  && tfx extension create  --rev-version
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs packagetask
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls packagetask
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\WTF\b\npm-debug.log
Done

C:\WTF>cd b

C:\WTF\b>tsc -p .
b/node_modules/vsts-task-lib/task.d.ts(2,21): error TS2307: Cannot find module 'fs'.
b/node_modules/vsts-task-lib/task.d.ts(8,32): error TS2503: Cannot find namespace 'NodeJS'.
b/node_modules/vsts-task-lib/task.d.ts(9,32): error TS2503: Cannot find namespace 'NodeJS'.
b/node_modules/vsts-task-lib/task.d.ts(210,64): error TS2304: Cannot find name 'Buffer'.
b/node_modules/vsts-task-lib/toolrunner.d.ts(2,25): error TS2307: Cannot find module 'events'.
b/node_modules/vsts-task-lib/toolrunner.d.ts(3,25): error TS2307: Cannot find module 'stream'.

Generating a menu extension creates a wrong vss-extension

In the contributions part of vss-extension, it generates

  "contributions": [
    {
      "id": "id",
      "targets": "ms.vss-code-web.git-branches-summary-grid-menu",
      "type": "ms.vss-web.action",
      "properties": {
        "name": "name",
        "order": 100,
        "uri": "static/index.html"
      }
    }
  ]

The correct thing should have an array as targets

  "contributions": [
    {
      "id": "id",
      "targets": ["ms.vss-code-web.git-branches-summary-grid-menu"],
      "type": "ms.vss-web.action",
      "properties": {
        "name": "name",
        "order": 100,
        "uri": "static/index.html"
      }
    }
  ]

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.