devextreme-cli 1.8.0 → 1.9.1-1.11.0-alpha.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 +6 -5
- package/src/applications/application.angular.js +32 -7
- package/src/applications/application.react.js +31 -24
- package/src/applications/application.vue.js +23 -6
- package/src/templates/react/application/public/favicon.ico +0 -0
- package/src/templates/react/application/public/logo192.png +0 -0
- package/src/templates/react/application/public/logo512.png +0 -0
- package/src/templates/react/application/public/manifest.json +25 -0
- package/src/templates/react/application/public/robots.txt +3 -0
- package/src/templates/react/application/src/App.tsx +0 -1
- package/src/templates/react/application/src/components/change-password-form/ChangePasswordForm.tsx +2 -2
- package/src/templates/react/application/src/components/create-account-form/CreateAccountForm.scss +4 -5
- package/src/templates/react/application/src/components/create-account-form/CreateAccountForm.tsx +5 -7
- package/src/templates/react/application/src/components/footer/Footer.tsx +0 -1
- package/src/templates/react/application/src/components/header/Header.scss +1 -1
- package/src/templates/react/application/src/components/header/Header.tsx +0 -1
- package/src/templates/react/application/src/components/login-form/LoginForm.scss +2 -8
- package/src/templates/react/application/src/components/login-form/LoginForm.tsx +12 -14
- package/src/templates/react/application/src/components/reset-password-form/ResetPasswordForm.scss +3 -4
- package/src/templates/react/application/src/components/reset-password-form/ResetPasswordForm.tsx +5 -7
- package/src/templates/react/application/src/components/side-navigation-menu/SideNavigationMenu.scss +3 -3
- package/src/templates/react/application/src/components/side-navigation-menu/SideNavigationMenu.tsx +2 -2
- package/src/templates/react/application/src/components/theme-switcher/ThemeSwitcher.tsx +2 -2
- package/src/templates/react/application/src/components/user-panel/UserPanel.tsx +1 -1
- package/src/templates/react/application/src/dx-styles.scss +6 -3
- package/src/templates/react/application/src/index.css +12 -0
- package/src/templates/react/application/src/layouts/side-nav-inner-toolbar/side-nav-inner-toolbar.tsx +11 -5
- package/src/templates/react/application/src/layouts/side-nav-outer-toolbar/side-nav-outer-toolbar.tsx +11 -5
- package/src/templates/react/application/src/layouts/single-card/single-card.scss +10 -7
- package/src/templates/react/application/src/layouts/single-card/single-card.tsx +0 -1
- package/src/templates/react/application/src/theme.tsx +1 -1
- package/src/templates/react/application/src/types.tsx +1 -2
- package/src/templates/react/application/src/utils/media-query.tsx +3 -1
- package/src/templates/react/application/src/utils/patches.scss +4 -4
- package/src/templates/react/application/src/variables.scss +32 -16
- package/src/templates/react/sample-pages/home/home.scss +0 -2
- package/src/templates/react/sample-pages/home/home.tsx +1 -1
- package/src/templates/react/sample-pages/tasks/tasks.tsx +4 -4
- package/src/templates/vue-v3/application/src/App.vue +1 -0
- package/src/templates/vue-v3/application/src/components/header-toolbar.vue +1 -1
- package/src/templates/vue-v3/application/src/components/side-nav-menu.vue +2 -2
- package/src/templates/vue-v3/application/src/dx-styles.scss +3 -3
- package/src/templates/vue-v3/application/src/layouts/single-card.vue +10 -5
- package/src/templates/vue-v3/application/src/variables.scss +30 -14
- package/src/templates/vue-v3/application/src/views/create-account-form.vue +21 -24
- package/src/templates/vue-v3/application/src/views/login-form.vue +18 -25
- package/src/templates/vue-v3/application/src/views/reset-password-form.vue +6 -9
- package/src/templates/vue-v3/sample-pages/tasks-page.vue +1 -1
- package/src/utility/extract-deps-version-tag.js +13 -0
- package/src/utility/latest-versions.js +4 -3
- package/src/utility/prompts/transpiler.js +17 -0
- package/src/utility/typescript-extension.js +1 -1
- package/src/templates/react/application/src/App.test.tsx +0 -12
- package/src/templates/react/application/src/matchMediaMock.tsx +0 -14
- package/src/templates/react/application/src/polyfills.tsx +0 -2
- package/src/utility/extract-tooling-version.js +0 -13
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const depsVersionTagOptionName = 'deps-version-tag';
|
|
2
|
+
|
|
3
|
+
const extractDepsVersionTag = (commandOptions) => {
|
|
4
|
+
if(commandOptions && commandOptions[depsVersionTagOptionName]) {
|
|
5
|
+
return commandOptions[depsVersionTagOptionName];
|
|
6
|
+
}
|
|
7
|
+
return '';
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
module.exports = {
|
|
11
|
+
depsVersionTagOptionName,
|
|
12
|
+
extractDepsVersionTag,
|
|
13
|
+
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
const packageJson = require('../../package.json');
|
|
2
2
|
module.exports = {
|
|
3
|
-
'devextreme': '
|
|
4
|
-
'devextreme-react': '
|
|
5
|
-
'devextreme-vue': '
|
|
3
|
+
'devextreme': '25.1.1-alpha',
|
|
4
|
+
'devextreme-react': '25.1.1-alpha',
|
|
5
|
+
'devextreme-vue': '25.1.1-alpha',
|
|
6
|
+
'create-vite': '6.3.1',
|
|
6
7
|
'devextreme-cli': packageJson.version,
|
|
7
8
|
'devextreme-schematics': 'latest'
|
|
8
9
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const prompts = require('./prompts');
|
|
2
|
+
|
|
3
|
+
const choices = [
|
|
4
|
+
{ value: 'babel', title: 'Babel' },
|
|
5
|
+
{ value: 'swc', title: 'SWC' }
|
|
6
|
+
];
|
|
7
|
+
|
|
8
|
+
const question = {
|
|
9
|
+
message: 'Specify desired transpiler type:',
|
|
10
|
+
choices: choices
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const getTranspilerTypeInfo = async(defaultValue) => {
|
|
14
|
+
return await prompts(question, choices, defaultValue);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
module.exports = getTranspilerTypeInfo;
|
|
@@ -5,7 +5,7 @@ const isTypeScript = (templateType) => templateType === 'typescript';
|
|
|
5
5
|
|
|
6
6
|
const setFileExtension = (filePath, isTypeScript) => {
|
|
7
7
|
const { dir, name } = path.parse(filePath);
|
|
8
|
-
const ext = '.' + (isTypeScript ? 'tsx' : '
|
|
8
|
+
const ext = '.' + (isTypeScript ? 'tsx' : 'jsx');
|
|
9
9
|
|
|
10
10
|
return path.join(dir, name + ext);
|
|
11
11
|
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import './matchMediaMock';
|
|
2
|
-
import { render, screen } from '@testing-library/react';
|
|
3
|
-
import App from './App';
|
|
4
|
-
import { act } from 'react-dom/test-utils';
|
|
5
|
-
|
|
6
|
-
describe("App", () => {
|
|
7
|
-
test('renders learn react link', async () => {
|
|
8
|
-
await act( async () => { render(<App/>) });
|
|
9
|
-
const linkElement = screen.getByText(/create react app/i);
|
|
10
|
-
expect(linkElement).toBeInTheDocument();
|
|
11
|
-
});
|
|
12
|
-
})
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(window, 'matchMedia', {
|
|
2
|
-
writable: true,
|
|
3
|
-
value: jest.fn().mockImplementation(query => ({
|
|
4
|
-
matches: false,
|
|
5
|
-
media: query,
|
|
6
|
-
onchange: null,
|
|
7
|
-
addListener: jest.fn(), // deprecated
|
|
8
|
-
removeListener: jest.fn(), // deprecated
|
|
9
|
-
addEventListener: jest.fn(),
|
|
10
|
-
removeEventListener: jest.fn(),
|
|
11
|
-
dispatchEvent: jest.fn(),
|
|
12
|
-
})),
|
|
13
|
-
});
|
|
14
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const toolingVersionOptionName = 'tooling-version';
|
|
2
|
-
|
|
3
|
-
const extractToolingVersion = (commandOptions) => {
|
|
4
|
-
if(commandOptions && commandOptions[toolingVersionOptionName]) {
|
|
5
|
-
return `@${commandOptions[toolingVersionOptionName]}`;
|
|
6
|
-
}
|
|
7
|
-
return '';
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
module.exports = {
|
|
11
|
-
toolingVersionOptionName,
|
|
12
|
-
extractToolingVersion,
|
|
13
|
-
};
|