5e9a89ca86
* origin/prettier-2: prettier: format all files prettier: no need to lint crowdin prs prettier: also format handwritten files in public prettier: mirror chessground scripts and more excludes title Lint Add lint Arrow parens 1000 Remove xml 1000 Single Add XML Settings Settings prettier ignore Add support for Prettier |
||
---|---|---|
.. | ||
@build/rollupProject | ||
@types | ||
analyse | ||
ceval | ||
challenge | ||
chat | ||
chess | ||
cli | ||
common | ||
dasher | ||
dgt | ||
editor | ||
game | ||
insight | ||
learn | ||
lobby | ||
msg | ||
notify | ||
nvui | ||
palantir | ||
puzzle | ||
round | ||
serviceWorker | ||
simul | ||
site | ||
speech | ||
storm | ||
swiss | ||
tournament | ||
tournamentCalendar | ||
tournamentSchedule | ||
tree | ||
README.md | ||
build | ||
gulpfile.js | ||
package.json | ||
tsconfig.base.json | ||
tsconfig_module.base.json |
README.md
Client-side modules
CSS
cd ui/
yarn install # only the first time
gulp css
This incrementally rebuilds the sass for all ui/ modules on file change.
Hack
The structure of a CSS module is as follows:
- css/
- forum/
- _forum.scss # imports the files below
- _post.scss
- _search.scss
- ...
- build/
- _forum.scss # imports dependencies and `../forum/forum`.
- forum.light.scss # generated
- forum.dark.scss # generated
- forum.transp.scss # generated