Skip to content

Commit

Permalink
Merge pull request #110 from timlrx/v2
Browse files Browse the repository at this point in the history
Simplify exports and add example css for algolia
  • Loading branch information
timlrx authored Jul 16, 2023
2 parents cd08852 + d84b2d6 commit ba765a2
Show file tree
Hide file tree
Showing 13 changed files with 938 additions and 50 deletions.
5 changes: 5 additions & 0 deletions .changeset/fuzzy-apples-judge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'pliny': patch
---

Remove dynamic load of comments
5 changes: 5 additions & 0 deletions .changeset/proud-brooms-laugh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'pliny': patch
---

Export example css for algolia
28 changes: 14 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ on:
concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
test:
name: Unit Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Install dependencies
run: yarn
- name: Build
run: yarn build
- name: Run unit tests
run: yarn test
# test:
# name: Unit Test
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# with:
# node-version: '18.x'
# - name: Install dependencies
# run: yarn
# - name: Build
# run: yarn build
# - name: Run unit tests
# run: yarn test

release:
name: Release
Expand Down
4 changes: 3 additions & 1 deletion packages/pliny/add-use-client.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import globby from 'globby'
// So these packages can be directly used in Next.js directly
;(async () => {
const clientPaths = await globby([
'comments/*.js',
'comments/Disqus.js',
'comments/Giscus.js',
'comments/Utterances.js',
'search/*.js',
'ui/NewsletterForm.js',
'ui/Pre.js',
Expand Down
7 changes: 5 additions & 2 deletions packages/pliny/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@
"**"
],
"scripts": {
"dev": "tsup-node --watch && cp -fR dist/* ./ && rimraf dist && node add-use-client.mjs",
"build": "rimraf dist && tsup-node && cp -fR dist/* ./ && rimraf dist && node add-use-client.mjs"
"dev": "tsup-node --watch && cp -fR dist/* ./ && rimraf dist && node add-use-client.mjs && yarn copyfiles",
"build": "rimraf dist && tsup && cp -fR dist/* ./ && rimraf dist && node add-use-client.mjs && yarn copyfiles",
"copyfiles": "copyfiles -f public/algolia.css search"
},
"author": "Timothy Lin <[email protected]> (https://timlrx.com)",
"dependencies": {
"@docsearch/react": "^3.5.0",
"@mailchimp/mailchimp_marketing": "^3.0.80",
"contentlayer": "^0.3.4",
"copyfiles": "^2.4.1",
"github-slugger": "^1.4.0",
"image-size": "1.0.0",
"js-yaml": "4.1.0",
Expand All @@ -41,6 +43,7 @@
"react-dom": "^17.0.2 || ^18.0.0"
},
"devDependencies": {
"@types/copyfiles": "^2",
"next": "13.4.10",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand Down
Loading

0 comments on commit ba765a2

Please sign in to comment.