create-payload-app 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/templates/js-blank/server.js +5 -0
- package/dist/templates/js-blog/server.js +5 -0
- package/dist/templates/js-todo/server.js +5 -0
- package/dist/templates/ts-blank/src/server.ts +5 -0
- package/dist/templates/ts-blog/src/server.ts +5 -0
- package/dist/templates/ts-todo/src/server.ts +5 -0
- package/package.json +7 -5
@@ -4,6 +4,11 @@ const payload = require('payload');
|
|
4
4
|
require('dotenv').config();
|
5
5
|
const app = express();
|
6
6
|
|
7
|
+
// Redirect root to Admin panel
|
8
|
+
app.get('/', (_, res) => {
|
9
|
+
res.redirect('/admin');
|
10
|
+
});
|
11
|
+
|
7
12
|
// Initialize Payload
|
8
13
|
payload.init({
|
9
14
|
secret: process.env.PAYLOAD_SECRET,
|
@@ -4,6 +4,11 @@ const payload = require('payload');
|
|
4
4
|
require('dotenv').config();
|
5
5
|
const app = express();
|
6
6
|
|
7
|
+
// Redirect root to Admin panel
|
8
|
+
app.get('/', (_, res) => {
|
9
|
+
res.redirect('/admin');
|
10
|
+
});
|
11
|
+
|
7
12
|
// Initialize Payload
|
8
13
|
payload.init({
|
9
14
|
secret: process.env.PAYLOAD_SECRET,
|
@@ -4,6 +4,11 @@ const payload = require('payload');
|
|
4
4
|
require('dotenv').config();
|
5
5
|
const app = express();
|
6
6
|
|
7
|
+
// Redirect root to Admin panel
|
8
|
+
app.get('/', (_, res) => {
|
9
|
+
res.redirect('/admin');
|
10
|
+
});
|
11
|
+
|
7
12
|
// Initialize Payload
|
8
13
|
payload.init({
|
9
14
|
secret: process.env.PAYLOAD_SECRET,
|
@@ -4,6 +4,11 @@ import payload from 'payload';
|
|
4
4
|
require('dotenv').config();
|
5
5
|
const app = express();
|
6
6
|
|
7
|
+
// Redirect root to Admin panel
|
8
|
+
app.get('/', (_, res) => {
|
9
|
+
res.redirect('/admin');
|
10
|
+
});
|
11
|
+
|
7
12
|
// Initialize Payload
|
8
13
|
payload.init({
|
9
14
|
secret: process.env.PAYLOAD_SECRET,
|
@@ -4,6 +4,11 @@ import payload from 'payload';
|
|
4
4
|
require('dotenv').config();
|
5
5
|
const app = express();
|
6
6
|
|
7
|
+
// Redirect root to Admin panel
|
8
|
+
app.get('/', (_, res) => {
|
9
|
+
res.redirect('/admin');
|
10
|
+
});
|
11
|
+
|
7
12
|
// Initialize Payload
|
8
13
|
payload.init({
|
9
14
|
secret: process.env.PAYLOAD_SECRET,
|
@@ -4,6 +4,11 @@ import payload from 'payload';
|
|
4
4
|
require('dotenv').config();
|
5
5
|
const app = express();
|
6
6
|
|
7
|
+
// Redirect root to Admin panel
|
8
|
+
app.get('/', (_, res) => {
|
9
|
+
res.redirect('/admin');
|
10
|
+
});
|
11
|
+
|
7
12
|
// Initialize Payload
|
8
13
|
payload.init({
|
9
14
|
secret: process.env.PAYLOAD_SECRET,
|
package/package.json
CHANGED
@@ -8,7 +8,9 @@
|
|
8
8
|
"build": "tsc && yarn copyfiles",
|
9
9
|
"copyfiles": "copyfiles -u 1 \"src/templates/**\" dist",
|
10
10
|
"typecheck": "tsc --noEmit",
|
11
|
-
"lint": "eslint \"src/**/*.ts\""
|
11
|
+
"lint": "eslint \"src/**/*.ts\"",
|
12
|
+
"test": "jest",
|
13
|
+
"prepublish": "yarn test && yarn build"
|
12
14
|
},
|
13
15
|
"files": [
|
14
16
|
"package.json",
|
@@ -29,12 +31,12 @@
|
|
29
31
|
"prompts": "^2.4.0",
|
30
32
|
"terminal-link": "^2.1.1"
|
31
33
|
},
|
32
|
-
"version": "0.3.
|
34
|
+
"version": "0.3.3",
|
33
35
|
"devDependencies": {
|
34
36
|
"@types/command-exists": "^1.2.0",
|
35
37
|
"@types/degit": "^2.8.3",
|
36
38
|
"@types/fs-extra": "^9.0.12",
|
37
|
-
"@types/jest": "^27.0.
|
39
|
+
"@types/jest": "^27.0.3",
|
38
40
|
"@types/node": "^16.6.2",
|
39
41
|
"@types/prompts": "^2.4.0",
|
40
42
|
"@typescript-eslint/eslint-plugin": "^4.29.2",
|
@@ -44,9 +46,9 @@
|
|
44
46
|
"eslint-config-airbnb-base": "^14.2.1",
|
45
47
|
"eslint-config-prettier": "^8.3.0",
|
46
48
|
"eslint-plugin-prettier": "^3.4.0",
|
47
|
-
"jest": "^27.
|
49
|
+
"jest": "^27.4.5",
|
48
50
|
"prettier": "^2.3.2",
|
49
|
-
"ts-jest": "^27.
|
51
|
+
"ts-jest": "^27.1.1",
|
50
52
|
"typescript": "^4.3.5"
|
51
53
|
}
|
52
54
|
}
|