From f085b1faea7a8f895b1a451b049ce161a358d6c6 Mon Sep 17 00:00:00 2001 From: ubermanu Date: Sat, 16 Sep 2023 17:30:33 +0200 Subject: [PATCH 1/5] chore: remove preconfigured plugins --- docs/examples/tailwindcss.md | 45 +++ docs/plugins/cssnano.md | 39 --- docs/plugins/react.md | 36 --- docs/plugins/tailwindcss.md | 48 ---- packages/plugin-cssnano/CHANGELOG.md | 67 ----- packages/plugin-cssnano/README.md | 21 -- packages/plugin-cssnano/package.json | 45 --- packages/plugin-cssnano/src/plugin.ts | 24 -- packages/plugin-cssnano/tsconfig.json | 4 - packages/plugin-react/CHANGELOG.md | 67 ----- packages/plugin-react/README.md | 23 -- packages/plugin-react/package.json | 42 --- packages/plugin-react/src/plugin.ts | 26 -- packages/plugin-react/tsconfig.json | 4 - packages/plugin-tailwindcss/CHANGELOG.md | 66 ----- packages/plugin-tailwindcss/README.md | 23 -- packages/plugin-tailwindcss/package.json | 43 --- packages/plugin-tailwindcss/src/plugin.ts | 39 --- packages/plugin-tailwindcss/tsconfig.json | 4 - packages/preset-default/package.json | 4 +- packages/preset-default/src/preset.ts | 11 +- pnpm-lock.yaml | 336 ++-------------------- 22 files changed, 79 insertions(+), 938 deletions(-) create mode 100644 docs/examples/tailwindcss.md delete mode 100644 docs/plugins/cssnano.md delete mode 100644 docs/plugins/react.md delete mode 100644 docs/plugins/tailwindcss.md delete mode 100644 packages/plugin-cssnano/CHANGELOG.md delete mode 100644 packages/plugin-cssnano/README.md delete mode 100644 packages/plugin-cssnano/package.json delete mode 100644 packages/plugin-cssnano/src/plugin.ts delete mode 100644 packages/plugin-cssnano/tsconfig.json delete mode 100644 packages/plugin-react/CHANGELOG.md delete mode 100644 packages/plugin-react/README.md delete mode 100644 packages/plugin-react/package.json delete mode 100644 packages/plugin-react/src/plugin.ts delete mode 100644 packages/plugin-react/tsconfig.json delete mode 100644 packages/plugin-tailwindcss/CHANGELOG.md delete mode 100644 packages/plugin-tailwindcss/README.md delete mode 100644 packages/plugin-tailwindcss/package.json delete mode 100644 packages/plugin-tailwindcss/src/plugin.ts delete mode 100644 packages/plugin-tailwindcss/tsconfig.json diff --git a/docs/examples/tailwindcss.md b/docs/examples/tailwindcss.md new file mode 100644 index 00000000..65e06a4f --- /dev/null +++ b/docs/examples/tailwindcss.md @@ -0,0 +1,45 @@ +# Tailwind CSS + +The following example uses [Tailwind CSS](https://tailwindcss.com/) to generate a CSS file. + +Install these packages, and initialize Tailwind CSS configuration: + +```sh +npm i magefront-plugin-postcss tailwindcss autoprefixer --save-dev +npx tailwindcss init -p +``` + +Add the following to your `magefront.config.js` file: + +```js +// magefront.config.js +import postcss from 'magefront-plugin-postcss' +import tailwindcss from 'tailwindcss' + +export default { + plugins: [ + postcss({ + src: 'tailwind.postcss', + dest: 'tailwind.css', + plugins: [tailwindcss()] + }) + ] +} +``` + +Add the following to your `tailwind.postcss` file: + +```css +@tailwind base; +@tailwind components; +@tailwind utilities; +``` + +Add the paths to all your templates in your `tailwind.config.js` file: + +```js +/** @type {import('tailwindcss').Config} */ +export default { + content: ['./**/*.{html,phtml}'] +}; +``` diff --git a/docs/plugins/cssnano.md b/docs/plugins/cssnano.md deleted file mode 100644 index 419f7345..00000000 --- a/docs/plugins/cssnano.md +++ /dev/null @@ -1,39 +0,0 @@ -# CSSNano - -Compress CSS files. - -This plugin is based on [magefront-plugin-postcss](plugins/postcss.md). - -## Install - - npm i magefront-plugin-cssnano --save-dev - -## Usage - -```js -import cssnano from 'magefront-plugin-cssnano' - -export default { - plugins: [ - cssnano() - ] -} -``` - -## Options - -### `src` - -The CSS files to minify. Default is `**/!(_)*.css`. - -### `ignore` - -A list of paths to ignore. - -### `preset` - -The preset to use. Default is `default`. - -### `plugins` - -A list of PostCSS plugins to use. See the [CSSNano docs](https://cssnano.co/docs/config-file/#use-individual-plugins) for more info. diff --git a/docs/plugins/react.md b/docs/plugins/react.md deleted file mode 100644 index f9f27251..00000000 --- a/docs/plugins/react.md +++ /dev/null @@ -1,36 +0,0 @@ -# React - -Transforms *.jsx files into *.js files using [Babel](https://babeljs.io/). - -This plugin is based on [magefront-plugin-babel](plugins/babel.md). - -## Install - - npm i react --save-dev - npm i magefront-plugin-react --save-dev - -## Usage - -```js -import react from 'magefront-plugin-react' - -export default { - plugins: [ - react() - ] -} -``` - -## Options - -### `src` - -The source files to transform. Default is `**/*.jsx`. - -### `ignore` - -A list of paths to ignore. Default is `['**/node_modules/**']`. - -### `compilerOptions` - -Options to pass to the [typescript](https://www.typescriptlang.org/docs/handbook/compiler-options.html) compiler. diff --git a/docs/plugins/tailwindcss.md b/docs/plugins/tailwindcss.md deleted file mode 100644 index 0dada8c4..00000000 --- a/docs/plugins/tailwindcss.md +++ /dev/null @@ -1,48 +0,0 @@ -# Tailwind - -Generates CSS with [TailwindCSS](https://tailwindcss.com/) from your template files. - -## Install - - npm i magefront-plugin-tailwindcss --save-dev - -## Usage - -Create your `tailwind.css` file in your `web/css` directory: - -```css -@tailwind base; -@tailwind components; -@tailwind utilities; -``` - -Then add the plugin to your `magefront.config.js`: - -```js -import tailwindcss from 'magefront-plugin-tailwindcss' - -export default { - plugins: [ - tailwindcss({ - src: 'web/css/tailwind.css' - }) - ] -} -``` - -## Options - -### `src` ⭐ - -The CSS source file to process. - -### `ignore` - -A list of paths to ignore. - -### `config` - -The [TailwindCSS configuration](https://tailwindcss.com/docs/configuration) to use. - -
-⭐ - Required option diff --git a/packages/plugin-cssnano/CHANGELOG.md b/packages/plugin-cssnano/CHANGELOG.md deleted file mode 100644 index 2545e635..00000000 --- a/packages/plugin-cssnano/CHANGELOG.md +++ /dev/null @@ -1,67 +0,0 @@ -# magefront-plugin-cssnano - -## 1.2.1 - -### Patch Changes - -- magefront@1.2.1 -- magefront-plugin-postcss@1.2.1 - -## 1.2.0 - -### Minor Changes - -- f8da0cb: Set a proper (peer) dependency version in packages - -### Patch Changes - -- Updated dependencies [f8da0cb] -- Updated dependencies [f8da0cb] - - magefront@1.2.0 - - magefront-plugin-postcss@1.2.0 - -## 1.1.0 - -### Minor Changes - -- 4cc6bd1: Changeset is struggling with peer dependencies. - Set the magefront peer dependency to `any`. - -### Patch Changes - -- Updated dependencies [4cc6bd1] -- Updated dependencies [9d2b2b5] - - magefront-plugin-postcss@1.1.0 - - magefront@1.1.0 - -## 1.0.0 - -### Major Changes - -- Release 1.0 - -### Minor Changes - -- 129c7ba: Loosen the magefront peer dependency version - -### Patch Changes - -- 886c513: Update dependencies to latest version -- Updated dependencies [3b70273] -- Updated dependencies [129c7ba] -- Updated dependencies [886c513] -- Updated dependencies - - magefront@1.0.0 - - magefront-plugin-postcss@1.0.0 - -## 0.3.0 - -### Minor Changes - -- 8784523: Set magefront peer dependency version to 'any' to avoid warnings - -### Patch Changes - -- Updated dependencies [8784523] - - magefront-plugin-postcss@0.4.0 - - magefront@0.24.3 diff --git a/packages/plugin-cssnano/README.md b/packages/plugin-cssnano/README.md deleted file mode 100644 index 19034d29..00000000 --- a/packages/plugin-cssnano/README.md +++ /dev/null @@ -1,21 +0,0 @@ -# magefront-plugin-cssnano - -CSS compression plugin for **magefront**. - -## Install - - npm i magefront-plugin-cssnano - -## Usage - -```js -import cssnano from 'magefront-plugin-cssnano' - -export default { - plugins: [ - cssnano() - ] -} -``` - -See the [documentation](https://ubermanu.github.io/magefront/#/plugins/cssnano) for more information. diff --git a/packages/plugin-cssnano/package.json b/packages/plugin-cssnano/package.json deleted file mode 100644 index 9622fc6e..00000000 --- a/packages/plugin-cssnano/package.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "name": "magefront-plugin-cssnano", - "version": "1.2.1", - "type": "module", - "keywords": [ - "magefront", - "magento", - "theme", - "plugin" - ], - "author": "Emmanuel Vodor ", - "license": "MIT", - "repository": { - "type": "git", - "url": "git+https://github.com/ubermanu/magefront.git", - "directory": "packages/plugin-cssnano" - }, - "main": "dist/plugin.cjs", - "module": "dist/plugin.mjs", - "types": "dist/plugin.d.ts", - "files": [ - "dist" - ], - "scripts": { - "build": "unbuild" - }, - "dependencies": { - "cssnano": "^6.0.1", - "cssnano-preset-default": "^6.0.1", - "magefront-plugin-postcss": "workspace:^" - }, - "devDependencies": { - "postcss": "^8.4.29" - }, - "peerDependencies": { - "magefront": "workspace:^" - }, - "exports": { - ".": { - "import": "./dist/plugin.mjs", - "require": "./dist/plugin.cjs", - "types": "./dist/plugin.d.ts" - } - } -} diff --git a/packages/plugin-cssnano/src/plugin.ts b/packages/plugin-cssnano/src/plugin.ts deleted file mode 100644 index 3c5a6235..00000000 --- a/packages/plugin-cssnano/src/plugin.ts +++ /dev/null @@ -1,24 +0,0 @@ -import cssnano from 'cssnano' -import type { Plugin } from 'magefront' -import postcss, { type Options as PostcssOptions } from 'magefront-plugin-postcss' - -export interface Options extends PostcssOptions { - preset?: any - configFile?: string -} - -/** Minifies CSS files. */ -export default (options?: Options): Plugin => { - const { src, ignore, preset, plugins } = { ...options } - - return postcss({ - src, - ignore, - plugins: [ - cssnano({ - preset: preset ?? 'default', - plugins, - }), - ], - }) -} diff --git a/packages/plugin-cssnano/tsconfig.json b/packages/plugin-cssnano/tsconfig.json deleted file mode 100644 index ab3f5ff3..00000000 --- a/packages/plugin-cssnano/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "../../shared/tsconfig.base.json", - "include": ["src/**/*.ts"] -} diff --git a/packages/plugin-react/CHANGELOG.md b/packages/plugin-react/CHANGELOG.md deleted file mode 100644 index 393d9f4f..00000000 --- a/packages/plugin-react/CHANGELOG.md +++ /dev/null @@ -1,67 +0,0 @@ -# magefront-plugin-react - -## 1.2.1 - -### Patch Changes - -- magefront@1.2.1 -- magefront-plugin-babel@1.2.1 - -## 1.2.0 - -### Minor Changes - -- f8da0cb: Set a proper (peer) dependency version in packages - -### Patch Changes - -- Updated dependencies [f8da0cb] -- Updated dependencies [f8da0cb] - - magefront@1.2.0 - - magefront-plugin-babel@1.2.0 - -## 1.1.0 - -### Minor Changes - -- 4cc6bd1: Changeset is struggling with peer dependencies. - Set the magefront peer dependency to `any`. - -### Patch Changes - -- Updated dependencies [4cc6bd1] -- Updated dependencies [9d2b2b5] - - magefront-plugin-babel@1.1.0 - - magefront@1.1.0 - -## 1.0.0 - -### Major Changes - -- Release 1.0 - -### Minor Changes - -- 129c7ba: Loosen the magefront peer dependency version - -### Patch Changes - -- 886c513: Update dependencies to latest version -- Updated dependencies [3b70273] -- Updated dependencies [129c7ba] -- Updated dependencies [886c513] -- Updated dependencies - - magefront@1.0.0 - - magefront-plugin-babel@1.0.0 - -## 0.5.0 - -### Minor Changes - -- 8784523: Set magefront peer dependency version to 'any' to avoid warnings - -### Patch Changes - -- Updated dependencies [8784523] - - magefront-plugin-babel@0.7.0 - - magefront@0.24.3 diff --git a/packages/plugin-react/README.md b/packages/plugin-react/README.md deleted file mode 100644 index e76beb17..00000000 --- a/packages/plugin-react/README.md +++ /dev/null @@ -1,23 +0,0 @@ -# magefront-plugin-react - -Transforms *.jsx files into *.js files using [Babel](https://babeljs.io/). - -This plugin is based on [magefront-plugin-babel](../babel/README.md). - -## Install - - npm i magefront-plugin-react - -## Usage - -```js -import react from 'magefront-plugin-react' - -export default { - plugins: [ - react() - ] -} -``` - -See the [documentation](https://ubermanu.github.io/magefront/#/plugins/react) for more information. diff --git a/packages/plugin-react/package.json b/packages/plugin-react/package.json deleted file mode 100644 index 3f80c500..00000000 --- a/packages/plugin-react/package.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "name": "magefront-plugin-react", - "version": "1.2.1", - "type": "module", - "keywords": [ - "magefront", - "magento", - "theme", - "plugin" - ], - "author": "Emmanuel Vodor ", - "license": "MIT", - "repository": { - "type": "git", - "url": "git+https://github.com/ubermanu/magefront.git", - "directory": "packages/plugin-react" - }, - "main": "dist/plugin.cjs", - "module": "dist/plugin.mjs", - "types": "dist/plugin.d.ts", - "files": [ - "dist" - ], - "scripts": { - "build": "unbuild" - }, - "dependencies": { - "@babel/preset-react": "^7.22.15", - "magefront-plugin-babel": "workspace:^" - }, - "peerDependencies": { - "magefront": "workspace:^", - "react": ">=18" - }, - "exports": { - ".": { - "import": "./dist/plugin.mjs", - "require": "./dist/plugin.cjs", - "types": "./dist/plugin.d.ts" - } - } -} diff --git a/packages/plugin-react/src/plugin.ts b/packages/plugin-react/src/plugin.ts deleted file mode 100644 index e3b85311..00000000 --- a/packages/plugin-react/src/plugin.ts +++ /dev/null @@ -1,26 +0,0 @@ -import type { Plugin } from 'magefront' -import babel, { type Options as BabelOptions } from 'magefront-plugin-babel' - -export interface Options extends BabelOptions {} - -/** Transform `*.jsx` files to `*.js` files. */ -export default (options?: Options): Plugin => { - const { src, ignore, compilerOptions } = { ...options } - - const babelReactPreset = { - presets: [ - [ - '@babel/preset-react', - { - runtime: 'automatic', - }, - ], - ], - } - - return babel({ - src, - ignore, - compilerOptions: compilerOptions ?? babelReactPreset, - }) -} diff --git a/packages/plugin-react/tsconfig.json b/packages/plugin-react/tsconfig.json deleted file mode 100644 index ab3f5ff3..00000000 --- a/packages/plugin-react/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "../../shared/tsconfig.base.json", - "include": ["src/**/*.ts"] -} diff --git a/packages/plugin-tailwindcss/CHANGELOG.md b/packages/plugin-tailwindcss/CHANGELOG.md deleted file mode 100644 index 54f138bf..00000000 --- a/packages/plugin-tailwindcss/CHANGELOG.md +++ /dev/null @@ -1,66 +0,0 @@ -# magefront-plugin-tailwindcss - -## 1.2.1 - -### Patch Changes - -- magefront@1.2.1 -- magefront-plugin-postcss@1.2.1 - -## 1.2.0 - -### Minor Changes - -- f8da0cb: Set a proper (peer) dependency version in packages - -### Patch Changes - -- Updated dependencies [f8da0cb] -- Updated dependencies [f8da0cb] - - magefront@1.2.0 - - magefront-plugin-postcss@1.2.0 - -## 1.1.0 - -### Minor Changes - -- 4cc6bd1: Changeset is struggling with peer dependencies. - Set the magefront peer dependency to `any`. - -### Patch Changes - -- Updated dependencies [4cc6bd1] -- Updated dependencies [9d2b2b5] - - magefront-plugin-postcss@1.1.0 - - magefront@1.1.0 - -## 1.0.0 - -### Major Changes - -- Release 1.0 - -### Minor Changes - -- 129c7ba: Loosen the magefront peer dependency version - -### Patch Changes - -- Updated dependencies [3b70273] -- Updated dependencies [129c7ba] -- Updated dependencies [886c513] -- Updated dependencies - - magefront@1.0.0 - - magefront-plugin-postcss@1.0.0 - -## 0.2.0 - -### Minor Changes - -- 8784523: Set magefront peer dependency version to 'any' to avoid warnings - -### Patch Changes - -- Updated dependencies [8784523] - - magefront-plugin-postcss@0.4.0 - - magefront@0.24.3 diff --git a/packages/plugin-tailwindcss/README.md b/packages/plugin-tailwindcss/README.md deleted file mode 100644 index 43f6d12c..00000000 --- a/packages/plugin-tailwindcss/README.md +++ /dev/null @@ -1,23 +0,0 @@ -# magefront-plugin-tailwindcss - -Generates CSS with [TailwindCSS](https://tailwindcss.com/) from your template files. - -## Install - - npm i magefront-plugin-tailwindcss - -## Usage - -```js -import tailwindcss from 'magefront-plugin-tailwindcss' - -export default { - plugins: [ - tailwindcss({ - src: 'web/css/tailwind.css' - }) - ] -} -``` - -See the [documentation](https://ubermanu.github.io/magefront/#/plugins/tailwindcss) for more information. diff --git a/packages/plugin-tailwindcss/package.json b/packages/plugin-tailwindcss/package.json deleted file mode 100644 index 20faecf4..00000000 --- a/packages/plugin-tailwindcss/package.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "magefront-plugin-tailwindcss", - "version": "1.2.1", - "type": "module", - "keywords": [ - "magefront", - "magento", - "theme", - "plugin", - "tailwind", - "css" - ], - "author": "Emmanuel Vodor ", - "license": "MIT", - "repository": { - "type": "git", - "url": "git+https://github.com/ubermanu/magefront.git", - "directory": "packages/plugin-tailwindcss" - }, - "main": "dist/plugin.cjs", - "module": "dist/plugin.mjs", - "types": "dist/plugin.d.ts", - "files": [ - "dist" - ], - "scripts": { - "build": "unbuild" - }, - "dependencies": { - "magefront-plugin-postcss": "workspace:^", - "tailwindcss": "^3.3.3" - }, - "peerDependencies": { - "magefront": "workspace:^" - }, - "exports": { - ".": { - "import": "./dist/plugin.mjs", - "require": "./dist/plugin.cjs", - "types": "./dist/plugin.d.ts" - } - } -} diff --git a/packages/plugin-tailwindcss/src/plugin.ts b/packages/plugin-tailwindcss/src/plugin.ts deleted file mode 100644 index bd6df26f..00000000 --- a/packages/plugin-tailwindcss/src/plugin.ts +++ /dev/null @@ -1,39 +0,0 @@ -import type { Plugin } from 'magefront' -import postcss, { type Options as PostcssOptions } from 'magefront-plugin-postcss' -import path from 'node:path' -import tailwind, { type Config } from 'tailwindcss' - -export interface Options extends Omit { - config?: Omit -} - -export default (options?: Options): Plugin => { - const { src, ignore, config } = { ...options } - - if (!src) { - throw new Error('Missing required option: src') - } - - return async (context) => { - // TODO: Target the phtml files (from the module sources, might target overridden files) - // TODO: Target the layout files (from the module sources, might target overridden files) - const modulePaths = context.modules.map((mod) => path.join(context.src, mod, '/**/*.html')) - - // TODO: Let the user target its content files - const content = [ - // prettier-ignore - ...modulePaths, - ] - - const plugin = postcss({ - src, - ignore, - plugins: [ - // @ts-ignore - tailwind({ ...config, content }), - ], - }) - - await plugin(context) - } -} diff --git a/packages/plugin-tailwindcss/tsconfig.json b/packages/plugin-tailwindcss/tsconfig.json deleted file mode 100644 index ab3f5ff3..00000000 --- a/packages/plugin-tailwindcss/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "../../shared/tsconfig.base.json", - "include": ["src/**/*.ts"] -} diff --git a/packages/preset-default/package.json b/packages/preset-default/package.json index 8ff7f66e..15f821ae 100644 --- a/packages/preset-default/package.json +++ b/packages/preset-default/package.json @@ -25,9 +25,11 @@ "build": "unbuild" }, "dependencies": { - "magefront-plugin-cssnano": "workspace:^", + "cssnano": "^6.0.1", + "cssnano-preset-default": "^6.0.1", "magefront-plugin-js-translation": "workspace:^", "magefront-plugin-less": "workspace:^", + "magefront-plugin-postcss": "workspace:^", "magefront-plugin-requirejs-config": "workspace:^", "magefront-plugin-terser": "workspace:^" }, diff --git a/packages/preset-default/src/preset.ts b/packages/preset-default/src/preset.ts index 793d34cc..7f518476 100644 --- a/packages/preset-default/src/preset.ts +++ b/packages/preset-default/src/preset.ts @@ -1,7 +1,9 @@ +import cssnano from 'cssnano' +import cssnanoPresetDefault from 'cssnano-preset-default' import type { Preset } from 'magefront' -import cssnano from 'magefront-plugin-cssnano' import jsTranslation from 'magefront-plugin-js-translation' import less from 'magefront-plugin-less' +import postcss from 'magefront-plugin-postcss' import requireJsConfig from 'magefront-plugin-requirejs-config' import terser from 'magefront-plugin-terser' @@ -35,7 +37,12 @@ export default (options?: Options): Preset => { } if (minifyCss) { - plugins.push(cssnano()) + plugins.push( + postcss({ + src: '**/*.css', + plugins: [cssnano({ preset: cssnanoPresetDefault })], + }) + ) } if (mergeCss) { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0bd0c5e8..0472e05a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -123,25 +123,6 @@ importers: specifier: workspace:^ version: link:../magefront - packages/plugin-cssnano: - dependencies: - cssnano: - specifier: ^6.0.1 - version: 6.0.1(postcss@8.4.29) - cssnano-preset-default: - specifier: ^6.0.1 - version: 6.0.1(postcss@8.4.29) - magefront: - specifier: workspace:^ - version: link:../magefront - magefront-plugin-postcss: - specifier: workspace:^ - version: link:../plugin-postcss - devDependencies: - postcss: - specifier: ^8.4.29 - version: 8.4.29 - packages/plugin-js-bundle: dependencies: magefront: @@ -196,21 +177,6 @@ importers: specifier: ^8.4.29 version: 8.4.29 - packages/plugin-react: - dependencies: - '@babel/preset-react': - specifier: ^7.22.15 - version: 7.22.15(@babel/core@7.22.17) - magefront: - specifier: workspace:^ - version: link:../magefront - magefront-plugin-babel: - specifier: workspace:^ - version: link:../plugin-babel - react: - specifier: '>=18' - version: 18.2.0 - packages/plugin-requirejs-config: dependencies: fast-glob: @@ -271,18 +237,6 @@ importers: specifier: ^3.0.2 version: 3.0.2 - packages/plugin-tailwindcss: - dependencies: - magefront: - specifier: workspace:^ - version: link:../magefront - magefront-plugin-postcss: - specifier: workspace:^ - version: link:../plugin-postcss - tailwindcss: - specifier: ^3.3.3 - version: 3.3.3 - packages/plugin-terser: dependencies: fast-glob: @@ -309,18 +263,24 @@ importers: packages/preset-default: dependencies: + cssnano: + specifier: ^6.0.1 + version: 6.0.1(postcss@8.4.29) + cssnano-preset-default: + specifier: ^6.0.1 + version: 6.0.1(postcss@8.4.29) magefront: specifier: workspace:^ version: link:../magefront - magefront-plugin-cssnano: - specifier: workspace:^ - version: link:../plugin-cssnano magefront-plugin-js-translation: specifier: workspace:^ version: link:../plugin-js-translation magefront-plugin-less: specifier: workspace:^ version: link:../plugin-less + magefront-plugin-postcss: + specifier: workspace:^ + version: link:../plugin-postcss magefront-plugin-requirejs-config: specifier: workspace:^ version: link:../plugin-requirejs-config @@ -334,11 +294,6 @@ packages: resolution: {integrity: sha512-E09FiIft46CmH5Qnjb0wsW54/YQd69LsxeKUOWawmws1XWvyFGURnAChH0mlr7YPFR1ofwvUQfcL0J3lMxXqPA==} dev: false - /@alloc/quick-lru@5.2.0: - resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==} - engines: {node: '>=10'} - dev: false - /@ampproject/remapping@2.2.1: resolution: {integrity: sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==} engines: {node: '>=6.0.0'} @@ -388,13 +343,6 @@ packages: '@jridgewell/trace-mapping': 0.3.19 jsesc: 2.5.2 - /@babel/helper-annotate-as-pure@7.22.5: - resolution: {integrity: sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/types': 7.22.17 - dev: false - /@babel/helper-compilation-targets@7.22.15: resolution: {integrity: sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==} engines: {node: '>=6.9.0'} @@ -444,6 +392,7 @@ packages: /@babel/helper-plugin-utils@7.22.5: resolution: {integrity: sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==} engines: {node: '>=6.9.0'} + dev: true /@babel/helper-simple-access@7.22.5: resolution: {integrity: sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==} @@ -548,6 +497,7 @@ packages: dependencies: '@babel/core': 7.22.17 '@babel/helper-plugin-utils': 7.22.5 + dev: true /@babel/plugin-syntax-logical-assignment-operators@7.10.4(@babel/core@7.22.17): resolution: {integrity: sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==} @@ -623,66 +573,6 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true - /@babel/plugin-transform-react-display-name@7.22.5(@babel/core@7.22.17): - resolution: {integrity: sha512-PVk3WPYudRF5z4GKMEYUrLjPl38fJSKNaEOkFuoprioowGuWN6w2RKznuFNSlJx7pzzXXStPUnNSOEO0jL5EVw==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.22.17 - '@babel/helper-plugin-utils': 7.22.5 - dev: false - - /@babel/plugin-transform-react-jsx-development@7.22.5(@babel/core@7.22.17): - resolution: {integrity: sha512-bDhuzwWMuInwCYeDeMzyi7TaBgRQei6DqxhbyniL7/VG4RSS7HtSL2QbY4eESy1KJqlWt8g3xeEBGPuo+XqC8A==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.22.17 - '@babel/plugin-transform-react-jsx': 7.22.15(@babel/core@7.22.17) - dev: false - - /@babel/plugin-transform-react-jsx@7.22.15(@babel/core@7.22.17): - resolution: {integrity: sha512-oKckg2eZFa8771O/5vi7XeTvmM6+O9cxZu+kanTU7tD4sin5nO/G8jGJhq8Hvt2Z0kUoEDRayuZLaUlYl8QuGA==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.22.17 - '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-module-imports': 7.22.15 - '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-syntax-jsx': 7.22.5(@babel/core@7.22.17) - '@babel/types': 7.22.17 - dev: false - - /@babel/plugin-transform-react-pure-annotations@7.22.5(@babel/core@7.22.17): - resolution: {integrity: sha512-gP4k85wx09q+brArVinTXhWiyzLl9UpmGva0+mWyKxk6JZequ05x3eUcIUE+FyttPKJFRRVtAvQaJ6YF9h1ZpA==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.22.17 - '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-plugin-utils': 7.22.5 - dev: false - - /@babel/preset-react@7.22.15(@babel/core@7.22.17): - resolution: {integrity: sha512-Csy1IJ2uEh/PecCBXXoZGAZBeCATTuePzCSB7dLYWS0vOEj6CNpjxIhW4duWwZodBNueH7QO14WbGn8YyeuN9w==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.22.17 - '@babel/helper-plugin-utils': 7.22.5 - '@babel/helper-validator-option': 7.22.15 - '@babel/plugin-transform-react-display-name': 7.22.5(@babel/core@7.22.17) - '@babel/plugin-transform-react-jsx': 7.22.15(@babel/core@7.22.17) - '@babel/plugin-transform-react-jsx-development': 7.22.5(@babel/core@7.22.17) - '@babel/plugin-transform-react-pure-annotations': 7.22.5(@babel/core@7.22.17) - dev: false - /@babel/runtime@7.22.15: resolution: {integrity: sha512-T0O+aa+4w0u06iNmapipJXMV4HoUir03hpx3/YqXXhu9xim3w+dVphjFWl1OH8NbZHw5Lbm9k45drDkgq2VNNA==} engines: {node: '>=6.9.0'} @@ -2066,10 +1956,6 @@ packages: engines: {node: '>=10'} dev: true - /any-promise@1.3.0: - resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==} - dev: false - /anymatch@3.1.3: resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} engines: {node: '>= 8'} @@ -2092,10 +1978,6 @@ packages: dev: false optional: true - /arg@5.0.2: - resolution: {integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==} - dev: false - /argparse@1.0.10: resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} dependencies: @@ -2633,11 +2515,6 @@ packages: engines: {node: '>=6'} dev: true - /camelcase-css@2.0.1: - resolution: {integrity: sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==} - engines: {node: '>= 6'} - dev: false - /camelcase-keys@6.2.2: resolution: {integrity: sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==} engines: {node: '>=8'} @@ -2871,11 +2748,6 @@ packages: resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} dev: false - /commander@4.1.1: - resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==} - engines: {node: '>= 6'} - dev: false - /commander@7.2.0: resolution: {integrity: sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==} engines: {node: '>= 10'} @@ -3404,10 +3276,6 @@ packages: hasBin: true dev: false - /didyoumean@1.2.2: - resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==} - dev: false - /diff-sequences@29.6.3: resolution: {integrity: sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -3425,10 +3293,6 @@ packages: path-type: 4.0.0 dev: true - /dlv@1.1.3: - resolution: {integrity: sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==} - dev: false - /dom-serializer@2.0.0: resolution: {integrity: sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==} dependencies: @@ -4241,6 +4105,7 @@ packages: /function-bind@1.1.1: resolution: {integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==} + dev: true /function.prototype.name@1.1.6: resolution: {integrity: sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==} @@ -4358,24 +4223,6 @@ packages: dependencies: is-glob: 4.0.3 - /glob-parent@6.0.2: - resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} - engines: {node: '>=10.13.0'} - dependencies: - is-glob: 4.0.3 - dev: false - - /glob@7.1.6: - resolution: {integrity: sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==} - dependencies: - fs.realpath: 1.0.0 - inflight: 1.0.6 - inherits: 2.0.4 - minimatch: 3.1.2 - once: 1.4.0 - path-is-absolute: 1.0.1 - dev: false - /glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} dependencies: @@ -4573,6 +4420,7 @@ packages: engines: {node: '>= 0.4.0'} dependencies: function-bind: 1.1.1 + dev: true /hawk@3.1.3: resolution: {integrity: sha512-X8xbmTc1cbPXcQV4WkLcRMALuyoxhfpFATmyuCxJPOAvrDS4DNnsTAOmKUxMTOWU6TzrTOkxPKwIx5ZOpJVSrg==} @@ -4834,6 +4682,7 @@ packages: resolution: {integrity: sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ==} dependencies: has: 1.0.3 + dev: true /is-date-object@1.0.5: resolution: {integrity: sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==} @@ -5540,6 +5389,7 @@ packages: /jiti@1.20.0: resolution: {integrity: sha512-3TV69ZbrvV6U5DfQimop50jE9Dl6J8O1ja1dvBbMba/sZ3YBEQqJ2VZRoQPVnhlzjNtU1vaXRZVrVjU4qtm8yA==} hasBin: true + dev: true /js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} @@ -5697,6 +5547,7 @@ packages: /lines-and-columns@1.2.4: resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} + dev: true /load-yaml-file@0.2.0: resolution: {integrity: sha512-OfCBkGEw4nN6JLtgRidPX6QxjBQGQf72q3si2uvqyFEMbycSFFHwAZeXx6cJgFM9wmLrf9zBwCP3Ivqa+LLZPw==} @@ -5769,13 +5620,6 @@ packages: triple-beam: 1.4.1 dev: false - /loose-envify@1.4.0: - resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} - hasBin: true - dependencies: - js-tokens: 4.0.0 - dev: false - /lowercase-keys@1.0.0: resolution: {integrity: sha512-RPlX0+PHuvxVDZ7xX+EBVAp4RsVxP/TdDSN2mJYdiq1Lc4Hz7EUSjUI7RZrKKlmrIzVhf6Jo2stj7++gVarS0A==} engines: {node: '>=0.10.0'} @@ -6268,14 +6112,6 @@ packages: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} dev: false - /mz@2.7.0: - resolution: {integrity: sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==} - dependencies: - any-promise: 1.3.0 - object-assign: 4.1.1 - thenify-all: 1.6.0 - dev: false - /nanoid@3.3.6: resolution: {integrity: sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} @@ -6380,11 +6216,6 @@ packages: engines: {node: '>=0.10.0'} dev: false - /object-hash@3.0.0: - resolution: {integrity: sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==} - engines: {node: '>= 6'} - dev: false - /object-inspect@1.12.3: resolution: {integrity: sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==} dev: true @@ -6650,6 +6481,7 @@ packages: /path-parse@1.0.7: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} + dev: true /path-type@4.0.0: resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} @@ -6690,7 +6522,9 @@ packages: /pify@2.3.0: resolution: {integrity: sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==} engines: {node: '>=0.10.0'} + requiresBuild: true dev: false + optional: true /pify@3.0.0: resolution: {integrity: sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==} @@ -6722,6 +6556,7 @@ packages: /pirates@4.0.6: resolution: {integrity: sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==} engines: {node: '>= 6'} + dev: true /pkg-dir@4.2.0: resolution: {integrity: sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==} @@ -6838,28 +6673,6 @@ packages: postcss: 8.4.29 dev: false - /postcss-import@15.1.0(postcss@8.4.29): - resolution: {integrity: sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==} - engines: {node: '>=14.0.0'} - peerDependencies: - postcss: ^8.0.0 - dependencies: - postcss: 8.4.29 - postcss-value-parser: 4.2.0 - read-cache: 1.0.0 - resolve: 1.22.4 - dev: false - - /postcss-js@4.0.1(postcss@8.4.29): - resolution: {integrity: sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==} - engines: {node: ^12 || ^14 || >= 16} - peerDependencies: - postcss: ^8.4.21 - dependencies: - camelcase-css: 2.0.1 - postcss: 8.4.29 - dev: false - /postcss-less@6.0.0(postcss@8.4.29): resolution: {integrity: sha512-FPX16mQLyEjLzEuuJtxA8X3ejDLNGGEG503d2YGZR5Ask1SpDN8KmZUMpzCvyalWRywAn1n1VOA5dcqfCLo5rg==} engines: {node: '>=12'} @@ -6869,23 +6682,6 @@ packages: postcss: 8.4.29 dev: true - /postcss-load-config@4.0.1(postcss@8.4.29): - resolution: {integrity: sha512-vEJIc8RdiBRu3oRAI0ymerOn+7rPuMvRXslTvZUKZonDHFIczxztIyJ1urxM1x9JXEikvpWWTUUqal5j/8QgvA==} - engines: {node: '>= 14'} - peerDependencies: - postcss: '>=8.0.9' - ts-node: '>=9.0.0' - peerDependenciesMeta: - postcss: - optional: true - ts-node: - optional: true - dependencies: - lilconfig: 2.1.0 - postcss: 8.4.29 - yaml: 2.3.2 - dev: false - /postcss-merge-longhand@6.0.0(postcss@8.4.29): resolution: {integrity: sha512-4VSfd1lvGkLTLYcxFuISDtWUfFS4zXe0FpF149AyziftPFQIWxjvFSKhA4MIxMe4XM3yTDgQMbSNgzIVxChbIg==} engines: {node: ^14 || ^16 || >=18.0} @@ -6954,16 +6750,6 @@ packages: postcss-selector-parser: 6.0.13 dev: false - /postcss-nested@6.0.1(postcss@8.4.29): - resolution: {integrity: sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ==} - engines: {node: '>=12.0'} - peerDependencies: - postcss: ^8.2.14 - dependencies: - postcss: 8.4.29 - postcss-selector-parser: 6.0.13 - dev: false - /postcss-normalize-charset@6.0.0(postcss@8.4.29): resolution: {integrity: sha512-cqundwChbu8yO/gSWkuFDmKrCZ2vJzDAocheT2JTd0sFNA4HMGoKMfbk2B+J0OmO0t5GUkiAkSM5yF2rSLUjgQ==} engines: {node: ^14 || ^16 || >=18.0} @@ -7353,19 +7139,6 @@ packages: resolution: {integrity: sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==} dev: true - /react@18.2.0: - resolution: {integrity: sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==} - engines: {node: '>=0.10.0'} - dependencies: - loose-envify: 1.4.0 - dev: false - - /read-cache@1.0.0: - resolution: {integrity: sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==} - dependencies: - pify: 2.3.0 - dev: false - /read-pkg-up@7.0.1: resolution: {integrity: sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==} engines: {node: '>=8'} @@ -7512,6 +7285,7 @@ packages: is-core-module: 2.13.0 path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 + dev: true /resp-modifier@6.0.2: resolution: {integrity: sha512-U1+0kWC/+4ncRFYqQWTx/3qkfE6a4B/h3XXgmXypfa0SPZ3t7cbbaFk297PjQS/yov24R18h6OZe6iZwj3NSLw==} @@ -8187,20 +7961,6 @@ packages: - supports-color dev: false - /sucrase@3.34.0: - resolution: {integrity: sha512-70/LQEZ07TEcxiU2dz51FKaE6hCTWC6vr7FOk3Gr0U60C3shtAN+H+BFr9XlYe5xqf3RA8nrc+VIwzCfnxuXJw==} - engines: {node: '>=8'} - hasBin: true - dependencies: - '@jridgewell/gen-mapping': 0.3.3 - commander: 4.1.1 - glob: 7.1.6 - lines-and-columns: 1.2.4 - mz: 2.7.0 - pirates: 4.0.6 - ts-interface-checker: 0.1.13 - dev: false - /supports-color@5.5.0: resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} engines: {node: '>=4'} @@ -8223,6 +7983,7 @@ packages: /supports-preserve-symlinks-flag@1.0.0: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} + dev: true /svelte@4.2.0: resolution: {integrity: sha512-kVsdPjDbLrv74SmLSUzAsBGquMs4MPgWGkGLpH+PjOYnFOziAvENVzgJmyOCV2gntxE32aNm8/sqNKD6LbIpeQ==} @@ -8264,37 +8025,6 @@ packages: tslib: 2.6.2 dev: true - /tailwindcss@3.3.3: - resolution: {integrity: sha512-A0KgSkef7eE4Mf+nKJ83i75TMyq8HqY3qmFIJSWy8bNt0v1lG7jUcpGpoTFxAwYcWOphcTBLPPJg+bDfhDf52w==} - engines: {node: '>=14.0.0'} - hasBin: true - dependencies: - '@alloc/quick-lru': 5.2.0 - arg: 5.0.2 - chokidar: 3.5.3 - didyoumean: 1.2.2 - dlv: 1.1.3 - fast-glob: 3.3.1 - glob-parent: 6.0.2 - is-glob: 4.0.3 - jiti: 1.20.0 - lilconfig: 2.1.0 - micromatch: 4.0.5 - normalize-path: 3.0.0 - object-hash: 3.0.0 - picocolors: 1.0.0 - postcss: 8.4.29 - postcss-import: 15.1.0(postcss@8.4.29) - postcss-js: 4.0.1(postcss@8.4.29) - postcss-load-config: 4.0.1(postcss@8.4.29) - postcss-nested: 6.0.1(postcss@8.4.29) - postcss-selector-parser: 6.0.13 - resolve: 1.22.4 - sucrase: 3.34.0 - transitivePeerDependencies: - - ts-node - dev: false - /tar-stream@1.6.2: resolution: {integrity: sha512-rzS0heiNf8Xn7/mpdSVVSMAWAoy9bfb1WOTYC78Z0UQKeKa/CWS8FOq0lKGNa8DWKAn9gxjCvMLYc5PGXYlK2A==} engines: {node: '>= 0.8.0'} @@ -8356,19 +8086,6 @@ packages: resolution: {integrity: sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg==} dev: false - /thenify-all@1.6.0: - resolution: {integrity: sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==} - engines: {node: '>=0.8'} - dependencies: - thenify: 3.3.1 - dev: false - - /thenify@3.3.1: - resolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==} - dependencies: - any-promise: 1.3.0 - dev: false - /through@2.3.8: resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} requiresBuild: true @@ -8458,10 +8175,6 @@ packages: resolution: {integrity: sha512-aMzrGUIA/R2LwUgvsOusx+GTy8ERyNjpBzbWgS1Qx4oTFlXCMxY3PyyXbPE1pvrvK/CXpO+BBREEqrTkNroC+A==} dev: true - /ts-interface-checker@0.1.13: - resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==} - dev: false - /ts-jest@29.1.1(@babel/core@7.22.17)(jest@29.6.4)(typescript@5.2.2): resolution: {integrity: sha512-D6xjnnbP17cC85nliwGiL+tpoKN0StpgE0TeOjXQTU6MVCfsB4v7aW05CgQ/1OywGb0x/oy9hHFnN+sczTiRaA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -8960,11 +8673,6 @@ packages: resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} dev: true - /yaml@2.3.2: - resolution: {integrity: sha512-N/lyzTPaJasoDmfV7YTrYCI0G/3ivm/9wdG0aHuheKowWQwGTsK0Eoiw6utmzAnI6pkJa0DUVygvp3spqqEKXg==} - engines: {node: '>= 14'} - dev: false - /yargs-parser@18.1.3: resolution: {integrity: sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==} engines: {node: '>=6'} From 320acd6c6c65f7f7ed2456641841df3c3b16cc22 Mon Sep 17 00:00:00 2001 From: ubermanu Date: Sat, 16 Sep 2023 17:32:03 +0200 Subject: [PATCH 2/5] chore: add changeset --- .changeset/silly-wombats-play.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/silly-wombats-play.md diff --git a/.changeset/silly-wombats-play.md b/.changeset/silly-wombats-play.md new file mode 100644 index 00000000..fc91ccd8 --- /dev/null +++ b/.changeset/silly-wombats-play.md @@ -0,0 +1,5 @@ +--- +'magefront-preset-default': minor +--- + +Remove pre-configured plugins From 0a828ccb68462cfbfcc9a04c82ff3297b5c3e327 Mon Sep 17 00:00:00 2001 From: ubermanu Date: Sat, 16 Sep 2023 17:34:39 +0200 Subject: [PATCH 3/5] chore: move types into dev deps --- packages/plugin-babel/package.json | 4 +++- packages/plugin-less/package.json | 4 +++- packages/plugin-stylus/package.json | 4 +++- pnpm-lock.yaml | 30 ++++++++++++++++++----------- 4 files changed, 28 insertions(+), 14 deletions(-) diff --git a/packages/plugin-babel/package.json b/packages/plugin-babel/package.json index f8dfc415..26c2050e 100644 --- a/packages/plugin-babel/package.json +++ b/packages/plugin-babel/package.json @@ -26,9 +26,11 @@ }, "dependencies": { "@babel/core": "~7.22.17", - "@types/babel__core": "~7.20.1", "fast-glob": "^3.3.1" }, + "devDependencies": { + "@types/babel__core": "~7.20.1" + }, "peerDependencies": { "magefront": "workspace:^" }, diff --git a/packages/plugin-less/package.json b/packages/plugin-less/package.json index c829fc9a..4d197fb5 100644 --- a/packages/plugin-less/package.json +++ b/packages/plugin-less/package.json @@ -25,10 +25,12 @@ "build": "unbuild" }, "dependencies": { - "@types/less": "^3.0.4", "fast-glob": "^3.3.1", "less": "2.7" }, + "devDependencies": { + "@types/less": "^3.0.4" + }, "peerDependencies": { "magefront": "workspace:^" }, diff --git a/packages/plugin-stylus/package.json b/packages/plugin-stylus/package.json index cafac86b..7e786cff 100644 --- a/packages/plugin-stylus/package.json +++ b/packages/plugin-stylus/package.json @@ -25,10 +25,12 @@ "build": "unbuild" }, "dependencies": { - "@types/stylus": "^0.48.39", "fast-glob": "^3.3.1", "stylus": "^0.60.0" }, + "devDependencies": { + "@types/stylus": "^0.48.39" + }, "peerDependencies": { "magefront": "workspace:^" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0472e05a..f81a0ea0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -104,15 +104,16 @@ importers: '@babel/core': specifier: ~7.22.17 version: 7.22.17 - '@types/babel__core': - specifier: ~7.20.1 - version: 7.20.1 fast-glob: specifier: ^3.3.1 version: 3.3.1 magefront: specifier: workspace:^ version: link:../magefront + devDependencies: + '@types/babel__core': + specifier: ~7.20.1 + version: 7.20.1 packages/plugin-concat: dependencies: @@ -140,9 +141,6 @@ importers: packages/plugin-less: dependencies: - '@types/less': - specifier: ^3.0.4 - version: 3.0.4 fast-glob: specifier: ^3.3.1 version: 3.3.1 @@ -152,6 +150,10 @@ importers: magefront: specifier: workspace:^ version: link:../magefront + devDependencies: + '@types/less': + specifier: ^3.0.4 + version: 3.0.4 packages/plugin-pngquant: dependencies: @@ -200,9 +202,6 @@ importers: packages/plugin-stylus: dependencies: - '@types/stylus': - specifier: ^0.48.39 - version: 0.48.39 fast-glob: specifier: ^3.3.1 version: 3.3.1 @@ -212,6 +211,10 @@ importers: stylus: specifier: ^0.60.0 version: 0.60.0 + devDependencies: + '@types/stylus': + specifier: ^0.48.39 + version: 0.48.39 packages/plugin-svelte: dependencies: @@ -617,6 +620,7 @@ packages: '@babel/helper-string-parser': 7.22.5 '@babel/helper-validator-identifier': 7.22.15 to-fast-properties: 2.0.0 + dev: true /@babel/types@7.22.17: resolution: {integrity: sha512-YSQPHLFtQNE5xN9tHuZnzu8vPr61wVTBZdfv1meex1NBosa4iT05k/Jw06ddJugi4bk7The/oSwQGFcksmEJQg==} @@ -1667,22 +1671,26 @@ packages: '@types/babel__generator': 7.6.4 '@types/babel__template': 7.4.1 '@types/babel__traverse': 7.20.1 + dev: true /@types/babel__generator@7.6.4: resolution: {integrity: sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==} dependencies: '@babel/types': 7.22.17 + dev: true /@types/babel__template@7.4.1: resolution: {integrity: sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==} dependencies: '@babel/parser': 7.22.16 '@babel/types': 7.22.17 + dev: true /@types/babel__traverse@7.20.1: resolution: {integrity: sha512-MitHFXnhtgwsGZWtT68URpOvLN4EREih1u3QtQiN4VdAxWKRVvGCSvw/Qth0M0Qq3pJpnGOu5JaM/ydK7OGbqg==} dependencies: '@babel/types': 7.22.17 + dev: true /@types/browser-sync@2.27.0: resolution: {integrity: sha512-CQc8mggMZpKsUAdjm7jyR8uWcFnxuly8xw76ZY4jSLugsZWHLcv7mLVVY591XPaZ2BqbFZT1fxov3hrQFistNg==} @@ -1778,7 +1786,7 @@ packages: /@types/less@3.0.4: resolution: {integrity: sha512-djlMpTdDF+tLaqVpK/0DWGNIr7BFjN8ykDLkgS0sQGYYLop51imRRE3foTjl+dMAH1zFE8bMZAG0VbYPEcSgsA==} - dev: false + dev: true /@types/mdast@3.0.12: resolution: {integrity: sha512-DT+iNIRNX884cx0/Q1ja7NyUPpZuv0KPyL5rGNxm1WC1OtHstl7n4Jb7nk+xacNShQMbczJjt8uFzznpp6kYBg==} @@ -1855,7 +1863,7 @@ packages: resolution: {integrity: sha512-98a0QrJorrq8+Vsan9yfxol2Qr6nvUWBeV3oYnSMks4QdLMebAzZvRd9IuoZOcnB6Erfjcjn1J2J+63MPCxJnw==} dependencies: '@types/node': 20.6.0 - dev: false + dev: true /@types/triple-beam@1.3.2: resolution: {integrity: sha512-txGIh+0eDFzKGC25zORnswy+br1Ha7hj5cMVwKIU7+s0U2AxxJru/jZSMU6OC9MJWP6+pc/hc6ZjyZShpsyY2g==} From ff789a939390d7408e4f44e216469e0c5b24e481 Mon Sep 17 00:00:00 2001 From: ubermanu Date: Sat, 16 Sep 2023 17:35:46 +0200 Subject: [PATCH 4/5] chore: add changeset --- .changeset/kind-avocados-shop.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .changeset/kind-avocados-shop.md diff --git a/.changeset/kind-avocados-shop.md b/.changeset/kind-avocados-shop.md new file mode 100644 index 00000000..e9fb3cae --- /dev/null +++ b/.changeset/kind-avocados-shop.md @@ -0,0 +1,7 @@ +--- +'magefront-plugin-stylus': minor +'magefront-plugin-babel': minor +'magefront-plugin-less': minor +--- + +Move 3rd party types into dev deps From cb339c1e057cfb22f196cf6218573d3702c216cd Mon Sep 17 00:00:00 2001 From: ubermanu Date: Sat, 16 Sep 2023 17:41:40 +0200 Subject: [PATCH 5/5] chore: format package json files --- .prettierignore | 4 ++- README.md | 4 +-- package.json | 13 +++---- packages/magefront/package.json | 34 +++++++++---------- packages/plugin-babel/README.md | 4 +-- packages/plugin-babel/package.json | 20 +++++------ packages/plugin-concat/README.md | 4 +-- packages/plugin-concat/package.json | 20 +++++------ packages/plugin-js-bundle/README.md | 4 +-- packages/plugin-js-bundle/package.json | 20 +++++------ packages/plugin-js-translation/README.md | 4 +-- packages/plugin-js-translation/package.json | 20 +++++------ packages/plugin-less/README.md | 4 +-- packages/plugin-less/package.json | 20 +++++------ packages/plugin-pngquant/README.md | 4 +-- packages/plugin-pngquant/package.json | 20 +++++------ packages/plugin-postcss/README.md | 4 +-- packages/plugin-postcss/package.json | 20 +++++------ packages/plugin-requirejs-config/README.md | 4 +-- packages/plugin-requirejs-config/package.json | 20 +++++------ packages/plugin-sass/README.md | 4 +-- packages/plugin-sass/package.json | 20 +++++------ packages/plugin-stylus/README.md | 4 +-- packages/plugin-stylus/package.json | 20 +++++------ packages/plugin-svelte/README.md | 6 ++-- packages/plugin-svelte/package.json | 20 +++++------ packages/plugin-svgo/README.md | 4 +-- packages/plugin-svgo/package.json | 20 +++++------ packages/plugin-terser/README.md | 4 +-- packages/plugin-terser/package.json | 20 +++++------ packages/plugin-typescript/README.md | 6 ++-- packages/plugin-typescript/package.json | 20 +++++------ packages/preset-default/README.md | 14 ++++---- packages/preset-default/package.json | 20 +++++------ 34 files changed, 200 insertions(+), 229 deletions(-) diff --git a/.prettierignore b/.prettierignore index fc60636b..28ac8dda 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,2 +1,4 @@ -package.json node_modules +docs +pnpm-lock.yaml +.github diff --git a/README.md b/README.md index 9f800992..6eec8e7b 100644 --- a/README.md +++ b/README.md @@ -33,9 +33,7 @@ The `magefront.config.js` file should be located in the root directory of your p ```js // magefront.config.js export default { - presets: [ - 'magefront-preset-default' - ] + presets: ['magefront-preset-default'], } ``` diff --git a/package.json b/package.json index 5d569d5d..96ace3ab 100644 --- a/package.json +++ b/package.json @@ -1,19 +1,20 @@ { "name": "magefront-monorepo", "private": true, - "type": "module", - "author": "Emmanuel Vodor ", - "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/ubermanu/magefront.git" }, + "license": "MIT", + "author": "Emmanuel Vodor ", + "type": "module", "scripts": { + "build": "pnpm -r build", "changeset": "changeset", "changeset:publish": "pnpm run build && changeset publish", - "ts-check": "tsc --noEmit", - "build": "pnpm -r build", - "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --runInBand" + "format": "prettier --write .", + "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --runInBand", + "ts-check": "tsc --noEmit" }, "devDependencies": { "@changesets/cli": "^2.26.2", diff --git a/packages/magefront/package.json b/packages/magefront/package.json index e60ff3e9..8cada70a 100644 --- a/packages/magefront/package.json +++ b/packages/magefront/package.json @@ -1,7 +1,6 @@ { "name": "magefront", "version": "1.2.1", - "type": "module", "description": "A modern Magento 2 theme builder", "keywords": [ "magefront", @@ -13,20 +12,31 @@ "sass", "stylus" ], - "author": "Emmanuel Vodor ", - "license": "MIT", - "files": [ - "dist", - "types" - ], "repository": { "type": "git", "url": "git+https://github.com/ubermanu/magefront.git", "directory": "packages/magefront" }, + "license": "MIT", + "author": "Emmanuel Vodor ", + "type": "module", + "exports": { + ".": { + "import": "./dist/magefront.mjs", + "require": "./dist/magefront.cjs", + "types": "./types/magefront.d.ts" + } + }, "main": "dist/magefront.cjs", "module": "dist/magefront.mjs", "types": "types/magefront.d.ts", + "bin": { + "magefront": "dist/cli.mjs" + }, + "files": [ + "dist", + "types" + ], "scripts": { "build": "unbuild" }, @@ -52,15 +62,5 @@ }, "engines": { "node": ">=18" - }, - "bin": { - "magefront": "dist/cli.mjs" - }, - "exports": { - ".": { - "import": "./dist/magefront.mjs", - "require": "./dist/magefront.cjs", - "types": "./types/magefront.d.ts" - } } } diff --git a/packages/plugin-babel/README.md b/packages/plugin-babel/README.md index e5ceb6c3..d66fa6f4 100644 --- a/packages/plugin-babel/README.md +++ b/packages/plugin-babel/README.md @@ -12,9 +12,7 @@ Transpile JS files with [Babel](https://babeljs.io/). import babel from 'magefront-plugin-babel' export default { - plugins: [ - babel({ src: 'js/source/**/*.js' }) - ] + plugins: [babel({ src: 'js/source/**/*.js' })], } ``` diff --git a/packages/plugin-babel/package.json b/packages/plugin-babel/package.json index 26c2050e..6a641fb5 100644 --- a/packages/plugin-babel/package.json +++ b/packages/plugin-babel/package.json @@ -1,20 +1,27 @@ { "name": "magefront-plugin-babel", "version": "1.2.1", - "type": "module", "keywords": [ "magefront", "magento", "theme", "plugin" ], - "author": "Emmanuel Vodor ", - "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/ubermanu/magefront.git", "directory": "packages/plugin-babel" }, + "license": "MIT", + "author": "Emmanuel Vodor ", + "type": "module", + "exports": { + ".": { + "import": "./dist/plugin.mjs", + "require": "./dist/plugin.cjs", + "types": "./dist/plugin.d.ts" + } + }, "main": "dist/plugin.cjs", "module": "dist/plugin.mjs", "types": "dist/plugin.d.ts", @@ -33,12 +40,5 @@ }, "peerDependencies": { "magefront": "workspace:^" - }, - "exports": { - ".": { - "import": "./dist/plugin.mjs", - "require": "./dist/plugin.cjs", - "types": "./dist/plugin.d.ts" - } } } diff --git a/packages/plugin-concat/README.md b/packages/plugin-concat/README.md index ca3562bc..42923fae 100644 --- a/packages/plugin-concat/README.md +++ b/packages/plugin-concat/README.md @@ -12,9 +12,7 @@ Merge files into one. import concat from 'magefront-plugin-concat' export default { - plugins: [ - concat({ src: '**/*.css', dest: 'css/all-styles.css' }), - ] + plugins: [concat({ src: '**/*.css', dest: 'css/all-styles.css' })], } ``` diff --git a/packages/plugin-concat/package.json b/packages/plugin-concat/package.json index c5ad76af..10eb26ad 100644 --- a/packages/plugin-concat/package.json +++ b/packages/plugin-concat/package.json @@ -1,20 +1,27 @@ { "name": "magefront-plugin-concat", "version": "1.2.1", - "type": "module", "keywords": [ "magefront", "magento", "theme", "plugin" ], - "author": "Emmanuel Vodor ", - "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/ubermanu/magefront.git", "directory": "packages/plugin-concat" }, + "license": "MIT", + "author": "Emmanuel Vodor ", + "type": "module", + "exports": { + ".": { + "import": "./dist/plugin.mjs", + "require": "./dist/plugin.cjs", + "types": "./dist/plugin.d.ts" + } + }, "main": "dist/plugin.cjs", "module": "dist/plugin.mjs", "types": "dist/plugin.d.ts", @@ -29,12 +36,5 @@ }, "peerDependencies": { "magefront": "workspace:^" - }, - "exports": { - ".": { - "import": "./dist/plugin.mjs", - "require": "./dist/plugin.cjs", - "types": "./dist/plugin.d.ts" - } } } diff --git a/packages/plugin-js-bundle/README.md b/packages/plugin-js-bundle/README.md index 99c57428..79c6ca61 100644 --- a/packages/plugin-js-bundle/README.md +++ b/packages/plugin-js-bundle/README.md @@ -12,9 +12,7 @@ Bundle JS files into multiple files according to the `view.xml` config. import jsBundle from 'magefront-plugin-js-bundle' export default { - plugins: [ - jsBundle(), - ] + plugins: [jsBundle()], } ``` diff --git a/packages/plugin-js-bundle/package.json b/packages/plugin-js-bundle/package.json index bc4ecd6b..bf6637b9 100644 --- a/packages/plugin-js-bundle/package.json +++ b/packages/plugin-js-bundle/package.json @@ -2,20 +2,27 @@ "name": "magefront-plugin-js-bundle", "version": "1.2.1", "private": true, - "type": "module", "keywords": [ "magefront", "magento", "theme", "plugin" ], - "author": "Emmanuel Vodor ", - "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/ubermanu/magefront.git", "directory": "packages/plugin-js-bundle" }, + "license": "MIT", + "author": "Emmanuel Vodor ", + "type": "module", + "exports": { + ".": { + "import": "./dist/plugin.mjs", + "require": "./dist/plugin.cjs", + "types": "./dist/plugin.d.ts" + } + }, "main": "dist/plugin.cjs", "module": "dist/plugin.mjs", "types": "dist/plugin.d.ts", @@ -27,12 +34,5 @@ }, "peerDependencies": { "magefront": "workspace:^" - }, - "exports": { - ".": { - "import": "./dist/plugin.mjs", - "require": "./dist/plugin.cjs", - "types": "./dist/plugin.d.ts" - } } } diff --git a/packages/plugin-js-translation/README.md b/packages/plugin-js-translation/README.md index 2626e57c..be8c0d90 100644 --- a/packages/plugin-js-translation/README.md +++ b/packages/plugin-js-translation/README.md @@ -12,9 +12,7 @@ Merge all the translations into the `js-translation.json` file. import jsTranslation from 'magefront-plugin-js-translation' export default { - plugins: [ - jsTranslation() - ] + plugins: [jsTranslation()], } ``` diff --git a/packages/plugin-js-translation/package.json b/packages/plugin-js-translation/package.json index 60c81f83..78d30d61 100644 --- a/packages/plugin-js-translation/package.json +++ b/packages/plugin-js-translation/package.json @@ -1,20 +1,27 @@ { "name": "magefront-plugin-js-translation", "version": "1.2.1", - "type": "module", "keywords": [ "magefront", "magento", "theme", "plugin" ], - "author": "Emmanuel Vodor ", - "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/ubermanu/magefront.git", "directory": "packages/plugin-js-translation" }, + "license": "MIT", + "author": "Emmanuel Vodor ", + "type": "module", + "exports": { + ".": { + "import": "./dist/plugin.mjs", + "require": "./dist/plugin.cjs", + "types": "./dist/plugin.d.ts" + } + }, "main": "dist/plugin.cjs", "module": "dist/plugin.mjs", "types": "dist/plugin.d.ts", @@ -29,12 +36,5 @@ }, "peerDependencies": { "magefront": "workspace:^" - }, - "exports": { - ".": { - "import": "./dist/plugin.mjs", - "require": "./dist/plugin.cjs", - "types": "./dist/plugin.d.ts" - } } } diff --git a/packages/plugin-less/README.md b/packages/plugin-less/README.md index 64b24eef..12b3626a 100644 --- a/packages/plugin-less/README.md +++ b/packages/plugin-less/README.md @@ -12,9 +12,7 @@ Transforms LESS files into CSS files. import less from 'magefront-plugin-less' export default { - plugins: [ - less() - ] + plugins: [less()], } ``` diff --git a/packages/plugin-less/package.json b/packages/plugin-less/package.json index 4d197fb5..b11c5f3a 100644 --- a/packages/plugin-less/package.json +++ b/packages/plugin-less/package.json @@ -1,20 +1,27 @@ { "name": "magefront-plugin-less", "version": "1.2.1", - "type": "module", "keywords": [ "magefront", "magento", "theme", "plugin" ], - "author": "Emmanuel Vodor ", - "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/ubermanu/magefront.git", "directory": "packages/plugin-less" }, + "license": "MIT", + "author": "Emmanuel Vodor ", + "type": "module", + "exports": { + ".": { + "types": "./dist/plugin.d.ts", + "require": "./dist/plugin.cjs", + "import": "./dist/plugin.mjs" + } + }, "main": "dist/plugin.cjs", "module": "dist/plugin.mjs", "types": "dist/plugin.d.ts", @@ -33,12 +40,5 @@ }, "peerDependencies": { "magefront": "workspace:^" - }, - "exports": { - ".": { - "types": "./dist/plugin.d.ts", - "require": "./dist/plugin.cjs", - "import": "./dist/plugin.mjs" - } } } diff --git a/packages/plugin-pngquant/README.md b/packages/plugin-pngquant/README.md index 5d0d3a1b..028ea693 100644 --- a/packages/plugin-pngquant/README.md +++ b/packages/plugin-pngquant/README.md @@ -12,9 +12,7 @@ Optimize PNG files with [pngquant](https://pngquant.org/). import pngquant from 'magefront-plugin-pngquant' export default { - plugins: [ - pngquant() - ] + plugins: [pngquant()], } ``` diff --git a/packages/plugin-pngquant/package.json b/packages/plugin-pngquant/package.json index 8d2872b4..48366eac 100644 --- a/packages/plugin-pngquant/package.json +++ b/packages/plugin-pngquant/package.json @@ -1,20 +1,27 @@ { "name": "magefront-plugin-pngquant", "version": "1.2.1", - "type": "module", "keywords": [ "magefront", "magento", "theme", "plugin" ], - "author": "Emmanuel Vodor ", - "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/ubermanu/magefront.git", "directory": "packages/plugin-pngquant" }, + "license": "MIT", + "author": "Emmanuel Vodor ", + "type": "module", + "exports": { + ".": { + "import": "./dist/plugin.mjs", + "require": "./dist/plugin.cjs", + "types": "./dist/plugin.d.ts" + } + }, "main": "dist/plugin.cjs", "module": "dist/plugin.mjs", "types": "dist/plugin.d.ts", @@ -30,12 +37,5 @@ }, "peerDependencies": { "magefront": "workspace:^" - }, - "exports": { - ".": { - "import": "./dist/plugin.mjs", - "require": "./dist/plugin.cjs", - "types": "./dist/plugin.d.ts" - } } } diff --git a/packages/plugin-postcss/README.md b/packages/plugin-postcss/README.md index c5921416..346de5c5 100644 --- a/packages/plugin-postcss/README.md +++ b/packages/plugin-postcss/README.md @@ -12,9 +12,7 @@ PostCSS plugin for **magefront**. import postcss from 'magefront-plugin-postcss' export default { - plugins: [ - postcss() - ] + plugins: [postcss()], } ``` diff --git a/packages/plugin-postcss/package.json b/packages/plugin-postcss/package.json index 6da9ceda..d9292f30 100644 --- a/packages/plugin-postcss/package.json +++ b/packages/plugin-postcss/package.json @@ -1,20 +1,27 @@ { "name": "magefront-plugin-postcss", "version": "1.2.1", - "type": "module", "keywords": [ "magefront", "magento", "theme", "plugin" ], - "author": "Emmanuel Vodor ", - "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/ubermanu/magefront.git", "directory": "packages/plugin-postcss" }, + "license": "MIT", + "author": "Emmanuel Vodor ", + "type": "module", + "exports": { + ".": { + "import": "./dist/plugin.mjs", + "require": "./dist/plugin.cjs", + "types": "./dist/plugin.d.ts" + } + }, "main": "dist/plugin.cjs", "module": "dist/plugin.mjs", "types": "dist/plugin.d.ts", @@ -30,12 +37,5 @@ }, "peerDependencies": { "magefront": "workspace:^" - }, - "exports": { - ".": { - "import": "./dist/plugin.mjs", - "require": "./dist/plugin.cjs", - "types": "./dist/plugin.d.ts" - } } } diff --git a/packages/plugin-requirejs-config/README.md b/packages/plugin-requirejs-config/README.md index 7ed3ab47..bf8fa0f8 100644 --- a/packages/plugin-requirejs-config/README.md +++ b/packages/plugin-requirejs-config/README.md @@ -12,9 +12,7 @@ Merge all the `requirejs-config.js` files into one. import requireJsConfig from 'magefront-plugin-requirejs-config' export default { - plugins: [ - requireJsConfig() - ] + plugins: [requireJsConfig()], } ``` diff --git a/packages/plugin-requirejs-config/package.json b/packages/plugin-requirejs-config/package.json index 9aaa05f7..f0aa6769 100644 --- a/packages/plugin-requirejs-config/package.json +++ b/packages/plugin-requirejs-config/package.json @@ -1,7 +1,6 @@ { "name": "magefront-plugin-requirejs-config", "version": "1.2.1", - "type": "module", "keywords": [ "magefront", "magento", @@ -9,13 +8,21 @@ "requirejs", "plugin" ], - "author": "Emmanuel Vodor ", - "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/ubermanu/magefront.git", "directory": "packages/plugin-requirejs-config" }, + "license": "MIT", + "author": "Emmanuel Vodor ", + "type": "module", + "exports": { + ".": { + "import": "./dist/plugin.mjs", + "require": "./dist/plugin.cjs", + "types": "./dist/plugin.d.ts" + } + }, "main": "dist/plugin.cjs", "module": "dist/plugin.mjs", "types": "dist/plugin.d.ts", @@ -30,12 +37,5 @@ }, "peerDependencies": { "magefront": "workspace:^" - }, - "exports": { - ".": { - "import": "./dist/plugin.mjs", - "require": "./dist/plugin.cjs", - "types": "./dist/plugin.d.ts" - } } } diff --git a/packages/plugin-sass/README.md b/packages/plugin-sass/README.md index 72176d4b..1f142387 100644 --- a/packages/plugin-sass/README.md +++ b/packages/plugin-sass/README.md @@ -12,9 +12,7 @@ Transforms SCSS files into CSS files. import sass from 'magefront-plugin-sass' export default { - plugins: [ - sass() - ] + plugins: [sass()], } ``` diff --git a/packages/plugin-sass/package.json b/packages/plugin-sass/package.json index 67c14269..8bd5bb46 100644 --- a/packages/plugin-sass/package.json +++ b/packages/plugin-sass/package.json @@ -1,7 +1,6 @@ { "name": "magefront-plugin-sass", "version": "1.2.1", - "type": "module", "keywords": [ "magefront", "magento", @@ -9,13 +8,21 @@ "sass", "plugin" ], - "author": "Emmanuel Vodor ", - "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/ubermanu/magefront.git", "directory": "packages/plugin-sass" }, + "license": "MIT", + "author": "Emmanuel Vodor ", + "type": "module", + "exports": { + ".": { + "import": "./dist/plugin.mjs", + "require": "./dist/plugin.cjs", + "types": "./dist/plugin.d.ts" + } + }, "main": "dist/plugin.cjs", "module": "dist/plugin.mjs", "types": "dist/plugin.d.ts", @@ -31,12 +38,5 @@ }, "peerDependencies": { "magefront": "workspace:^" - }, - "exports": { - ".": { - "import": "./dist/plugin.mjs", - "require": "./dist/plugin.cjs", - "types": "./dist/plugin.d.ts" - } } } diff --git a/packages/plugin-stylus/README.md b/packages/plugin-stylus/README.md index 5537c3da..65033c74 100644 --- a/packages/plugin-stylus/README.md +++ b/packages/plugin-stylus/README.md @@ -12,9 +12,7 @@ Transforms STYL files into CSS files. import stylus from 'magefront-plugin-stylus' export default { - plugins: [ - stylus() - ] + plugins: [stylus()], } ``` diff --git a/packages/plugin-stylus/package.json b/packages/plugin-stylus/package.json index 7e786cff..9bd953eb 100644 --- a/packages/plugin-stylus/package.json +++ b/packages/plugin-stylus/package.json @@ -1,20 +1,27 @@ { "name": "magefront-plugin-stylus", "version": "1.2.1", - "type": "module", "keywords": [ "magefront", "magento", "theme", "plugin" ], - "author": "Emmanuel Vodor ", - "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/ubermanu/magefront.git", "directory": "packages/plugin-stylus" }, + "license": "MIT", + "author": "Emmanuel Vodor ", + "type": "module", + "exports": { + ".": { + "import": "./dist/plugin.mjs", + "require": "./dist/plugin.cjs", + "types": "./dist/plugin.d.ts" + } + }, "main": "dist/plugin.cjs", "module": "dist/plugin.mjs", "types": "dist/plugin.d.ts", @@ -33,12 +40,5 @@ }, "peerDependencies": { "magefront": "workspace:^" - }, - "exports": { - ".": { - "import": "./dist/plugin.mjs", - "require": "./dist/plugin.cjs", - "types": "./dist/plugin.d.ts" - } } } diff --git a/packages/plugin-svelte/README.md b/packages/plugin-svelte/README.md index f01d99d5..100459ec 100644 --- a/packages/plugin-svelte/README.md +++ b/packages/plugin-svelte/README.md @@ -1,6 +1,6 @@ # magefront-plugin-svelte -Transforms *.svelte files into JS files. +Transforms \*.svelte files into JS files. ## Install @@ -12,9 +12,7 @@ Transforms *.svelte files into JS files. import svelte from 'magefront-plugin-svelte' export default { - plugins: [ - svelte() - ] + plugins: [svelte()], } ``` diff --git a/packages/plugin-svelte/package.json b/packages/plugin-svelte/package.json index 0f0a4214..73bd23cd 100644 --- a/packages/plugin-svelte/package.json +++ b/packages/plugin-svelte/package.json @@ -1,20 +1,27 @@ { "name": "magefront-plugin-svelte", "version": "1.2.1", - "type": "module", "keywords": [ "magefront", "magento", "theme", "plugin" ], - "author": "Emmanuel Vodor ", - "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/ubermanu/magefront.git", "directory": "packages/plugin-svelte" }, + "license": "MIT", + "author": "Emmanuel Vodor ", + "type": "module", + "exports": { + ".": { + "import": "./dist/plugin.mjs", + "require": "./dist/plugin.cjs", + "types": "./dist/plugin.d.ts" + } + }, "main": "dist/plugin.cjs", "module": "dist/plugin.mjs", "types": "dist/plugin.d.ts", @@ -30,12 +37,5 @@ }, "peerDependencies": { "magefront": "workspace:^" - }, - "exports": { - ".": { - "import": "./dist/plugin.mjs", - "require": "./dist/plugin.cjs", - "types": "./dist/plugin.d.ts" - } } } diff --git a/packages/plugin-svgo/README.md b/packages/plugin-svgo/README.md index dd1d192e..a10b5154 100644 --- a/packages/plugin-svgo/README.md +++ b/packages/plugin-svgo/README.md @@ -12,9 +12,7 @@ Optimize SVG files with [SVGO](https://github.com/svg/svgo). import svgo from 'magefront-plugin-svgo' export default { - plugins: [ - svgo() - ] + plugins: [svgo()], } ``` diff --git a/packages/plugin-svgo/package.json b/packages/plugin-svgo/package.json index 25eb5c5c..6c7c1fa0 100644 --- a/packages/plugin-svgo/package.json +++ b/packages/plugin-svgo/package.json @@ -1,20 +1,27 @@ { "name": "magefront-plugin-svgo", "version": "1.2.1", - "type": "module", "keywords": [ "magefront", "magento", "theme", "plugin" ], - "author": "Emmanuel Vodor ", - "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/ubermanu/magefront.git", "directory": "packages/plugin-svgo" }, + "license": "MIT", + "author": "Emmanuel Vodor ", + "type": "module", + "exports": { + ".": { + "import": "./dist/plugin.mjs", + "require": "./dist/plugin.cjs", + "types": "./dist/plugin.d.ts" + } + }, "main": "dist/plugin.cjs", "module": "dist/plugin.mjs", "types": "dist/plugin.d.ts", @@ -30,12 +37,5 @@ }, "peerDependencies": { "magefront": "workspace:^" - }, - "exports": { - ".": { - "import": "./dist/plugin.mjs", - "require": "./dist/plugin.cjs", - "types": "./dist/plugin.d.ts" - } } } diff --git a/packages/plugin-terser/README.md b/packages/plugin-terser/README.md index c6a64fab..8ba51460 100644 --- a/packages/plugin-terser/README.md +++ b/packages/plugin-terser/README.md @@ -12,9 +12,7 @@ Minify JS files with [terser](https://terser.org/). import terser from 'magefront-plugin-terser' export default { - plugins: [ - terser() - ] + plugins: [terser()], } ``` diff --git a/packages/plugin-terser/package.json b/packages/plugin-terser/package.json index 80919faa..d826219c 100644 --- a/packages/plugin-terser/package.json +++ b/packages/plugin-terser/package.json @@ -1,20 +1,27 @@ { "name": "magefront-plugin-terser", "version": "1.2.1", - "type": "module", "keywords": [ "magefront", "magento", "theme", "plugin" ], - "author": "Emmanuel Vodor ", - "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/ubermanu/magefront.git", "directory": "packages/plugin-terser" }, + "license": "MIT", + "author": "Emmanuel Vodor ", + "type": "module", + "exports": { + ".": { + "import": "./dist/plugin.mjs", + "require": "./dist/plugin.cjs", + "types": "./dist/plugin.d.ts" + } + }, "main": "dist/plugin.cjs", "module": "dist/plugin.mjs", "types": "dist/plugin.d.ts", @@ -30,12 +37,5 @@ }, "peerDependencies": { "magefront": "workspace:^" - }, - "exports": { - ".": { - "import": "./dist/plugin.mjs", - "require": "./dist/plugin.cjs", - "types": "./dist/plugin.d.ts" - } } } diff --git a/packages/plugin-typescript/README.md b/packages/plugin-typescript/README.md index 925d0a42..e8e05e67 100644 --- a/packages/plugin-typescript/README.md +++ b/packages/plugin-typescript/README.md @@ -1,6 +1,6 @@ # magefront-plugin-typescript -Transforms *.ts files into JS files. +Transforms \*.ts files into JS files. ## Install @@ -12,9 +12,7 @@ Transforms *.ts files into JS files. import typescript from 'magefront-plugin-typescript' export default { - plugins: [ - typescript() - ] + plugins: [typescript()], } ``` diff --git a/packages/plugin-typescript/package.json b/packages/plugin-typescript/package.json index 4913bbe8..0a1a7181 100644 --- a/packages/plugin-typescript/package.json +++ b/packages/plugin-typescript/package.json @@ -1,20 +1,27 @@ { "name": "magefront-plugin-typescript", "version": "1.2.1", - "type": "module", "keywords": [ "magefront", "magento", "theme", "plugin" ], - "author": "Emmanuel Vodor ", - "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/ubermanu/magefront.git", "directory": "packages/plugin-typescript" }, + "license": "MIT", + "author": "Emmanuel Vodor ", + "type": "module", + "exports": { + ".": { + "import": "./dist/plugin.mjs", + "require": "./dist/plugin.cjs", + "types": "./dist/plugin.d.ts" + } + }, "main": "dist/plugin.cjs", "module": "dist/plugin.mjs", "types": "dist/plugin.d.ts", @@ -30,12 +37,5 @@ }, "peerDependencies": { "magefront": "workspace:^" - }, - "exports": { - ".": { - "import": "./dist/plugin.mjs", - "require": "./dist/plugin.cjs", - "types": "./dist/plugin.d.ts" - } } } diff --git a/packages/preset-default/README.md b/packages/preset-default/README.md index a25d34d2..e42cf0a2 100644 --- a/packages/preset-default/README.md +++ b/packages/preset-default/README.md @@ -2,14 +2,14 @@ Regroup a collection of plugins to build a Magento 2 theme. -* less -* requirejs-config -* js-translation +- less +- requirejs-config +- js-translation And these plugins are included, if configured: -* cssnano -* terser +- cssnano +- terser ## Install @@ -21,9 +21,7 @@ And these plugins are included, if configured: import defaultPreset from 'magefront-preset-default' export default { - presets: [ - defaultPreset() - ] + presets: [defaultPreset()], } ``` diff --git a/packages/preset-default/package.json b/packages/preset-default/package.json index 15f821ae..db33c116 100644 --- a/packages/preset-default/package.json +++ b/packages/preset-default/package.json @@ -1,20 +1,27 @@ { "name": "magefront-preset-default", "version": "1.2.1", - "type": "module", "keywords": [ "magefront", "magento", "theme", "preset" ], - "author": "Emmanuel Vodor ", - "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/ubermanu/magefront.git", "directory": "packages/preset-default" }, + "license": "MIT", + "author": "Emmanuel Vodor ", + "type": "module", + "exports": { + ".": { + "import": "./dist/preset.mjs", + "require": "./dist/preset.cjs", + "types": "./dist/preset.d.ts" + } + }, "main": "dist/preset.cjs", "module": "dist/preset.mjs", "types": "dist/preset.d.ts", @@ -35,12 +42,5 @@ }, "peerDependencies": { "magefront": "workspace:^" - }, - "exports": { - ".": { - "import": "./dist/preset.mjs", - "require": "./dist/preset.cjs", - "types": "./dist/preset.d.ts" - } } }