create-digigov-app 1.1.3-rc.21 → 1.2.0-2177f152
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 +5 -7
- package/saofile.js +5 -4
- package/template/_.prettierrc.js +1 -1
- package/template/_eslint.config.mjs +3 -0
- package/template/_package.json +4 -6
- package/template/_postcss.config.js +1 -1
- package/template/_tailwind.config.js +1 -1
- package/template/_tsconfig.json +2 -2
- package/template/javascript/src/components/CommonLayout.js +11 -11
- package/template/javascript/src/locales/el.js +3 -3
- package/template/javascript/src/locales/en.js +3 -3
- package/template/javascript/src/pages/404.js +4 -4
- package/template/javascript/src/pages/_app.js +6 -6
- package/template/javascript/src/pages/_document.js +1 -1
- package/template/javascript/src/pages/index.js +11 -11
- package/template/next.config.js +1 -1
- package/template/typescript/src/locales/el.ts +3 -3
- package/template/typescript/src/locales/en.ts +3 -3
- package/template/_.eslintrc.js +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-digigov-app",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0-2177f152",
|
|
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": "
|
|
26
|
-
"@digigov/cli-lint": "
|
|
27
|
-
"@digigov/cli-test": "2.0.0-
|
|
28
|
-
"typescript": "5.6.2",
|
|
25
|
+
"@digigov/cli": "2.0.0-2177f152",
|
|
26
|
+
"@digigov/cli-lint": "2.0.0-2177f152",
|
|
27
|
+
"@digigov/cli-test": "2.0.0-2177f152",
|
|
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
|
-
'
|
|
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(
|
|
93
|
-
console.log(
|
|
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
|
|
package/template/_.prettierrc.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = require(
|
|
1
|
+
module.exports = require("@digigov/cli-lint/prettierrc")();
|
package/template/_package.json
CHANGED
|
@@ -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
|
-
"
|
|
27
|
-
"
|
|
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
|
-
"
|
|
32
|
+
"vitest": "2.1.3",
|
|
33
|
+
"tailwindcss": "3.4.13"
|
|
36
34
|
}
|
|
37
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = require(
|
|
1
|
+
module.exports = require("@digigov/cli-app/tailwindrc")();
|
package/template/_tsconfig.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import Head from
|
|
3
|
-
import { useTranslation } from
|
|
4
|
-
import { useRouter } from
|
|
5
|
-
import BasicLayout, { Top, Container, Bottom } from
|
|
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
|
|
11
|
-
import GovGRLogo from
|
|
12
|
-
import GovGRFooter from
|
|
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(
|
|
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(
|
|
30
|
+
<HeaderTitle>{t("app.name")}</HeaderTitle>
|
|
31
31
|
</>
|
|
32
32
|
)}
|
|
33
33
|
</HeaderContent>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import defaultEl from
|
|
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
|
|
1
|
+
import defaultEn from "@digigov/ui/i18n/locales/en";
|
|
2
2
|
export default {
|
|
3
3
|
app: {
|
|
4
|
-
name:
|
|
5
|
-
intro_text:
|
|
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
|
|
2
|
-
import NotFound from
|
|
3
|
-
import { Main, Aside } from
|
|
4
|
-
import CommonLayout from
|
|
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
|
|
2
|
-
import initI18n from
|
|
3
|
-
import el from
|
|
4
|
-
import en from
|
|
5
|
-
import
|
|
6
|
-
import
|
|
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
|
|
1
|
+
import Document from "@digigov/nextjs/Document";
|
|
2
2
|
export default Document;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { useTranslation } from
|
|
3
|
-
import { Main, Aside } from
|
|
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
|
|
8
|
-
import CallToAction from
|
|
9
|
-
import Paragraph from
|
|
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
|
|
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(
|
|
19
|
+
<PageTitleHeading>{t("app.name")}</PageTitleHeading>
|
|
20
20
|
</PageTitleContainer>
|
|
21
|
-
<Paragraph>{t(
|
|
22
|
-
<CallToAction href="/login">{t(
|
|
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>
|
package/template/next.config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = require(
|
|
1
|
+
module.exports = require("@digigov/cli-app/nextrc")();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import defaultEl from
|
|
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
|
|
1
|
+
import defaultEn from "@digigov/ui/i18n/locales/en";
|
|
2
2
|
export default {
|
|
3
3
|
app: {
|
|
4
|
-
name:
|
|
5
|
-
intro_text:
|
|
4
|
+
name: "My Service",
|
|
5
|
+
intro_text: "Welcome to My Service",
|
|
6
6
|
},
|
|
7
7
|
...defaultEn,
|
|
8
8
|
};
|
package/template/_.eslintrc.js
DELETED