Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/improve scss build #307

Merged
merged 3 commits into from
Dec 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ open localhost and now you can make changes in style and refresh the page withou

when you're working on scss to compile it automatically run
```
sass --watch docs/_static/scss:docs/_static/css
npx sass --watch docs/_static/scss:docs/_static/css
```

or after changes compile scss once:
or as a production build:
```
sass docs/_static/scss:docs/_static/css
npx sass --style compressed --no-source-map docs/_static/scss:docs/_static/css
```

## Deployment
Expand Down
5 changes: 5 additions & 0 deletions deploy.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@
run('ln -sf docs/_build/html pub');
});

task('node:build:scss', static function() {
run('npx sass --style compressed --no-source-map docs/_static/scss:docs/_static/css');
});

# HMV configuration for when this is running in a docker
task('deploy:hmv_docker', static function () use (&$DOCKER_HOST, &$DOCKER_WEBROOT) {
if (test('[ -f /etc/hypernode/is_docker ]')) {
Expand All @@ -71,6 +75,7 @@
});

$configuration = new Configuration();
$configuration->addBuildTask('node:build:scss');
$configuration->addBuildTask('python:venv:create');
$configuration->addBuildTask('python:venv:requirements');
$configuration->addBuildTask('python:build_documentation');
Expand Down
3 changes: 0 additions & 3 deletions docs/_static/css/breakpoints.css

This file was deleted.

31 changes: 0 additions & 31 deletions docs/_static/css/colors.css

This file was deleted.

Loading
Loading