feat: adicionando gulp e estrutura de pastas
This commit is contained in:
parent
4945017932
commit
0d20343cb2
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
dist
|
||||||
|
node_modules
|
14
gulpfile.js
Normal file
14
gulpfile.js
Normal 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
7804
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
21
package.json
Normal file
21
package.json
Normal 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
19
public/index.html
Normal 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>
|
8
src/styles/common/global.scss
Normal file
8
src/styles/common/global.scss
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
body{
|
||||||
|
background: $background-color;
|
||||||
|
font-family: 'Poppins', sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
button{
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
5
src/styles/common/reset.scss
Normal file
5
src/styles/common/reset.scss
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
*{
|
||||||
|
box-sizing: border-box;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
8
src/styles/main.scss
Normal file
8
src/styles/main.scss
Normal 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";
|
0
src/styles/partials/container.scss
Normal file
0
src/styles/partials/container.scss
Normal file
0
src/styles/partials/form.scss
Normal file
0
src/styles/partials/form.scss
Normal file
0
src/styles/partials/slider.scss
Normal file
0
src/styles/partials/slider.scss
Normal file
Loading…
Reference in New Issue
Block a user