Skip to content

Commit 0e8d4db

Browse files
authored
Merge pull request #6 from ton-connect/first-release
prepare for publish package
2 parents 2a53a3c + 4b886f5 commit 0e8d4db

File tree

8 files changed

+1398
-13
lines changed

8 files changed

+1398
-13
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# npm
77
node_modules
88
npm-debug.log
9+
types
910

1011
# env
1112
.env

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,13 @@ pnpm tonkeeper
133133
- [Node.js](https://nodejs.org/) — main platform for automation implementation
134134
- [Playwright](https://playwright.dev/) + [BDD](https://vitalets.github.io/playwright-bdd/) — framework browser automation used for implementation steps uses in scenarios
135135

136+
137+
## Release
138+
139+
```bash
140+
pnpm release [--dry-run]
141+
```
142+
136143
## TODO research
137144

138145
- https://www.browserstack.com/

changelog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Changelog
2+
3+
## [Unreleased]
4+
5+
### Added
6+
7+
- Provided methods for Ton Connect Widget and Tonkeeper for writing acceptance tests using Playwright

package.json

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,25 @@
11
{
2-
"name": "ton-connect-qa",
2+
"name": "@tonconnect/qa",
33
"version": "1.0.0-alpha.0",
44
"license": "MIT",
55
"type": "module",
6+
"exports": {
7+
"types": "./types/index.d.ts",
8+
"default": "./dist/index.js"
9+
},
10+
"main": "./dist/index.js",
11+
"types": "./types/index.d.ts",
12+
"files": [
13+
"README.md",
14+
"changelog.md",
15+
"contributing.md",
16+
"qa",
17+
"types",
18+
"dist"
19+
],
620
"scripts": {
21+
"build": "rm -fr dist && tsc --declaration --project tsconfig-release.json --outDir dist",
22+
"release": "pnpm build && pnpm lint && pnpm test && pnpm release-it",
723
"test": "npx bddgen && npx playwright test",
824
"tonkeeper": "npx playwright test --config playwright-test.config.ts",
925
"watch:bdd": "nodemon -w ./features -w ./steps -e feature,js,ts --exec \"npx bddgen\"",
@@ -13,6 +29,20 @@
1329
"format": "prettier --write test qa steps features *.ts",
1430
"report": "npx http-server ./qa-report -c-1 -o index.html"
1531
},
32+
"publishConfig": {
33+
"access": "public",
34+
"registry": "https://registry.npmjs.org/"
35+
},
36+
"release-it": {
37+
"github": {
38+
"release": true
39+
},
40+
"plugins": {
41+
"@release-it/keep-a-changelog": {
42+
"filename": "changelog.md"
43+
}
44+
}
45+
},
1646
"prettier": {
1747
"tabWidth": 2,
1848
"useTabs": false,
@@ -27,6 +57,7 @@
2757
},
2858
"devDependencies": {
2959
"@playwright/test": "^1.50.0",
60+
"@release-it/keep-a-changelog": "^7.0.0",
3061
"@synthetixio/synpress": "^4.0.7",
3162
"@synthetixio/synpress-cache": "^0.0.7",
3263
"@synthetixio/synpress-tsconfig": "^0.0.8",
@@ -42,6 +73,7 @@
4273
"playwright-bdd": "^8.1.0",
4374
"prettier": "3.4.2",
4475
"prettier-plugin-gherkin": "^3.1.1",
76+
"release-it": "^19.0.1",
4577
"typescript": "^5.7.2"
4678
},
4779
"dependencies": {

0 commit comments

Comments
 (0)