Skip to content

Commit bcf6e36

Browse files
committed
merge boilerplate into project
1 parent f974684 commit bcf6e36

File tree

13 files changed

+2353
-1
lines changed

13 files changed

+2353
-1
lines changed

.github/workflows/nodejs.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Name of workflow
2+
name: Node CI
3+
4+
# Trigger the workflow on push or pull request
5+
on:
6+
- push
7+
- pull_request
8+
9+
jobs:
10+
build:
11+
12+
# The type of machine to run the job on
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
# Node versions list
17+
matrix:
18+
node-version: [23.x]
19+
20+
steps:
21+
# Check-out repository under GitHub workspace
22+
# https://github.com/actions/checkout
23+
- uses: actions/checkout@v4
24+
# Step's name
25+
- name: Use Node.js ${{ matrix.node-version }}
26+
# Configures the node version used on GitHub-hosted runners
27+
# https://github.com/actions/setup-node
28+
uses: actions/setup-node@v4
29+
# The Node.js version to configure
30+
with:
31+
node-version: ${{ matrix.node-version }}
32+
33+
- name: npm install, build
34+
# Install and build project
35+
run: |
36+
make install
37+
make build
38+
# Add environment variables
39+
env:
40+
CI: true
41+
42+
- name: Run linter
43+
run: make lint
44+
45+
- name: Run tests
46+
run: make test

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
install:
2+
npm ci
3+
4+
develop:
5+
npm run dev
6+
7+
lint:
8+
npx eslint .
9+
10+
build:
11+
NODE_ENV=production npm run build
12+
13+
test:
14+
echo no tests

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
### Hexlet tests and linter status:
2-
[![Actions Status](https://github.com/daria-z/frontend-project-11/actions/workflows/hexlet-check.yml/badge.svg)](https://github.com/daria-z/frontend-project-11/actions)
2+
[![Actions Status](https://github.com/daria-z/frontend-project-11/actions/workflows/hexlet-check.yml/badge.svg)](https://github.com/daria-z/frontend-project-11/actions)

eslint.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import js from "@eslint/js";
2+
import globals from "globals";
3+
import { defineConfig } from "eslint/config";
4+
5+
6+
export default defineConfig([
7+
{ files: ["**/*.{js,mjs,cjs}"], plugins: { js }, extends: ["js/recommended"] },
8+
{ files: ["**/*.{js,mjs,cjs}"], languageOptions: { globals: globals.browser } },
9+
]);

index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite App</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/main.js"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)