Skip to content

Commit 73f9b78

Browse files
authored
Merge pull request #188 from dnum-mi/develop
Develop
2 parents 247dfcf + f24cb42 commit 73f9b78

File tree

176 files changed

+29552
-10248
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+29552
-10248
lines changed

.docker/Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM node:16.13.1-alpine3.14 as dev
2+
3+
WORKDIR /app
4+
5+
CMD ["npm", "run", "dev"]
6+
7+
FROM dev as storybook-build
8+
9+
COPY ./package.json ./package-lock.json ./
10+
RUN npm i
11+
12+
COPY ./build-css.mjs ./index.html ./postcss.config.js ./rollup.config.js ./vite.config.js ./.browserslistrc ./
13+
COPY ./src ./src
14+
COPY ./public ./public
15+
COPY ./.storybook ./.storybook
16+
17+
RUN npm run build-storybook
18+
19+
FROM nginx:1.21.4-alpine as storybook
20+
21+
COPY --from=storybook-build /app/storybook-static /usr/share/nginx/html

.docker/docker-compose.dev.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: '3'
2+
3+
services:
4+
front:
5+
image: vue-dsfr
6+
build:
7+
context: ../
8+
dockerfile: .docker/Dockerfile
9+
volumes:
10+
- ../:/app # dossier_hote:dossier_conteneur
11+
ports:
12+
- 8080:80 # port_hote:port_conteneur

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ temp/
283283
!.vscode/tasks.json
284284
!.vscode/launch.json
285285
!.vscode/extensions.json
286+
!.vscode/*.code-snippets
286287
*.code-workspace
287288

288289
### VisualStudioCode Patch ###

.storybook/preview.js

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@ import { defineComponent } from 'vue'
22
import { app } from '@storybook/vue3'
33
import { FocusTrap } from 'focus-trap-vue'
44

5-
import '../src/assets/variables-dsfr.css'
6-
import '../src/assets/fonts-dsfr.css'
7-
import '../src/assets/core.css'
8-
import '../src/assets/utilities.css'
9-
import '../src/assets/reset-dsfr.css'
10-
import '../src/assets/objects-dsfr.css'
11-
import '../src/assets/utils-dsfr.css'
5+
import '../src/main.css'
126

137
import './theme.css'
148

@@ -27,35 +21,8 @@ export const parameters = {
2721
method: 'alphabetical',
2822
order: [
2923
'Docs',
30-
// ['1. Introduction', '2. Guide d’utilisation', '3. Guide du développeur'],
3124
'Fondamentaux',
3225
'Composants',
33-
// [
34-
// 'Titres',
35-
// 'Titres Alternatifs',
36-
// 'Alertes',
37-
// 'Fil d’Ariane - Breadcrumb',
38-
// 'Logo Officiel - Official logo',
39-
// 'Boutons - Button',
40-
// 'Groupe de Boutons - ButtonGroup',
41-
// 'Champs de saisie - Input',
42-
// 'Case à cocher - Checkbox',
43-
// 'Boutons radio - Radio button',
44-
// 'Liste déroulante - Select',
45-
// 'Interrupteur - Toggle switch',
46-
// 'Étiquettes - Tags',
47-
// ],
48-
// 'Éléments',
49-
// [
50-
// 'Carte - Card',
51-
// 'Barre de recherche - Search bar',
52-
// 'En-tête - Header',
53-
// 'Lettres d’information et réseaux - Follow',
54-
// 'Pied de page - Footer',
55-
// 'Modale - Modal',
56-
// 'Onglets - Tabs', ['Onglets', 'Titre', 'Onglets'],
57-
// 'Table'
58-
// ],
5926
],
6027
},
6128
}

ci/check-exports.mjs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { writeFile } from 'fs/promises'
2+
import { globby } from 'globby'
3+
import path from 'path'
4+
5+
const __dirname = path.dirname(new URL(import.meta.url).pathname)
6+
7+
const sfcs = await globby([path.resolve(__dirname, '../src/components/**/*.vue')])
8+
const componentsDir = path.resolve(__dirname, '../src/components')
9+
10+
const projectFn = component => 'export { default as ' + path.basename(component, '.vue') + ' } from \'' + component.replace(componentsDir, '.') + '\''
11+
12+
const finalString = sfcs.map(projectFn).sort().join('\n')
13+
14+
// /home/stan/projects/minint/vue-dsfr/src/components/DsfrAccordion/DsfrAccordion.vue
15+
// à transformer en :
16+
// export { default as DsfrAccordion } from './DsfrAccordion/DsfrAccordion.vue'
17+
18+
// console.log(sfcs)
19+
20+
// const index = await readFile(path.resolve(__dirname, '../src/components/index.js'))
21+
22+
// console.log(index.toString())
23+
24+
await writeFile(path.resolve(__dirname, '../src/components/index.js'), finalString)

docs/.vuepress/config.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

docs/index.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)