nitro-web 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,8 +2,10 @@ import GithubIcon from '../../../client/imgs/github.svg'
|
|
|
2
2
|
|
|
3
3
|
export function GithubLink({ filename }) {
|
|
4
4
|
const base = 'https://github.com/boycce/nitro-web/blob/master/'
|
|
5
|
-
//
|
|
6
|
-
|
|
5
|
+
// Filenames are relative to the webpack start directory
|
|
6
|
+
// 1. Remove ../ from filename (i.e. for _example build)
|
|
7
|
+
// 2. Remove node_modules/nitro-web/ from filename (i.e. for packages using nitro-web)
|
|
8
|
+
const link = base + filename.replace(/^(\.\.\/|.*node_modules\/nitro-web\/)/, '')
|
|
7
9
|
|
|
8
10
|
return (
|
|
9
11
|
// <a href={link}>Go to Github</a>
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Nitro is a battle-tested, modular base project to turbocharge your projects, styled using Tailwind 🚀",
|
|
4
4
|
"repository": "github:boycce/nitro-web",
|
|
5
5
|
"homepage": "https://boycce.github.io/nitro-web/",
|
|
6
|
-
"version": "0.0.
|
|
6
|
+
"version": "0.0.11",
|
|
7
7
|
"main": "./client/index.js",
|
|
8
8
|
"types": "./types/client/index.d.ts",
|
|
9
9
|
"type": "module",
|
package/readme.md
CHANGED
|
@@ -11,7 +11,7 @@ npm i nitro-web
|
|
|
11
11
|
### Install
|
|
12
12
|
|
|
13
13
|
1. Copy ./_example into your project
|
|
14
|
-
2. In package.json, replace `"nitro-web": "file:.."` with `"nitro-web": "~0.0.
|
|
14
|
+
2. In package.json, replace `"nitro-web": "file:.."` with `"nitro-web": "~0.0.11"`
|
|
15
15
|
3. In package.json, replace `"../.eslintrc.json"` with `"./node_modules/nitro-web/.eslintrc.json"`
|
|
16
16
|
4. Run `npm i`
|
|
17
17
|
|