nitro-web 0.0.2 → 0.0.3
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.
- package/package.json +1 -1
- package/readme.md +4 -4
- package/webpack.config.js +1 -0
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "nitro-web",
|
|
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
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.3",
|
|
6
6
|
"main": "client.js",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"keywords": [
|
package/readme.md
CHANGED
|
@@ -10,7 +10,7 @@ npm i nitro-web
|
|
|
10
10
|
|
|
11
11
|
### Install
|
|
12
12
|
|
|
13
|
-
1. Copy
|
|
13
|
+
1. Copy ./_example into your project
|
|
14
14
|
2. In package.json, replace `"nitro-web": "file:.."` with `"nitro-web": "^0.0.1"`
|
|
15
15
|
3. In package.json, replace `"../.eslintrc.json"` with `"./node_modules/nitro-web/.eslintrc.json"`
|
|
16
16
|
4. In tsconfig.json, remove
|
|
@@ -25,16 +25,16 @@ npm i nitro-web
|
|
|
25
25
|
|
|
26
26
|
### Usage
|
|
27
27
|
|
|
28
|
-
On the client, you can import components and page-components as you would normally. See
|
|
28
|
+
On the client, you can import components and page-components as you would normally. See ./example for further info.
|
|
29
29
|
|
|
30
30
|
```javascript
|
|
31
31
|
import { SigninPage, Toggle, util } from 'nitro-web'
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
On the server, you can import the express router, default models, and controllers. See
|
|
34
|
+
On the server, you can import the express router, default models, and controllers. See ./example for further info.
|
|
35
35
|
|
|
36
36
|
```javascript
|
|
37
|
-
import { setupRouter, util } from 'nitro-web/server
|
|
37
|
+
import { setupRouter, util } from 'nitro-web/server'
|
|
38
38
|
const server = await setupRouter(config)
|
|
39
39
|
server.listen(3001, '0.0.0.0')
|
|
40
40
|
```
|
package/webpack.config.js
CHANGED
|
@@ -116,6 +116,7 @@ export const getConfig = (config) => {
|
|
|
116
116
|
// Dont transpile node modules except for date-fns, which uses ES6
|
|
117
117
|
return path.includes('node_modules')
|
|
118
118
|
&& !path.includes('node_modules/date-fns')
|
|
119
|
+
&& !path.includes('node_modules/nitro-web')
|
|
119
120
|
}
|
|
120
121
|
),
|
|
121
122
|
use: [
|