UNPKG

@pnp/generator-spfx

Version:

This Yeoman generator helps organisations to improve their development workflow with the SharePoint Framework. It extends the functionalities of the @microsoft/generator-sharepoint based on best pattern and practices. This generator extends the capabiliti

62 lines (54 loc) 1.34 kB
resources: - repo: self trigger: - master - develop pool: vmImage: 'ubuntu-latest' demands: - npm - node.js variables: npm_config_cache: $(Pipeline.Workspace)/.npm steps: #install node 10.x - task: NodeTool@0 displayName: 'Use Node 10.x' inputs: versionSpec: 10.x checkLatest: true #cache files from previous run - task: CacheBeta@1 inputs: key: npm | $(Agent.OS) | package-lock.json path: $(npm_config_cache) cacheHitVar: CACHE_RESTORED #install nodejs modules with npm - script: npm ci displayName: 'npm ci' #bundle code with gulp - task: Gulp@0 displayName: 'gulp bundle' inputs: gulpFile: '$(Build.SourcesDirectory)/gulpfile.js' targets: bundle arguments: '--ship' continueOnError: true #package solution with gulp - task: Gulp@0 displayName: 'gulp package-solution' inputs: gulpFile: '$(Build.SourcesDirectory)/gulpfile.js' targets: 'package-solution' arguments: '--ship' #copy files to artifact repository - task: CopyFiles@2 displayName: 'Copy Files to: $(build.artifactstagingdirectory)/drop' inputs: Contents: '**/*.sppkg' TargetFolder: '$(build.artifactstagingdirectory)/drop' #publish artifacts - task: PublishBuildArtifacts@1 displayName: 'Publish Artifact: drop' inputs: PathtoPublish: '$(build.artifactstagingdirectory)/drop'