initial commit
This commit is contained in:
commit
5d4a5d95a8
28
.editorconfig
Normal file
28
.editorconfig
Normal file
@ -0,0 +1,28 @@
|
||||
root = true
|
||||
|
||||
# Unix-style newlines with a newline ending every file
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
# Python settings
|
||||
[*.py]
|
||||
line_length=120
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
|
||||
# JavaScript, JSX, CSS, SCSS, HTML settings
|
||||
[*.{js,jsx,css,scss,html}]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
|
||||
# Markdown settings
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
|
||||
# Config files
|
||||
[*.conf]
|
||||
indent_style = space
|
||||
indent_size = 4
|
6
.gitignore
vendored
Normal file
6
.gitignore
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
app/.cache
|
||||
app/.yarncache
|
||||
app/build/*
|
||||
app/dist/*
|
||||
app/node_modules/*
|
||||
app/yarn-error.log
|
19
app/package.json
Normal file
19
app/package.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "bimbam",
|
||||
"version": "0.0.1",
|
||||
"author": "Champs-Libres",
|
||||
"description": "",
|
||||
"dependencies": {
|
||||
"@popperjs/core": "^2.11.6",
|
||||
"bootstrap": "^5.2.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"parcel-bundler": "^1.12.5",
|
||||
"sass": "^1.56.0"
|
||||
},
|
||||
"scripts": {
|
||||
"prebuild": "npx rimraf build",
|
||||
"build": "parcel build --public-url ./ ./src/index.html --experimental-scope-hoisting --out-dir build",
|
||||
"dev": "parcel --port 8080 --hmr-port 8081 ./src/index.html"
|
||||
}
|
||||
}
|
10
app/scss/custom.scss
Normal file
10
app/scss/custom.scss
Normal file
@ -0,0 +1,10 @@
|
||||
div.coucou {
|
||||
margin: 1em;
|
||||
padding: 2em;
|
||||
background-color: cyan;
|
||||
|
||||
span {
|
||||
padding: 1em;
|
||||
background-color: yellow;
|
||||
}
|
||||
}
|
22
app/src/index.html
Normal file
22
app/src/index.html
Normal file
@ -0,0 +1,22 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="../scss/custom.scss">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<button type="button" name="button" class="btn btn-primary btn-lg">
|
||||
hello marcelo
|
||||
</button>
|
||||
|
||||
<div class="coucou">
|
||||
<h2>Bim</h2>
|
||||
<p>bam</p>
|
||||
<span>boum</span>
|
||||
</div>
|
||||
|
||||
<script src="./index.js"></script>
|
||||
</body>
|
||||
</html>
|
8
app/src/index.js
Normal file
8
app/src/index.js
Normal file
@ -0,0 +1,8 @@
|
||||
// Import all plugins
|
||||
import * as bootstrap from 'bootstrap';
|
||||
|
||||
// Or import only needed plugins
|
||||
//import { Tooltip as Tooltip, Toast as Toast, Popover as Popover } from 'bootstrap';
|
||||
|
||||
// Or import just one
|
||||
//import Alert as Alert from '../node_modules/bootstrap/js/dist/alert';
|
5625
app/yarn.lock
Normal file
5625
app/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
25
docker-node.sh
Executable file
25
docker-node.sh
Executable file
@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
# exécute toujours dans le répertoire
|
||||
cd $(dirname $0)
|
||||
|
||||
if [ $# -eq 0 ]
|
||||
then
|
||||
cmd=bash
|
||||
else
|
||||
cmd="${@}"
|
||||
fi
|
||||
|
||||
docker run \
|
||||
--rm \
|
||||
--interactive \
|
||||
--tty \
|
||||
--user $(id -u):$(id -g) \
|
||||
--volume ${PWD}/app:/app \
|
||||
--volume ${PWD}/app/node_modules:/app/node_modules \
|
||||
--workdir /app \
|
||||
-p 8080:8080 \
|
||||
-p 8081:8081 \
|
||||
--env YARN_CACHE_FOLDER=/app/.yarncache \
|
||||
node:14 \
|
||||
${cmd}
|
Loading…
Reference in New Issue
Block a user