You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build the minified bundled dist files: (NOTE: from lila you will likely then need to restart the build as it does not watch for changes on the minified file):
112
+
### Build the minified bundled dist files: (NOTE: from lila you will likely then need to restart the build as it does not watch for changes on the minified file):
113
113
114
114
```sh
115
115
pnpm dist
116
116
```
117
117
118
-
run tests:
118
+
### Run tests:
119
119
120
120
```sh
121
121
pnpm run test --watch
122
122
pnpm run test fen --watch
123
123
```
124
124
125
-
Before committing:
125
+
### Before committing:
126
126
127
127
```sh
128
128
pnpm run lint
129
129
pnpm run format
130
130
```
131
+
132
+
### Watch chessground changes from another project:
133
+
134
+
In other project:
135
+
136
+
- declare the link towards chessground (from project's `package.json`)
137
+
138
+
```json
139
+
"dependencies": {
140
+
...
141
+
"chessground": "link:/path/to/chessground",
142
+
...
143
+
}
144
+
```
145
+
146
+
In chessground:
147
+
148
+
- create `.env.local` file based on .env.local.default
letabalonePieces: cg.PiecesDiff=state.pieces,// because captures are computed in abaloneUpdatePiecesFromMove, it is better to store the updated pieces and the capture before the switch responsible of setPieces
0 commit comments