forked from wbobeirne/datocms-plugin-nextjs-preview
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
129 lines (129 loc) · 3.88 KB
/
package.json
File metadata and controls
129 lines (129 loc) · 3.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
{
"name": "datocms-plugin-nextjs-preview",
"homepage": "https://github.com/wbobeirne/datocms-plugin-nextjs-preview",
"version": "0.1.2",
"description": "Plugin that provides links to preview content in Next.js",
"main": "index.js",
"scripts": {
"start": "concurrently \"yarn dev\" \"yarn localtunnel\"",
"localtunnel": "lt -s datocms-plugin-nextjs-preview --port 5000",
"dev": "NODE_ENV=development webpack-dev-server --port 5000",
"dist": "NODE_ENV=production webpack --progress",
"prepublishOnly": "rimraf lib dist && mkdir dist && npm run dist",
"addToProject": "yo datocms-plugin:add-to-project",
"eslint:fix": "eslint src/*.jsx --fix"
},
"keywords": [
"datocms",
"sidebar",
"datocms-plugin",
"json-field",
"next.js"
],
"files": [
"dist",
"docs"
],
"author": "Will O'Beirne <wbobeirne@gmail.com>",
"license": "ISC",
"datoCmsPlugin": {
"title": "Next.js Preview Links",
"previewImage": "docs/preview.png",
"coverImage": "docs/cover.png",
"entryPoint": "dist/index.html",
"pluginType": "sidebar",
"fieldTypes": [
"json"
],
"parameters": {
"global": [
{
"id": "instanceUrl",
"label": "Site instance url",
"type": "string",
"required": true,
"default": false,
"hint": "The url of your Next.js site deployment"
},
{
"id": "previewPath",
"label": "Preview API path",
"type": "string",
"required": true,
"default": "/api/preview",
"hint": "Next.js API path to link to to enable previews"
},
{
"id": "previewSecret",
"label": "Preview secret",
"type": "string",
"required": false,
"default": false,
"hint": "Secret to append to preview link query parameter, leave blank if none is needed"
},
{
"id": "developmentMode",
"label": "Development mode",
"type": "boolean",
"default": false,
"hint": "Shows debug messages in console"
}
],
"instance": [
{
"id": "entityPath",
"label": "Entity path",
"type": "string",
"required": true,
"hint": "Path to the entity on your site. Fill in any dynamic fields with $field_name, e.g. /posts/$slug"
}
]
}
},
"devDependencies": {
"@babel/cli": "^7.0.0-beta.54",
"@babel/core": "^7.0.0-beta.54",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/plugin-proposal-decorators": "^7.1.2",
"@babel/preset-env": "^7.0.0-beta.54",
"@babel/preset-react": "^7.0.0",
"@babel/register": "^7.0.0-beta.54",
"babel-eslint": "^8.2.6",
"babel-loader": "^8.0.0-beta",
"concurrently": "^5.3.0",
"css-loader": "^1.0.0",
"eslint": "^5.3.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-import-resolver-webpack": "^0.10.1",
"eslint-loader": "^2.1.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-react": "^7.11.0",
"generator-datocms-plugin": "^1.0.3",
"html-webpack-include-assets-plugin": "^1.0.5",
"html-webpack-inline-source-plugin": "^0.0.10",
"html-webpack-plugin": "^3.2.0",
"localtunnel": "^2.0.0",
"mini-css-extract-plugin": "^0.4.3",
"node-sass": "^4.9.3",
"sass-loader": "^7.1.0",
"style-loader": "^0.23.0",
"webpack": "^4.16.1",
"webpack-cli": "^3.1.0",
"webpack-dev-server": "^3.1.10",
"yo": "^2.0.5"
},
"dependencies": {
"prop-types": "^15.6.2",
"react": "^16.5.2",
"react-dom": "^16.5.2"
},
"resolutions": {
"eslint-utils": ">=1.4.1",
"https-proxy-agent": ">=2.2.3",
"lodash": ">=4.17.12",
"mixin-deep": ">=1.3.2 <2.0.0 || >=2.0.1",
"set-value": ">=2.0.1 <3.0.0 || >=3.0.1"
}
}