Skip to content

Commit

Permalink
perf: exclude test assets from publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Jun 14, 2023
1 parent dc19af9 commit 8487a1e
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 326 deletions.
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,14 @@ buildcache
.rts2_cache_es/
.rts2_cache_umd/

#test
# Temp
src/test/js/temp

# Coverage
# Code Climate
cc-reporter
cc-reporter.*
codeclimate.*
coverage.*

# Creds
*.asc
Expand Down
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,18 @@ techradar --input "/path/to/files/*.{json, csv, yml}" --output /radar
npx @qiwi/tech-radar --input "/path/to/files/*.{json, csv, yml}" --output /radar
```

| Option | Description | Default
|---|---|---
| cwd | Current working dir | `process.cwd()`
| input | [glob pattern](https://github.com/mrmlnc/fast-glob) to find radar data: csv/json/yml | `<cwd>/data/**/*.{json,csv,yml}`
| output | Output directory | `<cwd>/radar`
| autoscope | identify same-scoped files as subversions of a single radar | `false`
| base-prefix | base context path for web statics | `tech-radar`
| nav-page | create navigation page | `false`
| nav-title | navigation page title | `📡 Tech radars`
| nav-footer | navigation page footer |
| temp | temporary assets dir | [`tempy.directory()`](https://github.com/sindresorhus/tempy)
| templates | custom 11ty/nunjucks compatible templates directory. Its contents will be merged into default templates dir
| Option | Description | Default |
|-------------|-------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------|
| cwd | Current working dir | `process.cwd()` |
| input | [glob pattern](https://github.com/mrmlnc/fast-glob) to find radar data: csv/json/yml | `<cwd>/data/**/*.{json,csv,yml}` |
| output | Output directory | `<cwd>/radar` |
| autoscope | identify same-scoped files as subversions of a single radar | `false` |
| base-prefix | base context path for web statics | `tech-radar` |
| nav-page | create navigation page | `false` |
| nav-title | navigation page title | `📡 Tech radars` |
| nav-footer | navigation page footer | |
| temp | temporary assets dir | [`tempy.directory()`](https://github.com/sindresorhus/tempy) |
| templates | custom `11ty/nunjucks` compatible templates directory. Its contents will be merged into default templates dir |

### JS API
```js
Expand Down Expand Up @@ -337,7 +337,7 @@ Feel free to open new issues: bug reports, feature requests or questions.
You're always welcome to suggest a PR. Just fork this repo, write some code, add some tests and push your changes.
Any feedback is appreciated.

### Add new radar data
### Update the radar data
1. Clone the repo: `git clone git@github.com:qiwi/tech-radar.git`
2. Install deps: `yarn install`
3. Place a new radar data file to `data/<scope>/<date>.{csv|json|yaml}`
Expand Down
154 changes: 0 additions & 154 deletions codeclimate.0.json

This file was deleted.

154 changes: 0 additions & 154 deletions coverage.total.json

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"type": "module",
"files": [
"src/main"
"src/main/js"
],
"scripts": {
"test": "npm-run-all -p -l lint test:unit test:depcheck",
Expand Down
4 changes: 2 additions & 2 deletions src/test/js/run.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fse from 'fs-extra'
import path from 'path'
import {fileURLToPath} from 'url'
import path from 'node:path'
import {fileURLToPath} from 'node:url'

import { run } from '../../main/js/index.js'
import { getDirs, tempDir } from '../../main/js/util.js'
Expand Down

0 comments on commit 8487a1e

Please sign in to comment.