Skip to content

Commit

Permalink
Feature: Refactoring and updating everything. (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
Martynas Žilinskas authored Aug 15, 2019
1 parent c7166e4 commit a99866c
Show file tree
Hide file tree
Showing 72 changed files with 7,542 additions and 9,439 deletions.
61 changes: 61 additions & 0 deletions .ci/build-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
trigger: none
pr: none

pool:
vmImage: "ubuntu-latest"

steps:
- task: NodeTool@0
inputs:
versionSpec: "10.x"
displayName: "Install Node.js"

- script: |
npm install
displayName: "npm install"
- script: |
npm run build
displayName: "npm run build"
- script: |
npm test
displayName: "npm test"
- task: PublishTestResults@2
displayName: "Publish Test Results junit.xml"
inputs:
testResultsFiles: junit.xml
failTaskOnFailedTests: true

- task: PublishCodeCoverageResults@1
displayName: "Publish code coverage from $(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml"
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: "$(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml"

- script: |
npm version 0.0.0-canary.$(git rev-parse --short HEAD) --no-git-tag-version
displayName: "Apply cannary version"
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/dev'))
- script: |
npm pack
displayName: "npm pack"
- script: |
mkdir $(Build.ArtifactStagingDirectory)/packages
mv *.tgz $(Build.ArtifactStagingDirectory)/packages
displayName: "Move tgz to artifacts folder"
- task: PublishBuildArtifacts@1
displayName: "Publish Artifact: packages"
inputs:
PathtoPublish: "$(Build.ArtifactStagingDirectory)/packages"
ArtifactName: packages

- task: PublishBuildArtifacts@1
displayName: "Publish Artifact: package.json"
inputs:
PathtoPublish: "$(System.DefaultWorkingDirectory)/package.json"
ArtifactName: packageJson
35 changes: 35 additions & 0 deletions .ci/pr-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
trigger: none
pr: none

pool:
vmImage: "ubuntu-latest"

steps:
- task: NodeTool@0
inputs:
versionSpec: "10.x"
displayName: "Install Node.js"

- script: |
npm install
displayName: "npm install"
- script: |
npm run build
displayName: "npm run build"
- script: |
npm test
displayName: "npm test"
- task: PublishTestResults@2
displayName: "Publish Test Results junit.xml"
inputs:
testResultsFiles: junit.xml
failTaskOnFailedTests: true

- task: PublishCodeCoverageResults@1
displayName: "Publish code coverage from $(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml"
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: "$(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml"
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@reactway"
}
5 changes: 0 additions & 5 deletions .gitattributes

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ packages/react-forms-test

dist
@types
package-lock.json

# MacOS
.DS_Store
Expand Down
6 changes: 0 additions & 6 deletions .npmignore

This file was deleted.

7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"trailingComma": "none",
"tabWidth": 4,
"semi": true,
"singleQuote": false,
"printWidth": 140
}
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .vscode/launch.json

This file was deleted.

2 changes: 0 additions & 2 deletions @types/arguments.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion @types/bundle-cli.d.ts

This file was deleted.

35 changes: 0 additions & 35 deletions @types/bundler.d.ts

This file was deleted.

26 changes: 0 additions & 26 deletions @types/contracts.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion @types/helpers.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion @types/index.d.ts

This file was deleted.

15 changes: 0 additions & 15 deletions @types/launcher.d.ts

This file was deleted.

Loading

0 comments on commit a99866c

Please sign in to comment.