Score
0
5 Unstar Star 15 Fork 2

ng-alain / delonTypeScriptMIT

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
基建类库 @delon(包括:业务组件、ACL访问控制、缓存、授权、动态表单等) spread retract

  • TypeScript 85.0%
  • CSS 7.8%
  • HTML 4.7%
  • JavaScript 1.6%
  • Shell 0.9%
Clone or download
azure-pipelines.yml 4.36 KB
Copy Edit Web IDE Raw Blame History
卡色 authored 2020-06-25 19:31 . refactor: support ssr (#963)
name: ng-alain-delon
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
stages:
- stage: env
jobs:
- job: Nodes
steps:
- task: NodeTool@0
inputs:
versionSpec: '12.14.1'
displayName: 'Install Node.js'
- stage: artifacts
dependsOn: env
jobs:
- job: build
steps:
- task: Npm@1
inputs:
command: 'install'
- task: Bash@3
env:
ACCESS_TOKEN: $(ACCESS_TOKEN)
inputs:
targetType: 'filePath'
filePath: 'scripts/ci/build-artifacts.sh'
- stage: test
dependsOn:
- env
jobs:
- job: packages
steps:
- task: Npm@1
inputs:
command: 'install'
- script: |
npm run test
cat ./coverage/lcov.info | ./node_modules/.bin/codecov
env:
CODECOV_TOKEN: $(CODECOV_TOKEN)
- task: PublishCodeCoverageResults@1
displayName: 'publish code coverage results'
condition: succeededOrFailed()
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: $(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml
reportDirectory: $(System.DefaultWorkingDirectory)/coverage
failIfCoverageEmpty: true
- task: PublishTestResults@2
displayName: 'publish test results'
condition: succeededOrFailed()
inputs:
searchFolder: $(System.DefaultWorkingDirectory)/junit
failTaskOnFailedTests: true
testRunTitle: DELON
testResultsFormat: JUnit
testResultsFiles: '**/TESTS*.xml'
- job: cli
steps:
- task: Npm@1
inputs:
command: 'install'
- script: npm run test:cli
- stage: lint
dependsOn:
- env
jobs:
- job: packages
steps:
- task: Npm@1
inputs:
command: 'install'
- script: npm run lint
- stage: site
dependsOn:
- env
- artifacts
jobs:
- job: Build
steps:
- checkout: self
displayName: 'Checkout'
clean: true
fetchDepth: 1
- task: Npm@1
inputs:
command: 'install'
- script: |
node ./scripts/azure/github-comment.js "[Preview Preparing...](https://dev.azure.com/ng-alain/delon/_build/results?buildId=$(Build.BuildId))"
displayName: 'Comment on github'
env:
ACCESS_REPO: $(ACCESS_REPO)
ACCESS_TOKEN: $(ACCESS_TOKEN)
- script: npm run site:build
displayName: 'Build sites'
- script: ls -al src/dist/browser/
displayName: 'List build'
- script: |
export DEPLOY_DOMAIN=https://preview-${SYSTEM_PULLREQUEST_PULLREQUESTNUMBER}-ng-alain-delon.surge.sh
echo "Deploy to $DEPLOY_DOMAIN"
cp ./src/dist/browser/index.html ./src/dist/browser/404.html
npx surge --project ./src/dist/browser --domain $DEPLOY_DOMAIN
displayName: 'Deploy Site'
env:
ACCESS_REPO: $(ACCESS_REPO)
ACCESS_TOKEN: $(ACCESS_TOKEN)
SURGE_LOGIN: $(SURGE_LOGIN)
SURGE_TOKEN: $(SURGE_TOKEN)
- script: |
export DEPLOY_DOMAIN=https://preview-${SYSTEM_PULLREQUEST_PULLREQUESTNUMBER}-ng-alain-delon.surge.sh
node ./scripts/azure/github-comment.js "[Preview is ready!]($DEPLOY_DOMAIN)"
displayName: 'Update comment on github'
env:
ACCESS_REPO: $(ACCESS_REPO)
ACCESS_TOKEN: $(ACCESS_TOKEN)
- job: Build_Failed
dependsOn: Build
condition: failed()
steps:
- checkout: self
displayName: 'Checkout'
clean: true
fetchDepth: 1
- script: npm install
displayName: 'Install modules'
- script: |
node ./scripts/azure/github-comment.js "[Preview Failed](https://dev.azure.com/ng-alain/delon/_build/results?buildId=$(Build.BuildId))"
displayName: 'Comment on github'
env:
ACCESS_REPO: $(ACCESS_REPO)
ACCESS_TOKEN: $(ACCESS_TOKEN)

Comment ( 0 )

Sign in for post a comment

TypeScript
1
https://gitee.com/ng-alain/delon.git
git@gitee.com:ng-alain/delon.git
ng-alain
delon
delon
master

Search

131423 f1aaba0b 1899542 094922 1c74bed3 1899542