Skip to content

Commit 3196b79

Browse files
migrate to pnpm, fixate strict dependencies versions (#31)
* update: GH handle in license * update: fixate strict versions of dependencies * update: dev deps to the latest minor/patch versions * migrate: from [email protected] to pnpm * update: TODO with current tasks * polishing * infra: update CI to use pnpm
1 parent dc1d733 commit 3196b79

File tree

7 files changed

+5376
-5556
lines changed

7 files changed

+5376
-5556
lines changed

.github/workflows/release.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,20 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v3
1111

12+
- name: Setup pnpm
13+
uses: pnpm/action-setup@v2
14+
with:
15+
version: 7.17.0
16+
1217
- name: Setup node.js v14.x
1318
uses: actions/setup-node@v3
1419
with:
1520
node-version: '14'
1621
registry-url: https://registry.npmjs.org/
17-
cache: yarn
22+
cache: pnpm
1823

19-
- run: yarn --ignore-scripts
20-
- run: yarn test:cov
24+
- run: pnpm install --frozen-lockfile --ignore-scripts=true
25+
- run: pnpm test:cov
2126
- run: npm publish --access public
2227
env:
2328
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

.github/workflows/test.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,19 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v3
1313

14+
- name: Setup pnpm
15+
uses: pnpm/action-setup@v2
16+
with:
17+
version: 7.17.0
18+
1419
- name: Setup node.js v14.x
1520
uses: actions/setup-node@v3
1621
with:
1722
node-version: '14'
18-
cache: yarn
23+
cache: 'pnpm'
1924

2025
- name: Install deps
21-
run: yarn --ignore-scripts
26+
run: pnpm install --frozen-lockfile --ignore-scripts=true
2227

2328
- name: Run tests
24-
run: yarn test:cov
29+
run: pnpm test:cov

TODO.md

+31-12
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,31 @@
1-
--------
2-
Alfred-translayta
3-
--------
4-
5-
# TODO
6-
`[X]` regerate favorites.json with `ukrainian` translations
7-
`[X]` clean-up the show-settings.js ⤵️
8-
`[X]` finish `Settings -> Favs exports` command
9-
`[ ]` add `cache` support for CI, update actions versions
10-
`[ ]` check the list of `shipped files`, npm package became a bit bloated
11-
`[ ]` migrate to `[email protected]` - the current one is `0.11.1`. Looks like this will require migration to `ESM`
12-
`[ ]` migrate to `pnpm`?
1+
# TODO for Alfred-translayta
2+
3+
### NeXT
4+
5+
- `[X]` migrate to `pnpm`?
6+
- `[X]` bump all deps versions to the latest minor/patch versions
7+
- `[X]` convert all dependencies to strict version
8+
9+
10+
## Backlog
11+
12+
#### General
13+
14+
- `[ ]` review all `NOTE` and `TODO` and convert them to TODO
15+
- `[ ]` check the list of `shipped files`, npm package became a bit bloated
16+
- `[ ]` migrate to `[email protected]` - the current one is `0.11.1`. Looks like this will require migration to `ESM`
17+
- `[ ]` update `alfy-test` and add more coverage?!
18+
19+
----------------------------
20+
21+
#### Chore
22+
23+
- `[ ]` migrate to `main` branch + update CI
24+
25+
26+
### Done
27+
28+
- `[X]` regerate favorites.json with `ukrainian` translations
29+
- `[X]` clean-up the show-settings.js ⤵️
30+
- `[X]` finish `Settings -> Favs exports` command
31+
- `[X]` add `cache` support for CI, update actions versions

license

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) Eugene Chulkov <[email protected]> (https://github.com/eugenechu)
3+
Copyright (c) Eugene Chulkov <[email protected]> (https://github.com/dev99problems)
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21-
THE SOFTWARE.
21+
THE SOFTWARE.

package.json

+10-11
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,15 @@
77
"postinstall": "alfy-init",
88
"preuninstall": "alfy-cleanup",
99
"test": "jest --config=jest.config.js",
10-
"test:cov": "yarn test --collectCoverage=true --collectCoverageFrom=src/**/*.js"
10+
"test:cov": "pnpm test -- --collectCoverage=true --collectCoverageFrom=src/**/*.js"
1111
},
1212
"repository": {
1313
"type": "git",
1414
"url": "[email protected]:dev99problems/alfred-translayta.git"
1515
},
1616
"author": {
1717
"name": "Eugene Chulkov",
18-
"email": "[email protected]",
19-
"url": "https://twitter.com/dev99problems"
18+
"email": "[email protected]"
2019
},
2120
"engines": {
2221
"node": ">=14"
@@ -38,21 +37,21 @@
3837
},
3938
"homepage": "https://github.com/dev99problems/alfred-translayta#readme",
4039
"dependencies": {
41-
"@vitalets/google-translate-api": "^5.0.0",
40+
"@vitalets/google-translate-api": "5.1.0",
4241
"alfy": "0.11.1",
43-
"lodash.get": "^4.4.2"
42+
"lodash.get": "4.4.2"
4443
},
4544
"devDependencies": {
46-
"alfy-test": "^0.4.0",
47-
"husky": "^3.0.8",
48-
"jest": "^26.6.3",
49-
"lint-staged": "^9.4.1",
50-
"prettier": "^1.18.2"
45+
"alfy-test": "0.4.2",
46+
"husky": "3.1.0",
47+
"jest": "26.6.3",
48+
"lint-staged": "9.5.0",
49+
"prettier": "1.19.1"
5150
},
5251
"husky": {
5352
"hooks": {
5453
"pre-commit": "lint-staged",
55-
"pre-push": "yarn test"
54+
"pre-push": "pnpm test"
5655
}
5756
},
5857
"lint-staged": {

0 commit comments

Comments
 (0)