Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: acdlite/json-sass
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: AS-Devs/json2scss-map
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
Loading
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-env"]
}
12 changes: 12 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: ['https://www.buymeacoffee.com/susanta96', 'https://www.paypal.com/paypalme/SusantaChak']
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -28,3 +28,4 @@ build/Release
node_modules

lib
package-lock.json
48 changes: 48 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Changelog

## v1.5.1

- Refactor and update the json2scss CLI tool to enhance user experience
- Updated flag aliases and descriptions to improve clarity. For example, changed 'cc' to 'c', 'ct' to 't', and 'cl4' to 'l' aligning with more intuitive usage.
- Refined default settings for options and aliases, expanded format choices, and ensured that minimist expects bools and strings.

## v1.5.0

### Added or Changed

- Added this changelog :)
- Rewrite the whole Readme file once again for better readability
- Back to top links
- Added major feature to convert the color value into specific color scheme (rgb, hsl, hex) etc.
- Default behavior has been changed to color convertion on functionality with `hsl` convertion.
- Also added config for outputing the color values into new CSS Color Lavel 4 Syntax. (all major browsers has support for new syntax)
- Default behavior for this new syntax output `cl4Syntax` is `false`.

### Drawbacks

- RGB colors can also support % in there values. This version doesn't treat % in rgb value as rgb colors. So, we don't convert them.
- HSL colors support `deg` unit. This version doesn't treat `deg, rad, turn` units as valid color. So, we don't convert them.
- It doesn't support color convertion from a new space separated syntax as input.
- We don't throw any error during the file read / write. It won't convert these colors if it doesn't understand any input as colors. But it will output these values without `quotes`.

## v1.4.2

### Added or Changed

- Improvement / Fix Regarding compiling Nested Array of Objects.
- Updated the unexpectedly remove `quotes` from the strings.
- Thanks to the [Dylan Awalt-Conley](https://github.com/dawaltconley) for your PR.

## v1.4.1

### Added or Changed

- Added support for ch unit as value.
- Now you can use any color format you are not strict to use hex only . Use rgba, hsl, rgb etc.

## v1.4.0

### Added or Changed

- scss map supports key as string so, now map keys will be in string.
- font sizes like rem, px, em and colors in hex value will return without string quote which will help you to get the desire value from scss map.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 AS Developers

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -9,13 +9,13 @@ build: js
test: build
$(MOCHA_CMD) lib/**/__tests__/*-test.js --require ./lib/test-init.js

js: $(LIB_JS) lib/bin/json-sass
js: $(LIB_JS) lib/bin/json2scss

$(LIB_JS): lib/%.js: src/%.js
mkdir -p $(dir $@) && $(BABEL_CMD) $< -o $@ --experimental
mkdir -p $(dir $@) && $(BABEL_CMD) $< -o $@

lib/bin/json-sass:
mkdir -p $(dir $@) && $(BABEL_CMD) src/bin/json-sass -o $@ --experimental
lib/bin/json2scss:
mkdir -p $(dir $@) && $(BABEL_CMD) src/bin/json2scss -o $@

clean:
rm -rf lib/
Loading