Skip to content

Commit

Permalink
Merge pull request #32 from nikolai-shabalin/feature/astro
Browse files Browse the repository at this point in the history
Переносит создание сайта на Astro
  • Loading branch information
nikolai-shabalin authored Dec 1, 2024
2 parents 21349a6 + fdaa663 commit e19793c
Show file tree
Hide file tree
Showing 32 changed files with 3,455 additions and 2,200 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jobs:
run: pnpm i

- name: Building
run: npm run build
run: pnpm build

- name: Deploy
uses: JamesIves/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
folder: ./build
folder: ./dist
branch: gh-pages
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/.idea
/.vscode
/node_modules
/data
/build
/dist
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ npm start
```

## Структура проекта
- `site` - файлы для сборки сайта: шаблонизаторы, препроцессоры, данные.
- `build` - автогенерируемые файлы для сайта (прод).
- `src` - файлы для сборки сайта: шаблонизаторы, компоненты, данные;
- `dist` - автогенерируемые файлы для сайта (прод);
- `файлы в корне` - конфигурационные файлы проекта.
3 changes: 3 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { defineConfig } from 'astro/config';

export default defineConfig({});
Empty file removed grab/createData.js
Empty file.
88 changes: 0 additions & 88 deletions gulpfile.js

This file was deleted.

19 changes: 8 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
{
"name": "css-properties",
"version": "2.0.0",
"version": "3.0.0",
"description": "List of all CSS properties added to browsers",
"main": "app.js",
"scripts": {
"build": "gulp build",
"create:data": "node app.js",
"start": "gulp"
"create:data": "node src/data/createData.js",
"dev": "astro dev",
"build": "astro check && astro build",
"preview": "astro preview"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@astrojs/check": "0.9.4",
"@mdn/browser-compat-data": "5.6.20",
"browser-sync": "3.0.3",
"del": "8.0.0",
"gulp": "5.0.0",
"gulp-htmlmin": "5.0.1",
"gulp-postcss": "10.0.0",
"gulp-twig": "1.2.0",
"postcss-lightningcss": "1.0.1"
"astro": "4.16.16",
"typescript": "5.7.2"
},
"type": "module",
"engines": {
Expand Down
Loading

0 comments on commit e19793c

Please sign in to comment.