diff --git a/.env b/.env new file mode 100644 index 0000000..ba0e28b --- /dev/null +++ b/.env @@ -0,0 +1,4 @@ +NODE_ENV=development + +# CLI specific environement variables +CLI_ENV=private diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..ba0e28b --- /dev/null +++ b/.env.example @@ -0,0 +1,4 @@ +NODE_ENV=development + +# CLI specific environement variables +CLI_ENV=private diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 9c9a33b..0000000 --- a/.eslintignore +++ /dev/null @@ -1,4 +0,0 @@ -node_modules -dist -coverage -examples \ No newline at end of file diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 92f5539..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "env": { - "jest": true - }, - "parserOptions": { - "ecmaVersion": 2018, - "sourceType": "module" - }, - "extends": ["standard", "prettier"], - "plugins": ["prettier"], - "rules": { - "no-unused-vars": [ - 2, - { - "args": "all", - "argsIgnorePattern": "^_" - } - ], - "no-warning-comments": 0, - "prettier/prettier": [ - "error", - { - "semi": false, - "singleQuote": true, - "printWidth": 100, - "tabWidth": 2, - "useTabs": false, - "trailingComma": "es5", - "bracketSpacing": true, - "parser": "flow", - "endOfLine": "auto" - } - ] - } -} diff --git a/.gitignore b/.gitignore index 8d01760..467b9b3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,30 @@ node_modules -coverage + +# Distribution files dist + +# local env files +.env* +!.env.example + +# Example built files examples/**/style.css -examples/**/tailwind.output.css \ No newline at end of file +examples/**/tailwind.output.css + +# Tests +tests/unit/.coverage + +# Log files +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* + +# Editor directories and files +.idea +.vscode +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index 3ba48a5..0000000 --- a/.prettierrc +++ /dev/null @@ -1,11 +0,0 @@ -{ - "semi": false, - "singleQuote": true, - "printWidth": 100, - "tabWidth": 2, - "useTabs": false, - "trailingComma": "es5", - "bracketSpacing": true, - "parser": "flow", - "endOfLine": "auto" -} diff --git a/.travis.yml b/.travis.yml index 775623e..4409446 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,8 +3,7 @@ cache: npm notifications: email: false node_js: - - 12 - - 14 + - 18 - node install: - npm install @@ -12,9 +11,9 @@ script: - npm run lint - npm run test:coverage - npm run build -after_success: - - npm run codecov - - npm run semantic-release +# after_success: +# - npm run codecov +# - npm run semantic-release branches: only: - master diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..1a6e664 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,37 @@ +# Changelog + +## 2.0.1 (2025-05-05) + +* build: remove old external dep ([8079133](https://github.com/hperchec/tailwindcss-multi-theme/commit/8079133)) +* build: update package.json files field ([9376920](https://github.com/hperchec/tailwindcss-multi-theme/commit/9376920)) +* docs: update readme template ([6fcb7e0](https://github.com/hperchec/tailwindcss-multi-theme/commit/6fcb7e0)) + +## 2.0.0 (2025-05-05) + +* build: add @release-it/conventional-changelog dependency ([8c4294f](https://github.com/hperchec/tailwindcss-multi-theme/commit/8c4294f)) +* build: migrate from webpack to vite ([acf99d6](https://github.com/hperchec/tailwindcss-multi-theme/commit/acf99d6)) +* build: migrate to eslint v9 and use @stylistic rules ([af7a40e](https://github.com/hperchec/tailwindcss-multi-theme/commit/af7a40e)) +* build: remove useless files ([a552beb](https://github.com/hperchec/tailwindcss-multi-theme/commit/a552beb)) +* build: replace husky and commitizen by juisy features ([88004f2](https://github.com/hperchec/tailwindcss-multi-theme/commit/88004f2)) +* build: update .gitignore file ([828f9b7](https://github.com/hperchec/tailwindcss-multi-theme/commit/828f9b7)) +* build: update eslint config ([d896ad3](https://github.com/hperchec/tailwindcss-multi-theme/commit/d896ad3)) +* build: update package-lock.json ([daf47a2](https://github.com/hperchec/tailwindcss-multi-theme/commit/daf47a2)) +* build: update package-lock.json ([91d94ed](https://github.com/hperchec/tailwindcss-multi-theme/commit/91d94ed)) +* build: update release config ([2615a07](https://github.com/hperchec/tailwindcss-multi-theme/commit/2615a07)) +* build: update release config ([010ee18](https://github.com/hperchec/tailwindcss-multi-theme/commit/010ee18)) +* build: update release config ([bbc7a83](https://github.com/hperchec/tailwindcss-multi-theme/commit/bbc7a83)) +* build: use juisy library ([f54e382](https://github.com/hperchec/tailwindcss-multi-theme/commit/f54e382)) +* build: use master branch instead of main in release config ([dc81ecf](https://github.com/hperchec/tailwindcss-multi-theme/commit/dc81ecf)) +* test: migrate to vitest and rewrite tests ([3e17a47](https://github.com/hperchec/tailwindcss-multi-theme/commit/3e17a47)) +* test: remove console.log ([0daeaa2](https://github.com/hperchec/tailwindcss-multi-theme/commit/0daeaa2)) +* style: lint files ([c965451](https://github.com/hperchec/tailwindcss-multi-theme/commit/c965451)) +* docs: update contributing ([aee56b5](https://github.com/hperchec/tailwindcss-multi-theme/commit/aee56b5)) +* docs: update docs ([fbdfbcc](https://github.com/hperchec/tailwindcss-multi-theme/commit/fbdfbcc)) +* docs: update docs and licence ([8411b8b](https://github.com/hperchec/tailwindcss-multi-theme/commit/8411b8b)) +* docs: update simple example ([8dca335](https://github.com/hperchec/tailwindcss-multi-theme/commit/8dca335)) +* ci: update .travis.yml ([db00188](https://github.com/hperchec/tailwindcss-multi-theme/commit/db00188)) +* chore: remove postcss-selector-parser dependency ([96fb3df](https://github.com/hperchec/tailwindcss-multi-theme/commit/96fb3df)) +* chore: update plugin ([58b966e](https://github.com/hperchec/tailwindcss-multi-theme/commit/58b966e)) +* chore: update simple example ([49c9e79](https://github.com/hperchec/tailwindcss-multi-theme/commit/49c9e79)) +* feat: rewrite code in TypeScript and use new tailwind v3 plugin API ([1f6003f](https://github.com/hperchec/tailwindcss-multi-theme/commit/1f6003f)) +* wip: migrate to tailwindcss v3 ([a505af1](https://github.com/hperchec/tailwindcss-multi-theme/commit/a505af1)) diff --git a/COMMIT_CONVENTION.md b/COMMIT_CONVENTION.md new file mode 100644 index 0000000..757f52f --- /dev/null +++ b/COMMIT_CONVENTION.md @@ -0,0 +1,116 @@ +# Commit Message Format + +> ❗ IMPORTANT +> +> This documentation is based on Angular [commit message guidelines](https://github.com/angular/angular/blob/main/contributing-docs/commit-message-guidelines.md) + +We have very precise rules over how our Git commit messages must be formatted. +This format leads to **easier to read commit history** and makes it analyzable for changelog generation. + +Each commit message consists of a **header**, a **body**, and a **footer**. + +``` +
+ + + +