core app
This commit is contained in:
parent
eafc0307aa
commit
a4e57d369c
@ -1,15 +1,19 @@
|
||||
# EHE
|
||||
|
||||
## Installation des deps
|
||||
|
||||
```bash
|
||||
python install.py
|
||||
```
|
||||
|
||||
## Pour lancer le projet
|
||||
|
||||
Dans api
|
||||
```bash
|
||||
npm i
|
||||
npm run dev
|
||||
```
|
||||
|
||||
Dans www
|
||||
```bash
|
||||
npm i
|
||||
npm run dev
|
||||
```
|
||||
|
@ -3,6 +3,7 @@
|
||||
"version": "1.0.0",
|
||||
"description": "description de ouf",
|
||||
"author": "Yanis Rigaudeau - Axel Barault",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"dev": "ts-node-dev ./src/index.ts",
|
||||
|
@ -1 +1,8 @@
|
||||
import { test } from '@core';
|
||||
|
||||
const b: test = {
|
||||
a: 'ui'
|
||||
}
|
||||
|
||||
console.log(b);
|
||||
console.log("coucou toi");
|
||||
|
@ -5,12 +5,26 @@
|
||||
"target": "es6",
|
||||
"moduleResolution": "node",
|
||||
"sourceMap": true,
|
||||
"outDir": "dist"
|
||||
"outDir": "dist",
|
||||
"paths": {
|
||||
"@core": [
|
||||
"../core/src"
|
||||
]
|
||||
}
|
||||
},
|
||||
"lib": [
|
||||
"es2015"
|
||||
],
|
||||
"include": [
|
||||
"src/**/*"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules/*"
|
||||
"node_modules/*",
|
||||
"dist/*"
|
||||
],
|
||||
"references": [
|
||||
{
|
||||
"path": "../core"
|
||||
}
|
||||
]
|
||||
}
|
1
core/README.md
Normal file
1
core/README.md
Normal file
@ -0,0 +1 @@
|
||||
# CORE
|
36
core/package-lock.json
generated
Normal file
36
core/package-lock.json
generated
Normal 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
13
core/package.json
Normal 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
1
core/src/index.ts
Normal file
@ -0,0 +1 @@
|
||||
export * from './test';
|
3
core/src/test.ts
Normal file
3
core/src/test.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export type test = {
|
||||
a: string;
|
||||
}
|
17
core/tsconfig.json
Normal file
17
core/tsconfig.json
Normal 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
8
install.py
Executable 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
4
www/package-lock.json
generated
@ -1,11 +1,11 @@
|
||||
{
|
||||
"name": "svelte-app",
|
||||
"name": "www",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "svelte-app",
|
||||
"name": "www",
|
||||
"version": "1.0.0",
|
||||
"dependencies": {
|
||||
"sirv-cli": "^2.0.0"
|
||||
|
@ -1,4 +1,5 @@
|
||||
html, body {
|
||||
html,
|
||||
body {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
@ -13,7 +14,7 @@ body {
|
||||
}
|
||||
|
||||
a {
|
||||
color: rgb(0,100,200);
|
||||
color: rgb(0, 100, 200);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@ -22,14 +23,17 @@ a:hover {
|
||||
}
|
||||
|
||||
a:visited {
|
||||
color: rgb(0,80,160);
|
||||
color: rgb(0, 80, 160);
|
||||
}
|
||||
|
||||
label {
|
||||
display: block;
|
||||
}
|
||||
|
||||
input, button, select, textarea {
|
||||
input,
|
||||
button,
|
||||
select,
|
||||
textarea {
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
-webkit-padding: 0.4em 0;
|
||||
|
@ -1,5 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset='utf-8'>
|
||||
<meta name='viewport' content='width=device-width,initial-scale=1'>
|
||||
@ -15,4 +16,5 @@
|
||||
|
||||
<body>
|
||||
</body>
|
||||
|
||||
</html>
|
1
www/src/global.d.ts
vendored
1
www/src/global.d.ts
vendored
@ -1 +0,0 @@
|
||||
/// <reference types="svelte" />
|
@ -1,6 +1,22 @@
|
||||
{
|
||||
"extends": "@tsconfig/svelte/tsconfig.json",
|
||||
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["node_modules/*", "__sapper__/*", "public/*"]
|
||||
"compilerOptions": {
|
||||
"paths": {
|
||||
"@core": [
|
||||
"../core/src"
|
||||
]
|
||||
}
|
||||
},
|
||||
"include": [
|
||||
"src/**/*"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules/*",
|
||||
"public/*"
|
||||
],
|
||||
"references": [
|
||||
{
|
||||
"path": "../core"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user