Skip to content

Commit

Permalink
fix: remove global css imports
Browse files Browse the repository at this point in the history
  • Loading branch information
richardxhong committed May 30, 2022
1 parent 9b787c4 commit 887c7b4
Show file tree
Hide file tree
Showing 7 changed files with 643 additions and 645 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: yarn
- run: yarn build:esm && yarn build:cjs
- run: yarn build:esm
- run: yarn semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
File renamed without changes.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ Renders a simple `900 x 900` board, with pieces in their default position:
```jsx
import Chessground from '@react-chess/chessground';

// these styles must be imported somewhere
import 'chessground/assets/chessground.base.css';
import 'chessground/assets/chessground.brown.css';
import 'chessground/assets/chessground.cburnett.css';

ReactDOM.render(
<Chessground />,
document.getElementById('root')
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "build/esm/index.js",
"module": "build/esm/index.js",
"types": "build/esm/index.d.ts",
"type": "module",
"files": [
"build"
],
Expand Down
3 changes: 0 additions & 3 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import React, { useEffect, useRef, useState } from 'react';
import { Chessground as ChessgroundApi } from 'chessground';
import 'chessground/assets/chessground.base.css';
import 'chessground/assets/chessground.brown.css';
import 'chessground/assets/chessground.cburnett.css';

import { Api } from 'chessground/api';
import { Config } from 'chessground/config';
Expand Down
1,277 changes: 636 additions & 641 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 887c7b4

Please sign in to comment.