@oss-ma/tpl 1.0.24 → 1.0.26
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/resources/templates/react-ts/template.yaml +3 -1
- package/resources/templates/react-ts/files/src/app/App.js +0 -7
- package/resources/templates/react-ts/files/src/app/main.js +0 -6
- package/resources/templates/react-ts/files/src/features/example/Example.js +0 -10
- package/resources/templates/react-ts/files/src/shared/ui/Button.js +0 -10
package/package.json
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# cli/resources/templates/react-ts/template.yaml
|
|
2
|
+
|
|
1
3
|
name: react-ts
|
|
2
4
|
version: 1.0.0
|
|
3
5
|
description: "Template React + TypeScript (Vite) with lint/format/test/build + CI + ADR"
|
|
@@ -18,7 +20,7 @@ hooks:
|
|
|
18
20
|
- run: "git init"
|
|
19
21
|
|
|
20
22
|
# npm — frozen install, no scripts
|
|
21
|
-
- run: "npm
|
|
23
|
+
- run: "npm install --ignore-scripts"
|
|
22
24
|
when: "{{packageManager}} == npm"
|
|
23
25
|
|
|
24
26
|
# pnpm — frozen install, no scripts
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { useState } from "react";
|
|
2
|
-
import { Button } from "../../shared/ui/Button.js";
|
|
3
|
-
export function Example() {
|
|
4
|
-
const [msg, setMsg] = useState(null);
|
|
5
|
-
return (<section style={{ marginTop: 16 }}>
|
|
6
|
-
<p>Feature module example.</p>
|
|
7
|
-
<Button onClick={() => setMsg("Hello!")}>Click</Button>
|
|
8
|
-
{msg && <p style={{ marginTop: 8 }}>{msg}</p>}
|
|
9
|
-
</section>);
|
|
10
|
-
}
|