@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oss-ma/tpl",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "description": "Generate, enforce and maintain clean project architectures",
5
5
  "type": "module",
6
6
  "bin": {
@@ -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 ci --ignore-scripts"
23
+ - run: "npm install --ignore-scripts"
22
24
  when: "{{packageManager}} == npm"
23
25
 
24
26
  # pnpm — frozen install, no scripts
@@ -1,7 +0,0 @@
1
- import { Example } from "../features/example/Example.js";
2
- export function App() {
3
- return (<main style={{ padding: 16 }}>
4
- <h1>{{ appName }}</h1>
5
- <Example />
6
- </main>);
7
- }
@@ -1,6 +0,0 @@
1
- import React from "react";
2
- import ReactDOM from "react-dom/client";
3
- import { App } from "./App.js";
4
- ReactDOM.createRoot(document.getElementById("root")).render(<React.StrictMode>
5
- <App />
6
- </React.StrictMode>);
@@ -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
- }
@@ -1,10 +0,0 @@
1
- export function Button({ children, onClick }) {
2
- return (<button onClick={onClick} style={{
3
- padding: "8px 12px",
4
- borderRadius: 10,
5
- border: "1px solid #ddd",
6
- cursor: "pointer"
7
- }}>
8
- {children}
9
- </button>);
10
- }