Skip to content

Commit

Permalink
feat: pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
vuki656 committed Dec 1, 2021
1 parent b498e80 commit 4c52b4d
Show file tree
Hide file tree
Showing 7 changed files with 7,232 additions and 4,392 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -3,3 +3,4 @@ node_modules
yarn-error.log
.npmrc
lib
.yarn/cache
Binary file added .yarn/install-state.gz
Binary file not shown.
768 changes: 768 additions & 0 deletions .yarn/releases/yarn-3.1.1.cjs

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions .yarnrc.yml
@@ -0,0 +1,8 @@
nodeLinker: node-modules

npmScopes:
rimac-automobili:
npmAlwaysAuth: true
npmAuthToken: "${NPM_TOKEN:-default}"

yarnPath: .yarn/releases/yarn-3.1.1.cjs
31 changes: 31 additions & 0 deletions bitbucket-pipelines.yml
@@ -0,0 +1,31 @@
image: node:16.13.0

pipelines:
default:
- step:
name: Install
script:
- yarn install
artifacts:
- node_modules/**
- parallel:
- step:
name: Lint
script:
- yarn lint
- step:
name: Test
script:
- yarn test
- step:
name: Build
script:
- yarn build
artifacts:
- lib/**
- step:
name: Publish
script:
- pipe: atlassian/npm-publish:0.3.2
variables:
NPM_TOKEN: $NPM_TOKEN
9 changes: 6 additions & 3 deletions package.json
Expand Up @@ -4,12 +4,14 @@
"author": "Rimac Automobili d.o.o.",
"license": "UNLICENSED",
"main": "lib/index.js",
"files": [
"lib"
],
"scripts": {
"lint": "eslint ./src/**/* --quiet",
"lint": "eslint './src/**/*' --quiet",
"build": "tsc",
"test": "jest --config=./jest.config.ts --runInBand"
},
"dependencies": {},
"devDependencies": {
"@rimac-automobili/eslint-config": "^20.0.1",
"@types/node": "^16.11.11",
Expand All @@ -26,5 +28,6 @@
},
"engines": {
"node": ">=v14.17.5"
}
},
"packageManager": "yarn@3.1.1"
}
10,807 changes: 6,418 additions & 4,389 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 4c52b4d

Please sign in to comment.