Skip to content

Commit

Permalink
v3.2.0 - use @bevry/fs-* deps
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Nov 18, 2023
1 parent e7e1dcc commit 283b9b7
Show file tree
Hide file tree
Showing 6 changed files with 150 additions and 52 deletions.
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# History

## v3.2.0 2023 November 15

- Use the new `@bevry/fs-*` dependencies
- Updated dependencies, [base files](https://github.com/bevry/base), and [editions](https://editions.bevry.me) using [boundation](https://github.com/bevry/boundation)

## v3.1.0 2023 November 15

- Updated dependencies, [base files](https://github.com/bevry/base), and [editions](https://editions.bevry.me) using [boundation](https://github.com/bevry/boundation)
Expand Down
164 changes: 125 additions & 39 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 12 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Projectz",
"name": "projectz",
"version": "3.1.0",
"version": "3.2.0",
"description": "Stop wasting time syncing and updating your project's README and Package Files!",
"homepage": "https://github.com/bevry/projectz",
"license": "Artistic-2.0",
Expand Down Expand Up @@ -149,9 +149,11 @@
}
},
"dependencies": {
"@bevry/file": "^2.2.0",
"@bevry/json": "^1.8.0",
"badges": "^4.34.0",
"@bevry/fs-list": "^2.0.0",
"@bevry/fs-read": "^1.0.0",
"@bevry/fs-write": "^1.0.0",
"@bevry/json": "^1.9.0",
"badges": "^4.35.0",
"caterpillar": "^6.11.0",
"fellow": "^6.25.0",
"get-cli-arg": "^8.1.0",
Expand All @@ -161,11 +163,11 @@
},
"devDependencies": {
"@bevry/update-contributors": "^1.23.0",
"@types/node": "^20.9.0",
"@types/node": "^20.9.1",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"assert-helpers": "^11.4.0",
"eslint": "^8.53.0",
"eslint": "^8.54.0",
"eslint-config-bevry": "^4.0.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.1",
Expand All @@ -176,7 +178,7 @@
"surge": "^0.23.1",
"typedoc": "^0.25.3",
"typescript": "5.2.2",
"valid-directory": "^4.2.0"
"valid-directory": "^4.4.0"
},
"scripts": {
"our:bin": "node ./bin.cjs",
Expand Down Expand Up @@ -218,5 +220,8 @@
},
"boundation": {
"desiredNodeOnly": true
},
"testen": {
"serial": true
}
}
10 changes: 6 additions & 4 deletions source/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
// First we need to import the libraries we require.

// Load in the file system libraries
import { readFile, readDirectory, writeFile } from '@bevry/file'
import list from '@bevry/fs-list'
import read from '@bevry/fs-read'
import write from '@bevry/fs-write'
import { resolve, join, dirname } from 'path'

// Handle configuration files
Expand Down Expand Up @@ -125,7 +127,7 @@ export class Projectz {
const ReadmeFiles = Object.keys(this.filenamesForReadmeFiles)

// Load
const files = await readDirectory(this.cwd)
const files = await list(this.cwd)
for (const file of files) {
const filePath = join(this.cwd, file)

Expand All @@ -142,7 +144,7 @@ export class Projectz {
for (const key of ReadmeFiles) {
if (file.toLowerCase().startsWith(key)) {
this.log('info', `Reading meta file: ${filePath}`)
const data = await readFile(filePath)
const data = await read(filePath)
this.filenamesForReadmeFiles[key] = file
this.dataForReadmeFiles[key] = data.toString()
}
Expand Down Expand Up @@ -615,7 +617,7 @@ export class Projectz {
const filepath = join(this.cwd, filename)
this.log('info', `Saving readme file: ${filepath}`)
const content = enhancedReadmesData[key]
return writeFile(filepath, content)
return write(filepath, content)
},
),
])
Expand Down
2 changes: 1 addition & 1 deletion test-fixtures/out-expected/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<span class="badge-daviddm"><a href="https://david-dm.org/bevry/ambi" title="View the status of this project's dependencies on DavidDM"><img src="https://img.shields.io/david/bevry/ambi.svg" alt="Dependency Status" /></a></span>
<span class="badge-daviddmdev"><a href="https://david-dm.org/bevry/ambi#info=devDependencies" title="View the status of this project's development dependencies on DavidDM"><img src="https://img.shields.io/david/dev/bevry/ambi.svg" alt="Dev Dependency Status" /></a></span>
<br class="badge-separator" />
<span class="badge-slackin"><a href="https://slack.bevry.me" title="Join this project's slack community"><img src="https://slack.bevry.me/badge.svg" alt="Slack community badge" /></a></span>
<span class="badge-slackin"><a href="https://slack.bevry.me" title="Join this project's community on Slack"><img src="https://slack.bevry.me/badge.svg" alt="Slack community badge" /></a></span>
<span class="badge-patreon"><a href="https://patreon.com/bevry" title="Donate to this project using Patreon"><img src="https://img.shields.io/badge/patreon-donate-yellow.svg" alt="Patreon donate button" /></a></span>
<span class="badge-gratipay"><a href="https://gratipay.com/bevry" title="Donate weekly to this project using Gratipay"><img src="https://img.shields.io/badge/gratipay-donate-yellow.svg" alt="Gratipay donate button" /></a></span>
<span class="badge-flattr"><a href="https://flattr.com/thing/344188/balupton-on-Flattr" title="Donate to this project using Flattr"><img src="https://img.shields.io/badge/flattr-donate-yellow.svg" alt="Flattr donate button" /></a></span>
Expand Down
2 changes: 1 addition & 1 deletion test-fixtures/src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<span class="badge-daviddm"><a href="https://david-dm.org/bevry/ambi" title="View the status of this project's dependencies on DavidDM"><img src="https://img.shields.io/david/bevry/ambi.svg" alt="Dependency Status" /></a></span>
<span class="badge-daviddmdev"><a href="https://david-dm.org/bevry/ambi#info=devDependencies" title="View the status of this project's development dependencies on DavidDM"><img src="https://img.shields.io/david/dev/bevry/ambi.svg" alt="Dev Dependency Status" /></a></span>
<br class="badge-separator" />
<span class="badge-slackin"><a href="https://slack.bevry.me" title="Join this project's slack community"><img src="https://slack.bevry.me/badge.svg" alt="Slack community badge" /></a></span>
<span class="badge-slackin"><a href="https://slack.bevry.me" title="Join this project's community on Slack"><img src="https://slack.bevry.me/badge.svg" alt="Slack community badge" /></a></span>
<span class="badge-patreon"><a href="https://patreon.com/bevry" title="Donate to this project using Patreon"><img src="https://img.shields.io/badge/patreon-donate-yellow.svg" alt="Patreon donate button" /></a></span>
<span class="badge-gratipay"><a href="https://gratipay.com/bevry" title="Donate weekly to this project using Gratipay"><img src="https://img.shields.io/badge/gratipay-donate-yellow.svg" alt="Gratipay donate button" /></a></span>
<span class="badge-flattr"><a href="https://flattr.com/thing/344188/balupton-on-Flattr" title="Donate to this project using Flattr"><img src="https://img.shields.io/badge/flattr-donate-yellow.svg" alt="Flattr donate button" /></a></span>
Expand Down

0 comments on commit 283b9b7

Please sign in to comment.