select2-bootstrap-5-theme
Advanced tools
Comparing version 1.2.0 to 1.3.0
{ | ||
"name": "select2-bootstrap-5-theme", | ||
"description": "Select2 v4 theme for Bootstrap 5", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"license": "MIT", | ||
@@ -33,2 +33,3 @@ "author": "Andrew Palfrey <apalfrey@apalfrey.me>", | ||
"start": "gulp", | ||
"start:full": "npm-run-all -p start docs docs:serve", | ||
"clean": "gulp clean", | ||
@@ -38,30 +39,35 @@ "lint": "gulp lint", | ||
"compile:main": "gulp compile:main", | ||
"compile:main:dev": "gulp compile:main:dev", | ||
"compile:main:min": "gulp compile:main:min", | ||
"compile:rtl": "gulp compile:rtl", | ||
"compile:rtl:dev": "gulp compile:rtl:dev", | ||
"compile:rtl:min": "gulp compile:rtl:min", | ||
"watch": "gulp watch", | ||
"browsersync": "gulp browsersync" | ||
"docs": "gulp docs", | ||
"docs:clean": "gulp docs:clean", | ||
"docs:lint": "gulp docs:lint", | ||
"docs:compile": "gulp docs:compile", | ||
"docs:compile:main": "gulp docs:compile:main", | ||
"docs:compile:rtl": "gulp docs:compile:rtl", | ||
"docs:watch": "gulp docs:watch", | ||
"docs:build": "cd docs && bundle exec jekyll build", | ||
"docs:serve": "cd docs && bundle exec jekyll serve --config _config_dev.yml" | ||
}, | ||
"dependencies": { | ||
"bootstrap": "^5.0.2" | ||
"bootstrap": "^5.1.3" | ||
}, | ||
"devDependencies": { | ||
"autoprefixer": "^10.2.4", | ||
"browser-sync": "^2.26.14", | ||
"@ronilaukkarinen/gulp-stylelint": "^14.0.5", | ||
"autoprefixer": "^10.4.2", | ||
"cssnano": "^5.1.0", | ||
"del": "^6.0.0", | ||
"gulp": "^4.0.2", | ||
"gulp-dart-sass": "^1.0.2", | ||
"gulp-if": "^3.0.0", | ||
"gulp-plumber": "^1.2.1", | ||
"gulp-postcss": "^9.0.0", | ||
"gulp-postcss": "^9.0.1", | ||
"gulp-rename": "^2.0.0", | ||
"gulp-rtlcss": "^1.4.1", | ||
"gulp-stylelint": "^13.0.0", | ||
"postcss": "^8.2.6", | ||
"sass": "^1.36.0", | ||
"stylelint": "^13.11.0", | ||
"stylelint-config-twbs-bootstrap": "^2.1.0" | ||
"gulp-sass": "^5.1.0", | ||
"npm-run-all": "^4.1.5", | ||
"postcss": "^8.4.6", | ||
"rtlcss": "^3.5.0", | ||
"sass": "^1.49.8", | ||
"stylelint": "^14.5.2", | ||
"stylelint-config-twbs-bootstrap": "^3.0.1" | ||
} | ||
} |
@@ -7,3 +7,2 @@ # Select2 Bootstrap 5 Theme | ||
[![License](https://img.shields.io/github/license/apalfrey/select2-bootstrap-5-theme?style=flat-square)](LICENSE) | ||
[![Dependencies](https://img.shields.io/david/apalfrey/select2-bootstrap-5-theme?style=flat-square)](https://david-dm.org/apalfrey/select2-bootstrap-5-theme) | ||
@@ -14,3 +13,3 @@ [Select2](https://github.com/select2/select2) v4 theme for Bootstrap 5, inspired by [select2-bootstrap4-theme](https://github.com/ttskch/select2-bootstrap4-theme) | ||
## Examples | ||
## Docs | ||
https://apalfrey.github.io/select2-bootstrap-5-theme/ | ||
@@ -24,8 +23,13 @@ | ||
```html | ||
<!-- Styles --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2@4.0.13/dist/css/select2.min.css" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2-bootstrap-5-theme@1.3.0/dist/select2-bootstrap-5-theme.min.css" /> | ||
<!-- Or for RTL support --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2-bootstrap-5-theme@1.3.0/dist/select2-bootstrap-5-theme.rtl.min.css" /> | ||
<!-- Scripts --> | ||
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.0/dist/jquery.slim.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/select2@4.0.13/dist/js/select2.full.min.js"></script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2-bootstrap-5-theme@1.2.0/dist/select2-bootstrap-5-theme.min.css" /> | ||
<!-- Or for RTL support --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2-bootstrap-5-theme@1.2.0/dist/select2-bootstrap-5-theme.rtl.min.css" /> | ||
``` | ||
@@ -35,8 +39,13 @@ | ||
```html | ||
<!-- Styles --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2-bootstrap-5-theme@1.3.0/dist/select2-bootstrap-5-theme.min.css" /> | ||
<!-- Or for RTL support --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2-bootstrap-5-theme@1.3.0/dist/select2-bootstrap-5-theme.rtl.min.css" /> | ||
<!-- Scripts --> | ||
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.0/dist/jquery.slim.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2-bootstrap-5-theme@1.2.0/dist/select2-bootstrap-5-theme.min.css" /> | ||
<!-- Or for RTL support --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2-bootstrap-5-theme@1.2.0/dist/select2-bootstrap-5-theme.rtl.min.css" /> | ||
``` | ||
@@ -68,2 +77,5 @@ | ||
@import "node_modules/select2/src/scss/core"; | ||
// If you need to import Bootstrap as well: | ||
@import "node_modules/select2-bootstrap-5-theme/src/select2-bootstrap-5-theme"; | ||
// Or if you have already imported Bootstrap: | ||
@import "node_modules/select2-bootstrap-5-theme/src/include-all"; | ||
@@ -109,19 +121,24 @@ ``` | ||
## Building | ||
## Build tools | ||
This repo uses Gulp to compile the assets, see below for the included npm scripts and Gulp tasks and what they do; | ||
| npm script | Gulp task | Description | | ||
| ------------------ | ------------------ | ---------------------------------------------------------------------------------------------------------------------- | | ||
| `start` | `default` | Cleans the `dist` directory, lints the scss, compiles the dev and min versions, starts browsersync and starts watching | | ||
| `clean` | `clean` | Cleans the `dist` directory, removing the directory and it's contents | | ||
| `lint` | `lint` | Lints the scss files using [Stylelint](https://stylelint.io/), see [.stylelintrc](.stylelintrc) and [stylelint-config-twbs-bootstrap](https://github.com/twbs/stylelint-config-twbs-bootstrap) for linting rules | | ||
| `compile` | `compile` | Lints the scss, compiles the RTL and LTR dev and min versions | | ||
| `compile:main` | `compile:main` | Compiles all LTR versions, saving in `dist` and `docs` | | ||
| `compile:main:dev` | `compile:main:dev` | Compiles the LTR expanded version, saving in `dist` and `docs` | | ||
| `compile:main:min` | `compile:main:min` | Compiles the LTR compressed version, saving in `dist` | | ||
| `compile:rtl` | `compile:rtl` | Compiles all RTL versions, saving in `dist` and `docs` | | ||
| `compile:rtl:dev` | `compile:rtl:dev` | Compiles the RTL expanded version, saving in `dist` and `docs` | | ||
| `compile:rtl:min` | `compile:rtl:min` | Compiles the RTL compressed version, saving in `dist` | | ||
| `watch` | `watch` | Watches all files in `src`, compiling the scss when changes are detected | | ||
| `browsersync` | `browsersync` | Sets up a browsersync server serving the `docs` directory for development | | ||
| npm script | Gulp task | Description | | ||
|---------------------|---------------------|----------------------------------------------------------------------------------------------------------------------------------| | ||
| `start` | `default` | Cleans the `dist` directory, lints the SCSS, compiles the dev and min versions and starts watching the SCSS for changes | | ||
| `start:full` | N/A | Cleans, lints, compiles and watches the SCSS (theme & docs) and serves the docs for development | | ||
| `clean` | `clean` | Cleans the `dist` directory, removing the directory and it's contents | | ||
| `lint` | `lint` | Lints the SCSS files using [Stylelint](https://stylelint.io/), see [.stylelintrc](.stylelintrc) and [stylelint-config-twbs-bootstrap](https://github.com/twbs/stylelint-config-twbs-bootstrap) for linting rules | | ||
| `compile` | `compile` | Cleans the `dist` directory, lints the SCSS, compiles the LTR and RTL dev and min versions. Does the same for the docs | | ||
| `compile:main` | `compile:main` | Compiles all LTR versions | | ||
| `compile:rtl` | `compile:rtl` | Compiles all RTL versions | | ||
| `watch` | `watch` | Watches all files in `src`, compiling the SCSS when changes are detected | | ||
| `docs` | `docs` | Cleans the `docs/assets/css` directory, lints the docs SCSS, compiles the docsSCSS and starts watching the docs SCSS for changes | | ||
| `docs:clean` | `docs:clean` | Cleans the `docs/assets/css` directory, removing the directory and it's contents | | ||
| `docs:lint` | `docs:lint` | Lints the docs SCSS files using [Stylelint](https://stylelint.io/), see [.stylelintrc](.stylelintrc) and [stylelint-config-twbs-bootstrap](https://github.com/twbs/stylelint-config-twbs-bootstrap) for linting rules | | ||
| `docs:compile` | `docs:compile` | Cleans the `docs/assets/css` directory, lints the docs SCSS and compiles the LTR and RTL versions | | ||
| `docs:compile:main` | `docs:compile:main` | Compiles the LTR version of the docs SCSS | | ||
| `docs:compile:rtl` | `docs:compile:rtl` | Compiles the RTL version of the docs SCSS | | ||
| `docs:watch` | `docs:watch` | Watches all files in docs/_sass, compiling the SCSS when changes are detected | | ||
| `docs:build` | N/A | Builds the docs using Jekyll | | ||
| `docs:serve` | N/A | Serves the docs using Jekyll for development | | ||
@@ -131,2 +148,4 @@ ## Contributing | ||
[Find out more about contributing here](https://apalfrey.github.io/select2-bootstrap-5-theme/about/contributing/) | ||
## License | ||
@@ -137,3 +156,3 @@ | ||
Copyright (c) 2020 Andrew Palfrey <apalfrey@apalfrey.me> | ||
Copyright (c) 2022 Andrew Palfrey <apalfrey@apalfrey.me> | ||
@@ -140,0 +159,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
168977
1212
169
16
Updatedbootstrap@^5.1.3