create-digigov-app 1.1.3-rc.21 → 1.2.0-07ee8440

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": "create-digigov-app",
3
- "version": "1.1.3-rc.21",
3
+ "version": "1.2.0-07ee8440",
4
4
  "description": "Create a DigiGOV App with ease",
5
5
  "bin": "cli.js",
6
6
  "files": [
@@ -22,17 +22,15 @@
22
22
  "publint": "0.1.8"
23
23
  },
24
24
  "devDependencies": {
25
- "@digigov/cli": "1.1.1-rc.21",
26
- "@digigov/cli-lint": "1.0.5-rc.21",
27
- "@digigov/cli-test": "2.0.0-rc.21",
28
- "typescript": "5.6.2",
25
+ "@digigov/cli": "2.0.0-07ee8440",
26
+ "@digigov/cli-lint": "2.0.0-07ee8440",
27
+ "@digigov/cli-test": "2.0.0-07ee8440",
29
28
  "publint": "0.1.8"
30
29
  },
31
30
  "license": "BSD-2-Clause",
32
31
  "gitHead": "c903a46306f77f55ad7fc4d2e274006f39a6c871",
33
32
  "scripts": {
34
33
  "publint": "publint",
35
- "lint": "digigov lint",
36
- "test": "digigov test"
34
+ "lint": "digigov lint"
37
35
  }
38
36
  }
package/saofile.js CHANGED
@@ -60,7 +60,7 @@ module.exports = {
60
60
  gitignore: '.gitignore',
61
61
  '_package.json': 'package.json',
62
62
  '_.prettierrc.js': '.prettierrc.js',
63
- '_.eslintrc.js': '.eslintrc.js',
63
+ '_eslint.config.mjs': 'eslint.config.mjs',
64
64
  '_postcss.config.js': 'postcss.config.js',
65
65
  '_tailwind.config.js': 'tailwind.config.js',
66
66
  '_tsconfig.json': 'tsconfig.json',
@@ -89,8 +89,10 @@ module.exports = {
89
89
  console.log(
90
90
  chalk`\n🎉 {bold Successfully created project} {cyan ${this.answers.name}}\n`
91
91
  );
92
- console.log(`\n ${chalk.red('✋ Hodor. HODOR! We\'re not done yet.')}\n`);
93
- console.log(chalk` You should change you current to the next project:\n\n${cdMsg}`);
92
+ console.log(`\n ${chalk.red("✋ Hodor. HODOR! We're not done yet.")}\n`);
93
+ console.log(
94
+ chalk` You should change you current to the next project:\n\n${cdMsg}`
95
+ );
94
96
  console.log(
95
97
  chalk`\n {bold You should install the following dependencies:} \n\n \t{cyan ${this.answers.pm} add ${digigovDeps.join(' ')}}\n`
96
98
  );
@@ -98,7 +100,6 @@ module.exports = {
98
100
  chalk`\n {bold and also the following devDependencies:} \n\n \t{cyan ${this.answers.pm} add ${devArg} --ignore-engines ${digigovDepsDev.join(' ')}}\n`
99
101
  );
100
102
 
101
-
102
103
  console.log(chalk` {bold To get started:}\n`);
103
104
  console.log(chalk`${cdMsg}\t{cyan ${pmRun} dev}\n`);
104
105
 
@@ -1 +1 @@
1
- module.exports = require('@digigov/cli-lint/prettierrc')();
1
+ module.exports = require("@digigov/cli-lint/prettierrc")();
@@ -0,0 +1,3 @@
1
+ import config from "@digigov/cli-lint/eslint.config";
2
+
3
+ export default [...config];
@@ -23,15 +23,13 @@
23
23
  "@types/node": "16.6.2",
24
24
  "@types/react": "18.3.3",
25
25
  "@types/react-dom": "18.3.0",
26
- "@types/enzyme": "3.10.8",
27
- "@types/enzyme-adapter-react-16": "^1.0.5",
28
- "@types/jest": "^26.0.15",
29
- "eslint": "^7.27.0",
30
- "prettier": "^2.3.0",
26
+ "eslint": "9.16.0",
27
+ "prettier": "3.4.2",
31
28
  "autoprefixer": "10.4.16",
32
29
  "postcss": "8.4.4",
33
30
  "postcss-js": "4.0.0",
34
31
  "postcss-load-config": "3.1.4",
35
- "tailwindcss": "3.3.5"
32
+ "vitest": "2.1.3",
33
+ "tailwindcss": "3.4.13"
36
34
  }
37
35
  }
@@ -1,3 +1,3 @@
1
1
  // If you want to use other PostCSS plugins, see the following:
2
2
  // https://tailwindcss.com/docs/using-with-preprocessors
3
- module.exports = require('@digigov/cli-app/postcssrc')();
3
+ module.exports = require("@digigov/cli-app/postcssrc")();
@@ -1 +1 @@
1
- module.exports = require('@digigov/cli-app/tailwindrc')();
1
+ module.exports = require("@digigov/cli-app/tailwindrc")();
@@ -23,8 +23,8 @@
23
23
  "jsx": "preserve",
24
24
  "types": [
25
25
  "node",
26
- "jest",
26
+ "vitest/globals",
27
27
  "react"
28
28
  ]
29
29
  }
30
- }
30
+ }
@@ -1,24 +1,24 @@
1
- import React from 'react';
2
- import Head from 'next/head';
3
- import { useTranslation } from '@digigov/ui/i18n';
4
- import { useRouter } from 'next/router';
5
- import BasicLayout, { Top, Container, Bottom } from '@digigov/ui/layouts/Basic';
1
+ import React from "react";
2
+ import Head from "next/head";
3
+ import { useTranslation } from "@digigov/ui/i18n";
4
+ import { useRouter } from "next/router";
5
+ import BasicLayout, { Top, Container, Bottom } from "@digigov/ui/layouts/Basic";
6
6
  import Header, {
7
7
  HeaderTitle,
8
8
  HeaderContent,
9
9
  HeaderSection,
10
- } from '@digigov/ui/app/Header';
11
- import GovGRLogo from '@digigov/ui/govgr/GovGRLogo';
12
- import GovGRFooter from '@digigov/ui/govgr/Footer';
10
+ } from "@digigov/ui/app/Header";
11
+ import GovGRLogo from "@digigov/ui/govgr/GovGRLogo";
12
+ import GovGRFooter from "@digigov/ui/govgr/Footer";
13
13
 
14
14
  const CommonLayout = ({ children }) => {
15
15
  const router = useRouter();
16
- const notHome = router.asPath !== '/';
16
+ const notHome = router.asPath !== "/";
17
17
  const { t } = useTranslation();
18
18
  return (
19
19
  <BasicLayout>
20
20
  <Head>
21
- <title>{t('app.name')}</title>
21
+ <title>{t("app.name")}</title>
22
22
  </Head>
23
23
  <Top>
24
24
  <Header>
@@ -27,7 +27,7 @@ const CommonLayout = ({ children }) => {
27
27
  <GovGRLogo />
28
28
  {notHome && (
29
29
  <>
30
- <HeaderTitle>{t('app.name')}</HeaderTitle>
30
+ <HeaderTitle>{t("app.name")}</HeaderTitle>
31
31
  </>
32
32
  )}
33
33
  </HeaderContent>
@@ -1,8 +1,8 @@
1
- import defaultEl from '@digigov/ui/i18n/locales/el';
1
+ import defaultEl from "@digigov/ui/i18n/locales/el";
2
2
  export default {
3
3
  app: {
4
- name: 'Η Υπηρεσία μου',
5
- intro_text: 'Καλωσήρθατε στην Υπηρεσία μου',
4
+ name: "Η Υπηρεσία μου",
5
+ intro_text: "Καλωσήρθατε στην Υπηρεσία μου",
6
6
  },
7
7
  ...defaultEl,
8
8
  };
@@ -1,8 +1,8 @@
1
- import defaultEn from '@digigov/ui/i18n/locales/en';
1
+ import defaultEn from "@digigov/ui/i18n/locales/en";
2
2
  export default {
3
3
  app: {
4
- name: 'My Service',
5
- intro_text: 'Welcome to My Service',
4
+ name: "My Service",
5
+ intro_text: "Welcome to My Service",
6
6
  },
7
7
  ...defaultEn,
8
8
  };
@@ -1,7 +1,7 @@
1
- import React from 'react';
2
- import NotFound from '@digigov/ui/app/NotFound';
3
- import { Main, Aside } from '@digigov/ui/layouts/Basic';
4
- import CommonLayout from '<%= name %>/components/CommonLayout';
1
+ import React from "react";
2
+ import NotFound from "@digigov/ui/app/NotFound";
3
+ import { Main, Aside } from "@digigov/ui/layouts/Basic";
4
+ import CommonLayout from "<%= name %>/components/CommonLayout";
5
5
 
6
6
  const NotFoundPage = () => {
7
7
  return (
@@ -1,9 +1,9 @@
1
- import App from '@digigov/nextjs/App';
2
- import initI18n from '@digigov/nextjs/i18n';
3
- import el from '<%= name %>/locales/el';
4
- import en from '<%= name %>/locales/en';
5
- import 'tailwindcss/tailwind.css';
6
- import '../../index.css';
1
+ import App from "@digigov/nextjs/App";
2
+ import initI18n from "@digigov/nextjs/i18n";
3
+ import el from "<%= name %>/locales/el";
4
+ import en from "<%= name %>/locales/en";
5
+ import "tailwindcss/tailwind.css";
6
+ import "../../index.css";
7
7
 
8
8
  initI18n({
9
9
  el: {
@@ -1,2 +1,2 @@
1
- import Document from '@digigov/nextjs/Document';
1
+ import Document from "@digigov/nextjs/Document";
2
2
  export default Document;
@@ -1,14 +1,14 @@
1
- import React from 'react';
2
- import { useTranslation } from '@digigov/ui/i18n';
3
- import { Main, Aside } from '@digigov/ui/layouts/Basic';
1
+ import React from "react";
2
+ import { useTranslation } from "@digigov/ui/i18n";
3
+ import { Main, Aside } from "@digigov/ui/layouts/Basic";
4
4
  import {
5
5
  PageTitleContainer,
6
- PageTitleHeading
7
- } from '@digigov/ui/app/PageTitleContainer';
8
- import CallToAction from '@digigov/ui/form/Button/CallToAction';
9
- import Paragraph from '@digigov/ui/typography/Paragraph';
6
+ PageTitleHeading,
7
+ } from "@digigov/ui/app/PageTitleContainer";
8
+ import CallToAction from "@digigov/ui/form/Button/CallToAction";
9
+ import Paragraph from "@digigov/ui/typography/Paragraph";
10
10
 
11
- import CommonLayout from '<%= name %>/components/CommonLayout';
11
+ import CommonLayout from "<%= name %>/components/CommonLayout";
12
12
 
13
13
  const Home = () => {
14
14
  const { t } = useTranslation();
@@ -16,10 +16,10 @@ const Home = () => {
16
16
  <CommonLayout>
17
17
  <Main>
18
18
  <PageTitleContainer>
19
- <PageTitleHeading>{t('app.name')}</PageTitleHeading>
19
+ <PageTitleHeading>{t("app.name")}</PageTitleHeading>
20
20
  </PageTitleContainer>
21
- <Paragraph>{t('app.intro_text')}</Paragraph>
22
- <CallToAction href="/login">{t('button.start')}</CallToAction>
21
+ <Paragraph>{t("app.intro_text")}</Paragraph>
22
+ <CallToAction href="/login">{t("button.start")}</CallToAction>
23
23
  </Main>
24
24
  <Aside></Aside>
25
25
  </CommonLayout>
@@ -1 +1 @@
1
- module.exports = require('@digigov/cli-app/nextrc')();
1
+ module.exports = require("@digigov/cli-app/nextrc")();
@@ -1,8 +1,8 @@
1
- import defaultEl from '@digigov/ui/i18n/locales/el';
1
+ import defaultEl from "@digigov/ui/i18n/locales/el";
2
2
  export default {
3
3
  app: {
4
- name: 'Η Υπηρεσία μου',
5
- intro_text: 'Καλωσήρθατε στην Υπηρεσία μου',
4
+ name: "Η Υπηρεσία μου",
5
+ intro_text: "Καλωσήρθατε στην Υπηρεσία μου",
6
6
  },
7
7
  ...defaultEl,
8
8
  };
@@ -1,8 +1,8 @@
1
- import defaultEn from '@digigov/ui/i18n/locales/en';
1
+ import defaultEn from "@digigov/ui/i18n/locales/en";
2
2
  export default {
3
3
  app: {
4
- name: 'My Service',
5
- intro_text: 'Welcome to My Service',
4
+ name: "My Service",
5
+ intro_text: "Welcome to My Service",
6
6
  },
7
7
  ...defaultEn,
8
8
  };
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- extends: [require.resolve('@digigov/cli-lint/eslint.config')]
3
- }