templar-templates 1.0.0
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 +11 -0
- package/react-basic/files/index.js +1 -0
- package/react-basic/steps.json +45 -0
- package/templates.json +17 -0
package/package.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
console.log('Hello from Templar generated React app!');
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"steps": [
|
|
3
|
+
{
|
|
4
|
+
"type": "file",
|
|
5
|
+
"action": "create",
|
|
6
|
+
"options": {
|
|
7
|
+
"file": "package.json",
|
|
8
|
+
"content": "{\n \"name\": \"my-app\",\n \"version\": \"1.0.0\",\n \"dependencies\": {}\n}"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "file",
|
|
13
|
+
"action": "copy",
|
|
14
|
+
"options": {
|
|
15
|
+
"from": "files",
|
|
16
|
+
"to": "./"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "package",
|
|
21
|
+
"action": "install",
|
|
22
|
+
"options": {
|
|
23
|
+
"packages": {
|
|
24
|
+
"react": "18.3.1"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"type": "file",
|
|
30
|
+
"action": "create",
|
|
31
|
+
"options": {
|
|
32
|
+
"file": "src/index.css",
|
|
33
|
+
"content": "body { margin: 0; }"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"type": "edit",
|
|
38
|
+
"action": "prepend",
|
|
39
|
+
"options": {
|
|
40
|
+
"file": "src/index.css",
|
|
41
|
+
"content": "@import './theme.css';"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
package/templates.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "react-basic",
|
|
4
|
+
"displayName": "React Basic",
|
|
5
|
+
"description": "A simple React template with minimal setup"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"name": "express-api",
|
|
9
|
+
"displayName": "Express API",
|
|
10
|
+
"description": "Production-ready Express.js API boilerplate"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "fullstack",
|
|
14
|
+
"displayName": "Fullstack App",
|
|
15
|
+
"description": "A monorepo with React frontend and Express backend"
|
|
16
|
+
}
|
|
17
|
+
]
|