Skip to content

Commit a99866c

Browse files
author
Martynas Žilinskas
authored
Feature: Refactoring and updating everything. (#65)
1 parent c7166e4 commit a99866c

72 files changed

Lines changed: 7542 additions & 9439 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.ci/build-build.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
trigger: none
2+
pr: none
3+
4+
pool:
5+
vmImage: "ubuntu-latest"
6+
7+
steps:
8+
- task: NodeTool@0
9+
inputs:
10+
versionSpec: "10.x"
11+
displayName: "Install Node.js"
12+
13+
- script: |
14+
npm install
15+
displayName: "npm install"
16+
17+
- script: |
18+
npm run build
19+
displayName: "npm run build"
20+
21+
- script: |
22+
npm test
23+
displayName: "npm test"
24+
25+
- task: PublishTestResults@2
26+
displayName: "Publish Test Results junit.xml"
27+
inputs:
28+
testResultsFiles: junit.xml
29+
failTaskOnFailedTests: true
30+
31+
- task: PublishCodeCoverageResults@1
32+
displayName: "Publish code coverage from $(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml"
33+
inputs:
34+
codeCoverageTool: Cobertura
35+
summaryFileLocation: "$(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml"
36+
37+
- script: |
38+
npm version 0.0.0-canary.$(git rev-parse --short HEAD) --no-git-tag-version
39+
displayName: "Apply cannary version"
40+
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/dev'))
41+
42+
- script: |
43+
npm pack
44+
displayName: "npm pack"
45+
46+
- script: |
47+
mkdir $(Build.ArtifactStagingDirectory)/packages
48+
mv *.tgz $(Build.ArtifactStagingDirectory)/packages
49+
displayName: "Move tgz to artifacts folder"
50+
51+
- task: PublishBuildArtifacts@1
52+
displayName: "Publish Artifact: packages"
53+
inputs:
54+
PathtoPublish: "$(Build.ArtifactStagingDirectory)/packages"
55+
ArtifactName: packages
56+
57+
- task: PublishBuildArtifacts@1
58+
displayName: "Publish Artifact: package.json"
59+
inputs:
60+
PathtoPublish: "$(System.DefaultWorkingDirectory)/package.json"
61+
ArtifactName: packageJson

.ci/pr-build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
trigger: none
2+
pr: none
3+
4+
pool:
5+
vmImage: "ubuntu-latest"
6+
7+
steps:
8+
- task: NodeTool@0
9+
inputs:
10+
versionSpec: "10.x"
11+
displayName: "Install Node.js"
12+
13+
- script: |
14+
npm install
15+
displayName: "npm install"
16+
17+
- script: |
18+
npm run build
19+
displayName: "npm run build"
20+
21+
- script: |
22+
npm test
23+
displayName: "npm test"
24+
25+
- task: PublishTestResults@2
26+
displayName: "Publish Test Results junit.xml"
27+
inputs:
28+
testResultsFiles: junit.xml
29+
failTaskOnFailedTests: true
30+
31+
- task: PublishCodeCoverageResults@1
32+
displayName: "Publish code coverage from $(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml"
33+
inputs:
34+
codeCoverageTool: Cobertura
35+
summaryFileLocation: "$(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml"

.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "@reactway"
3+
}

.gitattributes

Lines changed: 0 additions & 5 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,6 @@ packages/react-forms-test
257257

258258
dist
259259
@types
260-
package-lock.json
261260

262261
# MacOS
263262
.DS_Store

.npmignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"trailingComma": "none",
3+
"tabWidth": 4,
4+
"semi": true,
5+
"singleQuote": false,
6+
"printWidth": 140
7+
}

.travis.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.vscode/launch.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

@types/arguments.d.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)