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

Bump dependencies and fix deprecation warning #35

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
68 changes: 49 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"description": "A tiny Sass token class generator.",
"main": "gorko.scss",
"dependencies": {
"sass": "^1.26.5"
"sass": "^1.56.0"
},
"scripts": {
"test": "npx sass gorko.scss tmp/gorko.css && npx sass test/test.scss tmp/test.css"
},
"devDependencies": {
"prettier": "^2.0.5"
"prettier": "^2.7.1"
},
"repository": {
"type": "git",
Expand Down
9 changes: 6 additions & 3 deletions src/_default-config.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
@use "sass:math";

/// BASE SIZE
/// All calculations are based on this. It’s recommended that
/// you keep it at 1rem because that is the root font size. You
/// can set it to whatever you like and whatever unit you like.
///

$gorko-base-size: 1rem !default;

/// SIZE SCALE
Expand Down Expand Up @@ -134,9 +137,9 @@ $gorko-config: (
'width': (
'items': (
'full': '100%',
'half': percentage(1/2),
'quarter': percentage(1/4),
'third': percentage(1/3)
'half': percentage(1*0.5),
'quarter': percentage(1*0.25),
'third': percentage(math.div(1, 3))
),
'output': 'responsive',
'property': 'width'
Expand Down
9 changes: 6 additions & 3 deletions test/_config.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
@use "sass:math";

/// BASE SIZE
/// All calculations are based on this. It’s recommended that
/// you keep it at 1rem because that is the root font size. You
/// can set it to whatever you like and whatever unit you like.
///

$gorko-base-size: 1rem;

/// SIZE SCALE
Expand Down Expand Up @@ -170,9 +173,9 @@ $gorko-config: (
'width': (
'items': (
'full': '100%',
'half': percentage(1/2),
'quarter': percentage(1/4),
'third': percentage(1/3)
'half': percentage(1*0.5),
'quarter': percentage(1*0.25),
'third': percentage(math.div(1, 3))
),
'output': 'responsive',
'property': 'width'
Expand Down