diff --git a/packages/docs/docs/guide/getting-started/installation.mdx b/packages/docs/docs/guide/getting-started/installation.mdx index 572d202..40f64be 100644 --- a/packages/docs/docs/guide/getting-started/installation.mdx +++ b/packages/docs/docs/guide/getting-started/installation.mdx @@ -35,8 +35,6 @@ First create a `.assetpack.js` file in the root of your project. This file shoul ```js // .assetpack.js -import { compress } from '@assetpack/core'; - export default { entry: './raw-assets', output: './public/assets', @@ -60,7 +58,7 @@ If you are using AssetPack with PixiJS, you can use the `pixiPipes` function to ```js // .assetpack.js -import { compress, pixiPipes } from '@assetpack/core'; +import { pixiPipes } from '@assetpack/core/pixi'; export default { entry: './raw-assets', diff --git a/packages/docs/docs/guide/getting-started/pixi.md b/packages/docs/docs/guide/getting-started/pixi.md index d42860a..e2ca348 100644 --- a/packages/docs/docs/guide/getting-started/pixi.md +++ b/packages/docs/docs/guide/getting-started/pixi.md @@ -30,7 +30,7 @@ This setup also abstracts away some of the more complex features of AssetPack, t Please refer to the [API Reference](/docs/guide/configuration) for the full list of options. ```js -import { pixiPipes } from "@assetpack/core"; +import { pixiPipes } from "@assetpack/core/pixi"; export default { ... diff --git a/packages/docs/docs/guide/pipes/cache-buster.mdx b/packages/docs/docs/guide/pipes/cache-buster.mdx index 0ab1335..1eba8ab 100644 --- a/packages/docs/docs/guide/pipes/cache-buster.mdx +++ b/packages/docs/docs/guide/pipes/cache-buster.mdx @@ -20,7 +20,7 @@ ensure that the `cacheBuster` transformation occurs at the correct stage in your ```ts // assetpack.config.ts -import { cacheBuster } from "@assetpack/core"; +import { cacheBuster } from "@assetpack/core/cacheBuster"; export default { ... @@ -44,7 +44,9 @@ The `spineAtlasCacheBuster` pipe performs a similar function for spine atlas fil ```ts // assetpack.config.ts -import { cacheBuster, texturePackerCacheBuster, spineAtlasCacheBuster } from "@assetpack/core"; +import { cacheBuster } from "@assetpack/core/cache-buster"; +import { texturePackerCacheBuster } from "@assetpack/core/texture-packer"; +import { spineAtlasCacheBuster } from "@assetpack/core/spine"; export default { ... diff --git a/packages/docs/docs/guide/pipes/compress.mdx b/packages/docs/docs/guide/pipes/compress.mdx index caba99c..9211bbb 100644 --- a/packages/docs/docs/guide/pipes/compress.mdx +++ b/packages/docs/docs/guide/pipes/compress.mdx @@ -12,7 +12,7 @@ The compress plugin uses the Sharp library to compress images into different for ```js -import { compress } from "@assetpack/core"; +import { compress } from "@assetpack/core/image"; export default { ... diff --git a/packages/docs/docs/guide/pipes/ffmpeg.mdx b/packages/docs/docs/guide/pipes/ffmpeg.mdx index 1735760..a3646eb 100644 --- a/packages/docs/docs/guide/pipes/ffmpeg.mdx +++ b/packages/docs/docs/guide/pipes/ffmpeg.mdx @@ -18,7 +18,7 @@ The audio plugin converts and compresses audio files (`mp3`, `wav`, and `ogg`) t ```ts // assetpack.config.ts -import { audio } from "@assetpack/core"; +import { audio } from "@assetpack/core/ffmpeg"; export default { ... @@ -36,7 +36,7 @@ The `ffmpeg` plugin exposes the full FFmpeg API, allowing for the conversion of ```ts // assetpack.config.ts -import { ffmpeg } from "@assetpack/core"; +import { ffmpeg } from "@assetpack/core/ffmpeg"; export default { ... diff --git a/packages/docs/docs/guide/pipes/json.md b/packages/docs/docs/guide/pipes/json.md index 88cc81b..a7800d7 100644 --- a/packages/docs/docs/guide/pipes/json.md +++ b/packages/docs/docs/guide/pipes/json.md @@ -9,7 +9,7 @@ AssetPack plugin for minifying JSON files. This plugin simplifies JSON files by ## Example ```js -import { json } from "@assetpack/core"; +import { json } from "@assetpack/core/json"; export default { ... diff --git a/packages/docs/docs/guide/pipes/manifest.mdx b/packages/docs/docs/guide/pipes/manifest.mdx index d826f92..f7edbc8 100644 --- a/packages/docs/docs/guide/pipes/manifest.mdx +++ b/packages/docs/docs/guide/pipes/manifest.mdx @@ -27,7 +27,7 @@ We believe this plugin is a must-have for any PixiJS project, as it simplifies t */} ```js -import { pixiManifest } from "@assetpack/core"; +import { pixiManifest } from "@assetpack/core/manifest"; export default { ... @@ -68,7 +68,8 @@ export default { When using the [Spine plugins](/docs/guide/pipes/spine), you should use the `spineAtlasManifestMod` plugin to augment the manifest file with the spine atlas files. This ensures that the spine atlas files are included in the manifest. ```js -import { pixiManifest, spineAtlasManifestMod } from "@assetpack/core"; +import { pixiManifest } from "@assetpack/core/manifest"; +import { spineAtlasManifestMod } from '@assetpack/core/spine' export default { ... diff --git a/packages/docs/docs/guide/pipes/mipmap.mdx b/packages/docs/docs/guide/pipes/mipmap.mdx index bb6f641..e59dd07 100644 --- a/packages/docs/docs/guide/pipes/mipmap.mdx +++ b/packages/docs/docs/guide/pipes/mipmap.mdx @@ -17,7 +17,7 @@ When generating multiple resolutions, the plugin assumes that the original image ```js -import { mipmap } from "@assetpack/core"; +import { mipmap } from "@assetpack/core/image"; export default { ... @@ -38,7 +38,7 @@ export default { ```js -import { mipmap } from "@assetpack/core"; +import { mipmap } from "@assetpack/core/image"; export default { ... diff --git a/packages/docs/docs/guide/pipes/spine.mdx b/packages/docs/docs/guide/pipes/spine.mdx index 3e37330..6d406c2 100644 --- a/packages/docs/docs/guide/pipes/spine.mdx +++ b/packages/docs/docs/guide/pipes/spine.mdx @@ -18,7 +18,8 @@ This plugin should be used in conjunction with the [compress](/docs/guide/pipes/ ```js -import { compress, spineAtlasCompress } from "@assetpack/core"; +import { compress } from "@assetpack/core/image"; +import { spineAtlasCompress } from "@assetpack/core/spine"; // these options are the default values, all options shown here are optional const options = { @@ -69,7 +70,8 @@ You will want to make sure you are passing the same options to the `mipmap` plug ```js -import { mipmap, spineAtlasMipmap } from "@assetpack/core"; +import { mipmap } from "@assetpack/core/image"; +import { spineAtlasMipmap } from "@assetpack/core/spine"; // these options are the default values, all options shown here are optional const options = { @@ -109,7 +111,8 @@ N/A for this plugin. ### Example ```js -import { pixiManifest, spineAtlasManifestMod } from "@assetpack/core"; +import { pixiManifest } from "@assetpack/core/manifest"; +import { spineAtlasManifestMod } from "@assetpack/core/spine"; export default { ... diff --git a/packages/docs/docs/guide/pipes/texture-packer.mdx b/packages/docs/docs/guide/pipes/texture-packer.mdx index a98626c..d256bdc 100644 --- a/packages/docs/docs/guide/pipes/texture-packer.mdx +++ b/packages/docs/docs/guide/pipes/texture-packer.mdx @@ -20,7 +20,7 @@ If you are using a different library you may need to convert the output. ```js -import { texturePacker } from "@assetpack/core"; +import { texturePacker } from "@assetpack/core/texture-packer"; export default { ... @@ -87,7 +87,8 @@ To compress the texture atlases you can use the `texturePackerCompress` plugin. ```js -import { compress, texturePackerCompress } from "@assetpack/core"; +import { compress } from "@assetpack/core/image"; +import { compress } from "@assetpack/core/texture-packer"; // these options are the default values, all options shown here are optional const options = { diff --git a/packages/docs/docs/guide/pipes/webfont.mdx b/packages/docs/docs/guide/pipes/webfont.mdx index 5d8d7fd..0bd9bad 100644 --- a/packages/docs/docs/guide/pipes/webfont.mdx +++ b/packages/docs/docs/guide/pipes/webfont.mdx @@ -17,7 +17,7 @@ This plugin generates `woff2` fonts from `ttf`, `otf`, `woff`, and `svg` files. ```js -import { webfont } from "@assetpack/core"; +import { webfont } from "@assetpack/core/webfont"; export default { ... @@ -45,7 +45,7 @@ These plugins generate signed distance field (SDF) and multi-channel signed dist ```js -import { sdf, msdf } from "@assetpack/core"; +import { sdf, msdf } from "@assetpack/core/webfont"; export default { ...