Skip to content

Commit

Permalink
perf(release-hooks): tech release
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Jul 13, 2018
1 parent c53ec22 commit f8f6e60
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions packages/uniconfig-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Core uniconfig layer: basic ifaces, utils, entry point, plugin API




# Plugin API
`uniconfig` features may be significantly extended with plugins.
```javascript
Expand Down
1 change: 1 addition & 0 deletions packages/uniconfig-plugin-yaml/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Uniconfig YAML plugin




# Usage
```javascript
import uniconfig, {rollupPlugin} from '@qiwi/uniconfig'
Expand Down
7 changes: 0 additions & 7 deletions scripts/release-hooks/decrement.sh

This file was deleted.

12 changes: 9 additions & 3 deletions scripts/release-hooks/isLastPack.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
const fs = require('fs')
const path = require('path')
const exec = require('child_process').execSync;

//const DECREMENT = path.resolve(__dirname, './decrement.sh')
const COUNT = path.resolve(__dirname, './count.tmp')
const DROP_TAG = path.resolve(__dirname, './drop_last_tag.sh')

const total = +process.env.RH_TOTAL
let count = +process.env.RH_COUNT

console.log('release-hooks: current path is ' + __dirname)

if (fs.existsSync(COUNT)) {
count = +fs.readFileSync(COUNT)
}

if (count > 0) {
try {
if (count !== total) {
Expand All @@ -18,13 +24,13 @@ if (count > 0) {
exec(`cd ${__dirname}`)
}
count -= 1
process.env.RH_COUNT = count
//exec(`source ${DECREMENT}`)
fs.writeFileSync(COUNT, count + '')

} catch (err) {
console.log('release-hooks [error]: ', err)
}
}

const isLastPack = count < 1

console.log('release-hooks: packs left: ', count)
Expand Down

0 comments on commit f8f6e60

Please # to comment.