feat: adicionando gulp e estrutura de pastas

This commit is contained in:
Ana Carolina Duarte Cavalcante 2022-11-15 09:27:50 -03:00
parent 4945017932
commit 0d20343cb2
12 changed files with 7881 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
dist
node_modules

14
gulpfile.js Normal file
View File

@ -0,0 +1,14 @@
const {src,dest,watch} = require("gulp");
const sass = require("gulp-sass")(require("sass"));
function styles() {
return src("src/styles/main.scss")
.pipe(sass({ outputStyle: "compressed" }).on("error", sass.logError))
.pipe(dest("dist"));
}
function sentinel(){
watch("src/styles/**/*.scss", { ignoreInitial: false }, styles);
}
exports.sentinel = sentinel;

7804
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

21
package.json Normal file
View File

@ -0,0 +1,21 @@
{
"name": "challenge-tourist-attractions-ana-carolina-duarte-cavalcante",
"version": "1.0.0",
"description": "To make it easy for you to get started with GitLab, here's a list of recommended next steps.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "gulp sentinel"
},
"repository": {
"type": "git",
"url": "ssh://git@gitea.ecommercetools.com.br:22022/anacarolinaduartecavalcante/challenge-tourist-attractions-ana-carolina-duarte-cavalcante.git"
},
"author": "",
"license": "ISC",
"devDependencies": {
"gulp": "^4.0.2",
"gulp-sass": "^5.1.0",
"sass": "^1.56.1"
}
}

19
public/index.html Normal file
View File

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<link rel="preconnect" href="https://fonts.googleapis.com"/>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Challenge Tourist Attractions</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet"/>
<link rel="stylesheet" href="../dist/main.css"/>
</head>
<body>
</body>
</html>

View File

@ -0,0 +1,8 @@
body{
background: $background-color;
font-family: 'Poppins', sans-serif;
}
button{
cursor: pointer;
}

View File

@ -0,0 +1,5 @@
*{
box-sizing: border-box;
margin: 0;
padding: 0;
}

8
src/styles/main.scss Normal file
View File

@ -0,0 +1,8 @@
@import "utils/variables.scss";
@import "common/reset.scss";
@import "common/global.scss";
@import "partials/container.scss";
@import "partials/form.scss";
@import "partials/slider.scss";

View File

View File

View File