Skip to content

Commit 7e4bb67

Browse files
feat: change to pnpm;chore: change package version;fix: change CDN URL (#10)
1 parent 01f9bde commit 7e4bb67

8 files changed

Lines changed: 8229 additions & 6325 deletions

File tree

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,11 @@ yarn-error.log*
3838

3939
# IDE
4040
.vscode/settings.json
41+
42+
# PWA
43+
public/sw.js
44+
public/sw.js.map
45+
public/workbox-*.js
46+
public/workbox-*.js.map
47+
public/worker-*.js
48+
public/worker-*.js.map

next.config.js

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
/** @type {import('next').NextConfig} */
22
const withMDX = require('@next/mdx')({
3-
options: {
4-
remarkPlugins: [],
5-
rehypePlugins: [],
6-
providerImportSource: '@mdx-js/react',
7-
},
8-
extension: /\.mdx?$/,
9-
});
3+
options: {
4+
remarkPlugins: [],
5+
rehypePlugins: [],
6+
providerImportSource: '@mdx-js/react',
7+
},
8+
extension: /\.mdx?$/,
9+
}),
10+
withPWA = require('next-pwa')({
11+
dest: 'public',
12+
register: true,
13+
skipWaiting: true,
14+
disable: process.env.NODE_ENV === 'development',
15+
});
1016

11-
module.exports = withMDX({
12-
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'md', 'mdx'],
13-
reactStrictMode: true,
14-
});
17+
module.exports = withPWA(
18+
withMDX({
19+
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'md', 'mdx'],
20+
reactStrictMode: true,
21+
}),
22+
);

package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "@idea2app/next-bootstrap-ts",
3-
"version": "0.4.0",
4-
"description": "React project scaffold based on TypeScript, Next.js & Bootstrap.",
2+
"name": "@open-source-bazaar/web-site",
3+
"version": "0.0.2",
4+
"description": "Open Source Bazaar web-site",
55
"private": true,
66
"scripts": {
77
"prepare": "husky install && npx playwright install",
@@ -17,18 +17,19 @@
1717
"@mdx-js/loader": "^2.0.0",
1818
"@mdx-js/react": "^2.0.0",
1919
"@next/mdx": "^12.1.0",
20-
"idea-react": "^0.10.2",
21-
"next": "12.1.0",
22-
"react": "17.0.2",
23-
"react-bootstrap": "^2.1.2",
24-
"react-dom": "17.0.2",
20+
"idea-react": "^0.27.11",
21+
"next": "^12.3.4",
22+
"next-pwa": "^5.6.0",
23+
"react": "^17.0.2",
24+
"react-bootstrap": "^2.7.0",
25+
"react-dom": "^17.0.2",
2526
"react-typed-component": "^1.0.4"
2627
},
2728
"devDependencies": {
2829
"@jest/types": "^27.5.1",
2930
"@types/jest": "^27.4.1",
3031
"@types/node": "^14.18.12",
31-
"@types/react": "^17.0.39",
32+
"@types/react": "^17.0.53",
3233
"eslint": "^8.10.0",
3334
"eslint-config-next": "^12.1.0",
3435
"husky": "^7.0.4",

pages/_document.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ export default function Document() {
66
<Head>
77
<link
88
rel="stylesheet"
9-
href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
9+
href="https://unpkg.com/bootstrap@5.2.3/dist/css/bootstrap.min.css"
1010
/>
1111
<link
1212
rel="stylesheet"
13-
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.1/font/bootstrap-icons.css"
13+
href="https://unpkg.com/bootstrap-icons@1.10.2/font/bootstrap-icons.css"
1414
/>
1515
</Head>
1616
<body>

0 commit comments

Comments
 (0)