Skip to content

Commit 01e925a

Browse files
committed
Drop Less.js support
1 parent 036804b commit 01e925a

File tree

6 files changed

+7
-297
lines changed

6 files changed

+7
-297
lines changed

.npmignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/.css-compare
21
/.idea
32
/examples
43
/test

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
#### Styling
1818

19+
* Drop support for Less.js styles
1920
* The `iconsClass` property now defaults to `"fa5"` for Font Awesome 5/6 instead of Font Awesome 4
2021
* The `rct-options` and `rct-option` CSS classes are now `rct-actions` and `rct-action`
2122

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@ npm install react-checkbox-tree --save
2828
2929
### Include CSS
3030

31-
For your convenience, the library's styles can be consumed utilizing one of the following files:
31+
The library's styles are available through one of the following files:
3232

3333
* `node_modules/react-checkbox-tree/lib/react-checkbox-tree.css`
34-
* `node_modules/react-checkbox-tree/src/less/react-checkbox-tree.less`
3534
* `node_modules/react-checkbox-tree/src/scss/react-checkbox-tree.scss`
3635

3736
Either include one of these files in your stylesheets or utilize a CSS loader:
@@ -47,6 +46,7 @@ Below is a minimal example using [state hooks][docs-state-hooks]. Note that `Che
4746
``` jsx
4847
import React, { useState } from 'react';
4948
import CheckboxTree from 'react-checkbox-tree';
49+
import 'react-checkbox-tree/lib/react-checkbox-tree.css';
5050

5151
const nodes = [{
5252
value: 'mars',

package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,23 @@
1919
"main": "lib/index.js",
2020
"browser": "lib/index.browser.js",
2121
"scripts": {
22-
"build-less": "lessc src/less/react-checkbox-tree.less .css-compare/less.css",
2322
"build-script": "npm run build-script-node && npm run build-script-web",
2423
"build-script-node": "webpack --env=target=node",
2524
"build-script-web": "webpack --env=target=web",
26-
"build-sass": "sass src/scss/react-checkbox-tree.scss lib/react-checkbox-tree.css && cp lib/react-checkbox-tree.css .css-compare/scss.css",
27-
"build-style": "npm run build-less && npm run build-sass && npm run build-style-autoprefix",
25+
"build-scss": "sass src/scss/react-checkbox-tree.scss lib/react-checkbox-tree.css",
26+
"build-style": "npm run build-scss && npm run build-style-autoprefix",
2827
"build-style-autoprefix": "postcss lib/react-checkbox-tree.css --use autoprefixer --output lib/react-checkbox-tree.css",
2928
"build": "npm run build-script && npm run build-style",
3029
"examples": "webpack serve --config=webpack.config.test.js",
3130
"gh-build": "webpack --config=webpack.config.test.js --mode=production",
3231
"gh-deploy": "npm run gh-build && bash ./gh-deploy.sh",
3332
"prepublishOnly": "npm run release",
34-
"release": "npm run test && npm run build && npm run test-style-equivalence",
33+
"release": "npm run test && npm run build",
3534
"test": "npm run test-script && npm run test-style",
3635
"test-script": "npm run test-script-format && npm run test-script-mocha",
3736
"test-script-format": "eslint src/**/*.{js,jsx} examples/src/**/*.{js,jsx} test/**/*.{js,jsx} *.{js,jsx}",
3837
"test-script-mocha": "cross-env NODE_PATH=./src mocha test/**/*.{js,jsx} --exit",
39-
"test-style": "stylelint src/scss/**/*.scss examples/src/scss/**/*.scss",
40-
"test-style-equivalence": "postcss .css-compare/less.css --output .css-compare/less.css && postcss .css-compare/scss.css --output .css-compare/scss.css && cmp .css-compare/less.css .css-compare/scss.css"
38+
"test-style": "stylelint src/scss/**/*.scss examples/src/scss/**/*.scss"
4139
},
4240
"peerDependencies": {
4341
"react": "^15.3.0 || ^16.0.0 || ^17.0.0 || ^18.0.0"

postcss.config.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/less/react-checkbox-tree.less

Lines changed: 0 additions & 278 deletions
This file was deleted.

0 commit comments

Comments
 (0)