Skip to content

Commit

Permalink
fixup! Chore: Update version replace script to ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
literat committed Jan 10, 2025
1 parent cffbadf commit fa06ad1
Show file tree
Hide file tree
Showing 4 changed files with 185 additions and 117 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ Load default CSS along with your styles in `<head>`:

```html
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@almacareer/cookie-consent-manager@3/CookieConsentManager.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@almacareer/cookie-consent-manager@2/CookieConsentManager.min.css">
```

Load the script and initialize the plugin right before ending `</body>` tag:

```html
<script defer src="https://cdn.jsdelivr.net/npm/@almacareer/cookie-consent-manager@3/init.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/@almacareer/cookie-consent-manager@2/init.js"></script>
<script>
window.addEventListener('DOMContentLoaded', function () {
initCookieConsentManager('demo.example'); // use the name of your service, like jobs.cz, seduo.pl etc.
Expand Down Expand Up @@ -72,8 +72,8 @@ You can load the plugin from a CDN, as in the basic example above.
```html
<!-- Note we use version "cookie-consent-manager@2", which points to the latest version of this series (including feature and bugfix releases) -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@almacareer/cookie-consent-manager@3/CookieConsentManager.min.css">
<script defer src="https://cdn.jsdelivr.net/npm/@almacareer/cookie-consent-manager@3/init.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@almacareer/cookie-consent-manager@2/CookieConsentManager.min.css">
<script defer src="https://cdn.jsdelivr.net/npm/@almacareer/cookie-consent-manager@2/init.js"></script>
```

Alternatively, you can also download the latest version from the [Releases page](https://github.com/lmc-eu/cookie-consent-manager/releases).
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"version": "yarn changelog && yarn replace-version && git status && git add CHANGELOG.md README.md package.json ./dist && git status",
"postversion": "echo 'Check and push: `git push --set-upstream origin main && git push --tags`'",
"release": "yarn version --`./bin/ci/semver.sh`",
"replace-version": "ts-node --esm scripts/readme-replace-version.mjs",
"replace-version": "tsx scripts/readme-replace-version.ts",
"types": "tsc -p ./tsconfig.json"
},
"dependencies": {
Expand Down Expand Up @@ -117,7 +117,7 @@
"stylelint": "16.12.0",
"stylelint-prettier": "5.0.2",
"ts-jest": "29.2.5",
"ts-node": "10.9.2",
"tsx": "^4.19.2",
"typescript": "5.7.2",
"vite": "6.0.6",
"vite-plugin-dts": "4.4.0"
Expand Down
File renamed without changes.
Loading

0 comments on commit fa06ad1

Please # to comment.