create-chayns-app 1.2.13 → 1.3.0-beta.1

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.
Files changed (31) hide show
  1. package/dist/index.cjs +90 -88
  2. package/package.json +6 -6
  3. package/templates/api-v5/page/src/{index.jsx → bootstrap.jsx} +1 -2
  4. package/templates/api-v5/page/src/components/App.jsx +0 -1
  5. package/templates/api-v5/page/src/components/AppWrapper.jsx +0 -1
  6. package/templates/api-v5/page/src/index.js +2 -0
  7. package/templates/api-v5/page-module/src/components/App.jsx +1 -1
  8. package/templates/api-v5/page-module/src/components/AppWrapper.jsx +0 -1
  9. package/templates/api-v5/page-module-redux/src/components/App.jsx +1 -1
  10. package/templates/api-v5/page-module-redux/src/components/AppWrapper.jsx +0 -1
  11. package/templates/api-v5/page-redux/src/{index.jsx → bootstrap.jsx} +1 -2
  12. package/templates/api-v5/page-redux/src/components/App.jsx +0 -2
  13. package/templates/api-v5/page-redux/src/components/AppWrapper.jsx +0 -1
  14. package/templates/api-v5/page-redux/src/index.js +2 -0
  15. package/templates/api-v5/page-ts/src/{index.tsx → bootstrap.tsx} +1 -2
  16. package/templates/api-v5/page-ts/src/components/App.tsx +0 -2
  17. package/templates/api-v5/page-ts/src/components/AppWrapper.tsx +0 -1
  18. package/templates/api-v5/page-ts/src/index.ts +2 -0
  19. package/templates/api-v5/page-ts-module/src/components/App.tsx +1 -1
  20. package/templates/api-v5/page-ts-module/src/components/AppWrapper.tsx +2 -3
  21. package/templates/api-v5/page-ts-module-redux/src/components/App.tsx +1 -1
  22. package/templates/api-v5/page-ts-module-redux/src/components/AppWrapper.tsx +2 -3
  23. package/templates/api-v5/page-ts-redux/src/{index.tsx → bootstrap.tsx} +1 -2
  24. package/templates/api-v5/page-ts-redux/src/components/App.tsx +0 -2
  25. package/templates/api-v5/page-ts-redux/src/components/AppWrapper.tsx +0 -1
  26. package/templates/api-v5/page-ts-redux/src/index.ts +2 -0
  27. package/templates/api-v5/shared/toolkit.config-module.mjs +2 -0
  28. package/templates/api-v5/shared/toolkit.config.mjs +2 -0
  29. package/templates/api-v5/shared/ts/tsconfig.json +5 -4
  30. package/templates/page/src/components/App.jsx +0 -2
  31. package/templates/page/src/index.jsx +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-chayns-app",
3
- "version": "1.2.13",
3
+ "version": "1.3.0-beta.1",
4
4
  "private": false,
5
5
  "description": "Create a new chayns® development project in one command.",
6
6
  "keywords": [
@@ -43,17 +43,17 @@
43
43
  "start": "node src/index.js"
44
44
  },
45
45
  "devDependencies": {
46
- "@eslint/js": "^9.39.4",
46
+ "@eslint/js": "^9.39.5",
47
47
  "chalk": "^5.6.2",
48
48
  "commander": "^14.0.3",
49
49
  "enquirer": "^2.4.1",
50
- "esbuild": "^0.27.4",
51
- "eslint": "^9.39.4",
50
+ "esbuild": "^0.28.1",
51
+ "eslint": "^9.39.5",
52
52
  "execa": "^9.6.1",
53
53
  "fast-glob": "^3.3.3",
54
54
  "is-npm": "^6.1.0",
55
- "ora": "^9.3.0",
56
- "prettier": "^3.8.1",
55
+ "ora": "^9.4.1",
56
+ "prettier": "^3.9.6",
57
57
  "prettier-plugin-packagejson": "^3.0.2",
58
58
  "validate-npm-package-name": "^7.0.2"
59
59
  },
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
1
  import { createRoot } from 'react-dom/client';
3
2
  import AppWrapper from './components/AppWrapper';
4
- {{ logger-import }}
3
+
5
4
  try {
6
5
  const root = createRoot(document.querySelector('#root'));
7
6
  root.render(<AppWrapper />);
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { useSite } from 'chayns-api';
3
2
 
4
3
  const App = () => {
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { ChaynsProvider } from 'chayns-api';
3
2
  import { PageProvider } from '@chayns-components/core';
4
3
  import App from './App';
@@ -0,0 +1,2 @@
1
+ {{ logger-import }}
2
+ void import('./bootstrap');
@@ -1,4 +1,4 @@
1
- import React, { useState } from 'react';
1
+ import { useState } from 'react';
2
2
  import { WaitUntil } from 'chayns-api';
3
3
  import { SmallWaitCursor } from '@chayns-components/core';
4
4
  import './app.scss';
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { ChaynsProvider, withCompatMode } from 'chayns-api';
3
2
  import { PageProvider } from '@chayns-components/core';
4
3
  import App from './App';
@@ -1,4 +1,4 @@
1
- import React, { useState } from 'react';
1
+ import { useState } from 'react';
2
2
  import { WaitUntil } from 'chayns-api';
3
3
  import { SmallWaitCursor } from '@chayns-components/core';
4
4
  import { useSelector } from 'react-redux';
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { Provider } from 'react-redux';
3
2
  import { ChaynsProvider, withCompatMode } from 'chayns-api';
4
3
  import { PageProvider } from '@chayns-components/core';
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
1
  import { createRoot } from 'react-dom/client';
3
2
  import AppWrapper from './components/AppWrapper';
4
- {{ logger-import }}
3
+
5
4
  try {
6
5
  const root = createRoot(document.querySelector('#root'));
7
6
  root.render(<AppWrapper />);
@@ -1,5 +1,3 @@
1
- import React from 'react';
2
-
3
1
  const App = () => {
4
2
  return <h1>Hi! Welcome to your newly created chayns application!</h1>;
5
3
  };
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { Provider } from 'react-redux';
3
2
  import { ChaynsProvider } from 'chayns-api';
4
3
  import { PageProvider } from '@chayns-components/core';
@@ -0,0 +1,2 @@
1
+ {{ logger-import }}
2
+ void import('./bootstrap');
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
1
  import { createRoot } from 'react-dom/client';
3
2
  import AppWrapper from './components/AppWrapper';
4
- {{ logger-import }}
3
+
5
4
  try {
6
5
  const root = createRoot(document.querySelector('#root') as Element);
7
6
  root.render(<AppWrapper />);
@@ -1,5 +1,3 @@
1
- import React from 'react';
2
-
3
1
  const App = () => {
4
2
  return <h1>Hello World! Welcome to your newly created chayns application!</h1>;
5
3
  };
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { ChaynsProvider } from 'chayns-api';
3
2
  import { PageProvider } from '@chayns-components/core';
4
3
  import App from './App';
@@ -0,0 +1,2 @@
1
+ {{ logger-import }}
2
+ void import('./bootstrap');
@@ -1,4 +1,4 @@
1
- import React, { useState } from 'react';
1
+ import { useState } from 'react';
2
2
  import { WaitUntil } from 'chayns-api';
3
3
  import { SmallWaitCursor } from '@chayns-components/core';
4
4
  import './app.scss';
@@ -1,9 +1,8 @@
1
- import React, { ComponentPropsWithoutRef } from 'react';
2
- import { ChaynsProvider, withCompatMode } from 'chayns-api';
1
+ import { ChaynsProvider, type ChaynsProviderProps, withCompatMode } from 'chayns-api';
3
2
  import { PageProvider } from '@chayns-components/core';
4
3
  import App from './App';
5
4
 
6
- const AppWrapper = (props: ComponentPropsWithoutRef<typeof ChaynsProvider>) => (
5
+ const AppWrapper = (props: ChaynsProviderProps) => (
7
6
  <div className="{{ package-name-underscore }}">
8
7
  <ChaynsProvider {...props}>
9
8
  <PageProvider>
@@ -1,4 +1,4 @@
1
- import React, { useState } from 'react';
1
+ import { useState } from 'react';
2
2
  import { WaitUntil } from 'chayns-api';
3
3
  import { SmallWaitCursor } from '@chayns-components/core';
4
4
  import { useSelector } from 'react-redux';
@@ -1,11 +1,10 @@
1
- import React, { ComponentPropsWithoutRef } from 'react';
2
1
  import { Provider } from 'react-redux';
3
- import { ChaynsProvider, withCompatMode } from 'chayns-api';
2
+ import { ChaynsProvider, type ChaynsProviderProps, withCompatMode } from 'chayns-api';
4
3
  import { PageProvider } from '@chayns-components/core';
5
4
  import App from './App';
6
5
  import store from '../redux-modules';
7
6
 
8
- const AppWrapper = (props: ComponentPropsWithoutRef<typeof ChaynsProvider>) => (
7
+ const AppWrapper = (props: ChaynsProviderProps) => (
9
8
  <div className="{{ package-name-underscore }}">
10
9
  <ChaynsProvider {...props}>
11
10
  <Provider store={store}>
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
1
  import { createRoot } from 'react-dom/client';
3
2
  import AppWrapper from './components/AppWrapper';
4
- {{ logger-import }}
3
+
5
4
  try {
6
5
  const root = createRoot(document.querySelector('#root') as Element);
7
6
  root.render(<AppWrapper />);
@@ -1,5 +1,3 @@
1
- import React from 'react';
2
-
3
1
  const App = () => {
4
2
  return <h1>Hi! Welcome to your newly created chayns application!</h1>;
5
3
  };
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { Provider } from 'react-redux';
3
2
  import { ChaynsProvider } from 'chayns-api';
4
3
  import { PageProvider } from '@chayns-components/core';
@@ -0,0 +1,2 @@
1
+ {{ logger-import }}
2
+ void import('./bootstrap');
@@ -11,5 +11,7 @@ export default buildToolkitConfig({
11
11
  },
12
12
  cssVersion: '5.0',
13
13
  prefixCss: true,
14
+ reactRuntime: 'automatic',
15
+ reactCompiler: true,
14
16
  },
15
17
  });
@@ -14,5 +14,7 @@ export default buildToolkitConfig({
14
14
  // Add more entrypoints here
15
15
  },
16
16
  cssVersion: '5.0',
17
+ reactRuntime: 'automatic',
18
+ reactCompiler: true,
17
19
  },
18
20
  });
@@ -2,18 +2,19 @@
2
2
  "compilerOptions": {
3
3
  "allowJs": true,
4
4
  "allowSyntheticDefaultImports": true,
5
- "baseUrl": "src",
6
5
  "checkJs": false,
7
6
  "esModuleInterop": true,
8
7
  "experimentalDecorators": true,
9
8
  "isolatedModules": true,
10
- "jsx": "react",
9
+ "jsx": "react-jsx",
11
10
  "lib": ["DOM", "ESNext"],
12
- "moduleResolution": "Node",
11
+ "module": "Preserve",
12
+ "moduleResolution": "Bundler",
13
13
  "target": "ES2020",
14
14
  "noEmit": true,
15
15
  "resolveJsonModule": true,
16
16
  "skipLibCheck": true,
17
- "strict": true
17
+ "strict": true,
18
+ "verbatimModuleSyntax": true
18
19
  }
19
20
  }
@@ -1,5 +1,3 @@
1
- import React from 'react';
2
-
3
1
  const App = () => {
4
2
  return <h1>Hi! Welcome to your newly created chayns application!</h1>;
5
3
  };
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { createRoot } from 'react-dom/client';
3
2
  import App from './components/App';
4
3