This commit is contained in:
Yanis Rigaudeau 2022-09-22 18:00:56 +02:00
parent eafc0307aa
commit a4e57d369c
Signed by: yanis
GPG Key ID: 4DD2841DF1C94D83
19 changed files with 1493 additions and 1367 deletions

View File

@ -1,15 +1,19 @@
# EHE # EHE
## Installation des deps
```bash
python install.py
```
## Pour lancer le projet ## Pour lancer le projet
Dans api Dans api
```bash ```bash
npm i
npm run dev npm run dev
``` ```
Dans www Dans www
```bash ```bash
npm i
npm run dev npm run dev
``` ```

View File

@ -3,6 +3,7 @@
"version": "1.0.0", "version": "1.0.0",
"description": "description de ouf", "description": "description de ouf",
"author": "Yanis Rigaudeau - Axel Barault", "author": "Yanis Rigaudeau - Axel Barault",
"private": true,
"scripts": { "scripts": {
"build": "tsc", "build": "tsc",
"dev": "ts-node-dev ./src/index.ts", "dev": "ts-node-dev ./src/index.ts",

View File

@ -1 +1,8 @@
import { test } from '@core';
const b: test = {
a: 'ui'
}
console.log(b);
console.log("coucou toi"); console.log("coucou toi");

View File

@ -5,12 +5,26 @@
"target": "es6", "target": "es6",
"moduleResolution": "node", "moduleResolution": "node",
"sourceMap": true, "sourceMap": true,
"outDir": "dist" "outDir": "dist",
"paths": {
"@core": [
"../core/src"
]
}
}, },
"lib": [ "lib": [
"es2015" "es2015"
], ],
"include": [
"src/**/*"
],
"exclude": [ "exclude": [
"node_modules/*" "node_modules/*",
"dist/*"
],
"references": [
{
"path": "../core"
}
] ]
} }

1
core/README.md Normal file
View File

@ -0,0 +1 @@
# CORE

36
core/package-lock.json generated Normal file
View File

@ -0,0 +1,36 @@
{
"name": "core",
"version": "1.0.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "core",
"version": "1.0.0",
"devDependencies": {
"typescript": "^4.8.3"
}
},
"node_modules/typescript": {
"version": "4.8.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.3.tgz",
"integrity": "sha512-goMHfm00nWPa8UvR/CPSvykqf6dVV8x/dp0c5mFTMTIu0u0FlGWRioyy7Nn0PGAdHxpJZnuO/ut+PpQ8UiHAig==",
"dev": true,
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
},
"engines": {
"node": ">=4.2.0"
}
}
},
"dependencies": {
"typescript": {
"version": "4.8.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.3.tgz",
"integrity": "sha512-goMHfm00nWPa8UvR/CPSvykqf6dVV8x/dp0c5mFTMTIu0u0FlGWRioyy7Nn0PGAdHxpJZnuO/ut+PpQ8UiHAig==",
"dev": true
}
}
}

13
core/package.json Normal file
View File

@ -0,0 +1,13 @@
{
"name": "core",
"version": "1.0.0",
"description": "description de ouf",
"author": "Yanis Rigaudeau - Axel Barault",
"private": true,
"scripts": {
"build": "tsc"
},
"devDependencies": {
"typescript": "^4.8.3"
}
}

1
core/src/index.ts Normal file
View File

@ -0,0 +1 @@
export * from './test';

3
core/src/test.ts Normal file
View File

@ -0,0 +1,3 @@
export type test = {
a: string;
}

17
core/tsconfig.json Normal file
View File

@ -0,0 +1,17 @@
{
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"composite": true,
"sourceMap": true,
"outDir": "dist"
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules/*",
"dist/*"
],
"references": []
}

8
install.py Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/python
import os
for dir in os.listdir('.'):
if os.path.isdir(dir) and not dir.startswith('.'):
os.chdir(dir)
os.system('npm i')
os.chdir('..')

4
www/package-lock.json generated
View File

@ -1,11 +1,11 @@
{ {
"name": "svelte-app", "name": "www",
"version": "1.0.0", "version": "1.0.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "svelte-app", "name": "www",
"version": "1.0.0", "version": "1.0.0",
"dependencies": { "dependencies": {
"sirv-cli": "^2.0.0" "sirv-cli": "^2.0.0"

View File

@ -1,4 +1,5 @@
html, body { html,
body {
position: relative; position: relative;
width: 100%; width: 100%;
height: 100%; height: 100%;
@ -29,7 +30,10 @@ label {
display: block; display: block;
} }
input, button, select, textarea { input,
button,
select,
textarea {
font-family: inherit; font-family: inherit;
font-size: inherit; font-size: inherit;
-webkit-padding: 0.4em 0; -webkit-padding: 0.4em 0;

View File

@ -1,5 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset='utf-8'> <meta charset='utf-8'>
<meta name='viewport' content='width=device-width,initial-scale=1'> <meta name='viewport' content='width=device-width,initial-scale=1'>
@ -15,4 +16,5 @@
<body> <body>
</body> </body>
</html> </html>

1
www/src/global.d.ts vendored
View File

@ -1 +0,0 @@
/// <reference types="svelte" />

View File

@ -1,6 +1,22 @@
{ {
"extends": "@tsconfig/svelte/tsconfig.json", "extends": "@tsconfig/svelte/tsconfig.json",
"compilerOptions": {
"include": ["src/**/*"], "paths": {
"exclude": ["node_modules/*", "__sapper__/*", "public/*"] "@core": [
"../core/src"
]
}
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules/*",
"public/*"
],
"references": [
{
"path": "../core"
}
]
} }