├── .github ├── ISSUE_TEMPLATE │ ├── bug-report.yml │ ├── config.yml │ └── feature-request.yml └── PULL_REQUEST_TEMPLATE.md ├── .gitignore ├── .prettierrc ├── LICENSE ├── README.md ├── examples ├── basic │ ├── README.md │ ├── hello-to-hi-plugin.js │ ├── melter.config.js │ ├── package-lock.json │ ├── package.json │ └── src │ │ ├── components │ │ └── my-ui-snippet.liquid │ │ ├── sections │ │ ├── legacy │ │ │ └── my-legacy-section.liquid │ │ └── my-section.liquid │ │ └── snippets │ │ └── my-functional-snippet.liquid ├── file-hierarchy │ ├── README.md │ ├── file-hierarchy-plugin.js │ ├── melter.config.js │ ├── package-lock.json │ ├── package.json │ └── src │ │ └── storefront │ │ ├── (password) │ │ ├── layout.liquid │ │ └── password │ │ │ └── template.json │ │ └── (theme) │ │ ├── cart │ │ └── template.json │ │ ├── layout.liquid │ │ └── products │ │ └── [handle] │ │ └── template.json └── liquidx │ ├── .gitignore │ ├── README.md │ ├── melter.config.js │ ├── package-lock.json │ ├── package.json │ ├── shopify.theme.toml.example │ └── src │ ├── components │ └── Hello │ │ └── Hello.liquid │ ├── config │ └── settings_schema.json │ ├── layout │ ├── gift_card.liquid │ └── theme.liquid │ ├── locales │ └── en.default.json │ ├── sections │ ├── 404-main.liquid │ ├── account-activate-main.liquid │ ├── account-addresses-main.liquid │ ├── account-index-main.liquid │ ├── account-login-main.liquid │ ├── account-order-main.liquid │ ├── account-register-main.liquid │ ├── account-reset-main.liquid │ ├── blog-article-main.liquid │ ├── blog-main.liquid │ ├── cart-main.liquid │ ├── collection-main.liquid │ ├── collections-main.liquid │ ├── gift_cards-main.liquid │ ├── index-main.liquid │ ├── page-main.liquid │ ├── password-main.liquid │ ├── product-main.liquid │ └── search-main.liquid │ └── templates │ ├── 404.json │ ├── article.json │ ├── blog.json │ ├── cart.json │ ├── collection.json │ ├── customers │ ├── account.json │ ├── activate_account.json │ ├── addresses.json │ ├── login.json │ ├── order.json │ ├── register.json │ └── reset_password.json │ ├── gift_card.liquid │ ├── index.json │ ├── list-collections.json │ ├── page.json │ ├── password.json │ ├── product.json │ └── search.json ├── nodemon.json ├── package-lock.json ├── package.json ├── src ├── Asset.ts ├── Compilation.ts ├── Compiler.ts ├── Emitter.ts ├── Logger.ts ├── Plugin.ts ├── Watcher.ts ├── config │ ├── defaults.ts │ ├── index.ts │ └── load.ts ├── index.ts ├── melter.ts ├── plugins │ ├── PathsPlugin.ts │ └── StatsPlugin.ts └── utils │ └── index.ts ├── tsconfig.json └── tsup.config.ts /.github/ISSUE_TEMPLATE/bug-report.yml: -------------------------------------------------------------------------------- 1 | name: Bug Report 2 | description: Report a bug 3 | title: '' 4 | labels: 5 | - 'bug' 6 | body: 7 | - type: textarea 8 | id: steps_to_reproduce 9 | attributes: 10 | label: Steps to reproduce 11 | description: Let us know the exact steps required to reproduce the bug. The more details, the better! 12 | value: |- 13 | 1. 14 | 2. 15 | 3. 16 | validations: 17 | required: true 18 | - type: textarea 19 | id: expected_behavior 20 | attributes: 21 | label: Expected Behavior 22 | description: What do you think should have happened? 23 | validations: 24 | required: true 25 | - type: textarea 26 | id: actual_behavior 27 | attributes: 28 | label: Actual Behavior 29 | description: What actually happened? 30 | validations: 31 | required: true 32 | - type: markdown 33 | attributes: 34 | value: | 35 | ## Environment Details 36 | - type: input 37 | id: os 38 | attributes: 39 | label: Operating System 40 | placeholder: Windows 11, Mac OS Monterey, Ubuntu 20.04... 41 | validations: 42 | required: true 43 | - type: input 44 | id: version 45 | attributes: 46 | label: Melter version (check your project's `package.json` if you're not sure) 47 | validations: 48 | required: true 49 | - type: input 50 | id: shell 51 | attributes: 52 | label: Shell 53 | placeholder: Cygwin, Git Bash, iTerm2, bash, zsh... 54 | - type: input 55 | id: node_version 56 | attributes: 57 | label: Node version (run `node -v` if you're not sure) 58 | placeholder: v18.0.0 59 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: true 2 | contact_links: 3 | - name: Twitter 4 | url: https://twitter.com/unshopable 5 | about: Connect with us and the melter community, and get notified about updates 6 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature-request.yml: -------------------------------------------------------------------------------- 1 | name: Feature Request 2 | description: Suggest a new feature, or changes to an existing one 3 | title: '' 4 | labels: 5 | - 'enhancement' 6 | body: 7 | - type: dropdown 8 | id: type 9 | attributes: 10 | label: What type of change do you want to see? 11 | options: 12 | - New feature 13 | - Change to an existing feature 14 | validations: 15 | required: true 16 | - type: textarea 17 | id: overview 18 | attributes: 19 | label: Overview 20 | description: Please describe the feature you'd like to be added to melter. 21 | validations: 22 | required: true 23 | - type: textarea 24 | id: motivation 25 | attributes: 26 | label: Motivation 27 | description: What inspired this feature request? What problems were you facing? 28 | validations: 29 | required: true 30 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 8 | 9 | ### Summary 10 | 11 | 15 | 16 | ### Why are these changes introduced? 17 | 18 | 22 | 23 | ### What approach did you take? 24 | 25 | 29 | 30 | ### How did you test the change(s) to make sure everything is working properly? 31 | 32 | 35 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | dist/ 3 | sandbox/ -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "singleQuote": true, 3 | "trailingComma": "all", 4 | "printWidth": 100 5 | } 6 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 thorborn GmbH & Brand Boosting GmbH 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # melter 2 | 3 | Melter is used to compile files into something that is compatible with [Shopify's theme architecture](https://shopify.dev/docs/themes/architecture). You can interact with melter either from its API or CLI. 4 | 5 | > **Warning** 6 | > Melter is still in alpha. Expect breaking changes with every release. Please report any issues [here](https://github.com/unshopable/melter/issues). 7 | 8 | ## Table of Contents 9 | 10 | - [Getting started](#getting-started) 11 | - [Configuration](#configuration) 12 | - [Options](#options) 13 | - [Input](#input) 14 | - [Output](#output) 15 | - [Stats](#stats) 16 | - [Paths](#paths) 17 | - [Examples](#config-examples) 18 | - [Plugins](#plugins) 19 | - [Examples](#plugin-examples) 20 | - [Official Plugins](#official-plugins) 21 | - [Community Plugins](#community-plugins) 22 | - [Custom Plugins](#custom-plugins) 23 | - [Contributing](#contributing) 24 | - [License](#license) 25 | 26 | ## Getting started 27 | 28 | First, let's create a new directory, initialize npm, install melter and its CLI locally: 29 | 30 | ```sh 31 | mkdir melter-basic-demo 32 | cd melter-basic-demo 33 | npm init -y 34 | npm install --save-dev @unshopable/melter @unshopable/melter-cli 35 | ``` 36 | 37 | Now we'll create the following directory structure, files and their contents: 38 | 39 | ```diff 40 | melter-basic-demo 41 | ├── node_modules 42 | + ├── src 43 | + │ └── sections 44 | + │ └── my-section.liquid 45 | ├── package-lock.json 46 | └── package.json 47 | ``` 48 | 49 | **src/my-section.liquid** 50 | 51 | ```html 52 |
Hello, World!
53 | ``` 54 | 55 | > Throughout the documenation we will use `diff` blocks to show you what changes we're making to directories, files, and code. For instance: 56 | 57 | ```diff 58 | + this is something new 59 | - and this is something we removed 60 | and this is unchanged 61 | ``` 62 | 63 | Note that is is only a basic example to get you started with melter. Your directory structure will look quite different in production. 64 | 65 | Next run: 66 | 67 | ```sh 68 | $ npx melter 69 | 70 | ... 71 | 72 | Compiled with 1 warnings 73 | 74 | ⚠ No config found. Loaded default config. To disable this warning create a custom config. 75 | ``` 76 | 77 | This should have created a new directory (`dist`) in the root of your project with the following directory strcuture, files and their contents: 78 | 79 | ```diff 80 | melter-basic-demo 81 | + ├── dist 82 | + │ └── sections 83 | + │ └── my-section.liquid 84 | ... 85 | ``` 86 | 87 | **dist/my-section.liquid** 88 | 89 | ```html 90 |
Hello, World!
91 | ``` 92 | 93 | Sure, that's not really exciting but we'll get there. Continue reading this documentation. 94 | 95 | ## Configuration 96 | 97 | Since melter doesn't really do anything – or at least nothing useful – without configuration, let's create a config: 98 | 99 | ```diff 100 | melter-basic-demo 101 | ├── node_modules 102 | ├── src 103 | │ └── sections 104 | │ └── my-section.liquid 105 | + ├── melter.config.js 106 | ├── package-lock.json 107 | └── package.json 108 | ``` 109 | 110 | **melter.config.js** 111 | 112 | ```js 113 | /** @type {import("@unshopable/melter").MelterConfig} */ 114 | const melterConfig = {}; 115 | 116 | module.exports = melterConfig; 117 | ``` 118 | 119 | ### Options 120 | 121 | #### Input 122 | 123 | With the `input` option you can specify where melter should look for files to compile. Defaults to `src`. 124 | 125 | #### Output 126 | 127 | With the `output` option you can specify where melter should write the compiled files to. Defaults to `dist`. 128 | 129 | If `output` is `undefined` no files will be emitted. You can still access them through [compilations stats](). 130 | 131 | #### Stats 132 | 133 | The `stats` option controls the built-in `StatsPlugin` which basically is just a simple logger. Defaults to `true`. 134 | 135 | Setting it to `false` equals "silent" mode. 136 | 137 | #### Paths 138 | 139 | The `paths` options controls the built-in `PathsPlugin` which determines where to write files to within the `output` directory. It's based on Shopify's default theme architecture. 140 | 141 | Setting it to `false` prevents the `PathsPlugin` from being applied which results in no files being emitted. This is handy if you want to implement a custom directory structure through plugins. 142 | 143 | ### Config Examples 144 | 145 | Now that you know what can be configured, let's play with it: 146 | 147 | **melter.config.js** 148 | 149 | ```diff 150 | /** @type {import("@unshopable/melter").MelterConfig} */ 151 | - const melterConfig = {}; 152 | + const melterConfig = { 153 | + paths: { 154 | + sections: [ 155 | + /sections\/[^\/]*\.liquid$/, 156 | + /sections\/legacy\/[^\/]*\.liquid$/, 157 | + ], 158 | + }, 159 | + }; 160 | 161 | module.exports = melterConfig; 162 | ``` 163 | 164 | Also update your `src` directory: 165 | 166 | ```diff 167 | melter-basic-demo 168 | ├── node_modules 169 | ├── src 170 | │ └── sections 171 | + │ ├── legacy 172 | + │ │ └── my-legacy-section.liquid 173 | │ └── my-section.liquid 174 | ├── melter.config.js 175 | ├── package-lock.json 176 | └── package.json 177 | ``` 178 | 179 | And once again, run: 180 | 181 | ```sh 182 | $ npx melter 183 | 184 | ... 185 | 186 | Successfully compiled in x ms 187 | ``` 188 | 189 | Your `dist` directory should look like this now: 190 | 191 | ```diff 192 | melter-basic-demo 193 | ├── dist 194 | │ └── sections 195 | + │ ├── my-legacy-section.liquid 196 | │ └── my-section.liquid 197 | ... 198 | ``` 199 | 200 | > **Warning** 201 | > The `PathsPlugin` currently does not take care of multiple sections with the same name. 202 | 203 | Now extend the `paths` option so we can split re-usable liquid components and UI components: 204 | 205 | ```diff 206 | /** @type {import("@unshopable/melter").MelterConfig} */ 207 | const melterConfig = { 208 | paths: { 209 | sections: [ 210 | /sections\/[^\/]*\.liquid$/, 211 | /sections\/legacy\/[^\/]*\.liquid$/, 212 | ], 213 | + snippets: [ 214 | + /components\/[^\/]*\.liquid$/, 215 | + /snippets\/[^\/]*\.liquid$/, 216 | + ], 217 | }, 218 | }; 219 | 220 | module.exports = melterConfig; 221 | ``` 222 | 223 | And update your `src` directory: 224 | 225 | ```diff 226 | melter-basic-demo 227 | ├── node_modules 228 | ├── src 229 | + │ ├── components 230 | + │ │ └── my-ui-snippet.liquid 231 | │ ├── sections 232 | │ │ ├── legacy 233 | │ │ │ └── my-legacy-section.liquid 234 | │ │ └── my-section.liquid 235 | + │ └── snippets 236 | + │ └── my-functional-snippet.liquid 237 | ├── melter.config.js 238 | ├── package-lock.json 239 | └── package.json 240 | ``` 241 | 242 | Finally, run: 243 | 244 | ```sh 245 | $ npx melter 246 | 247 | ... 248 | 249 | Successfully compiled in x ms 250 | ``` 251 | 252 | Your `dist` directory should look like this now: 253 | 254 | ```diff 255 | melter-basic-demo 256 | ├── dist 257 | │ ├── sections 258 | │ │ ├── my-legacy-section.liquid 259 | │ │ └── my-section.liquid 260 | + │ └── snippets 261 | + │ ├── my-functional-snippet.liquid 262 | + │ └── my-ui-snippet.liquid 263 | ... 264 | ``` 265 | 266 | If you have custom requirements the base melter config might not be sufficient. In this case consider using an [official](#official-plugins) or [community](#community-plugins) plugin. You can also develop [custom plugins](#develop-plugins). 267 | 268 | ## Plugins 269 | 270 | Plugins are what makes melter powerful. A plugin is a JavaScript object that has an `apply` method which is called by the melter compiler, giving it access to the entire compilation lifecycle. 271 | 272 | ### Plugin Examples 273 | 274 | To see them in action, create a new file in your root directory: 275 | 276 | ```diff 277 | melter-basic-demo 278 | ├── node_modules 279 | ├── src 280 | │ └── sections 281 | │ ├── legacy 282 | │ │ └── my-legacy-section.liquid 283 | │ └── my-section.liquid 284 | ├── melter.config.js 285 | + ├── hello-to-hi-plugin.js 286 | ├── package-lock.json 287 | └── package.json 288 | ``` 289 | 290 | **hello-to-hi-plugin.js** 291 | 292 | ```js 293 | const { Plugin } = require('@unshopable/melter'); 294 | 295 | class HelloToHiPlugin extends Plugin { 296 | apply(compiler) { 297 | compiler.hooks.emitter.tap('HelloToHiPlugin', (emitter) => { 298 | emitter.hooks.beforeAssetAction.tap('HelloToHiPlugin', (asset) => { 299 | const assetContentString = asset.content.toString(); 300 | 301 | if (assetContentString.includes('Hello')) { 302 | const updatedContent = assetContentString.replace('Hello', 'Hi'); 303 | 304 | asset.content = Buffer.from(updatedContent); 305 | } 306 | }); 307 | }); 308 | } 309 | } 310 | 311 | module.exports = HelloToHiPlugin; 312 | ``` 313 | 314 | Now add this to your melter config: 315 | 316 | ```diff 317 | + const HelloToHiPlugin = require('./hello-to-hi-plugin.js'); 318 | 319 | /** @type {import("@unshopable/melter").MelterConfig} */ 320 | const melterConfig = { 321 | paths: { 322 | sections: [ 323 | /sections\/[^\/]*\.liquid$/, 324 | /sections\/legacy\/[^\/]*\.liquid$/, 325 | ], 326 | snippets: [ 327 | /components\/[^\/]*\.liquid$/, 328 | /snippets\/[^\/]*\.liquid$/, 329 | ], 330 | }, 331 | 332 | + plugins: [ 333 | + new HelloToHiPlugin(), 334 | + ], 335 | }; 336 | 337 | module.exports = melterConfig; 338 | ``` 339 | 340 | Then, run: 341 | 342 | ```sh 343 | $ npx melter 344 | 345 | ... 346 | 347 | Successfully compiled in x ms 348 | ``` 349 | 350 | Open `dist/sections/my-section.liquid`. You should see the following content: 351 | 352 | ```html 353 |
Hi, World!
354 | ``` 355 | 356 | Once again, this is only a super basic example to get to know the capabilities of melter. To see what's possible, check out already existing plugins: 357 | 358 | ### Official Plugins 359 | 360 | - [melter-plugin-liquidx](https://github.com/unshopable/melter-plugin-liquidx) 361 | 362 | ### Community Plugins 363 | 364 | - ... 365 | 366 | ### Custom Plugins 367 | 368 | We encourage you to publish your custom plugin(s) so other developers can benefit from them as well. 369 | 370 | To make it easy for other developers to find your plugins, please follow these conventions: 371 | 372 | - Prefix it with `melter-plugin-` (e.g. `melter-plugin-hello-to-hi`) 373 | - Include the `melter` and `melter-plugin` keyword in your plugin's `package.json` 374 | 375 | ## Contributing 376 | 377 | TODO 378 | 379 | ## License 380 | 381 | [MIT](LICENSE) 382 | -------------------------------------------------------------------------------- /examples/basic/README.md: -------------------------------------------------------------------------------- 1 | # Melter Basic Example 2 | 3 | > **Note** 4 | > This is the example we've built as part of the [getting started guide](https://github.com/unshopable/melter/blob/development/README.md#getting-started). 5 | -------------------------------------------------------------------------------- /examples/basic/hello-to-hi-plugin.js: -------------------------------------------------------------------------------- 1 | const { Plugin } = require('@unshopable/melter'); 2 | 3 | class HelloToHiPlugin extends Plugin { 4 | apply(compiler) { 5 | compiler.hooks.emitter.tap('HelloToHiPlugin', (emitter) => { 6 | emitter.hooks.beforeAssetAction.tap('HelloToHiPlugin', (asset) => { 7 | const assetContentString = asset.content.toString(); 8 | 9 | if (assetContentString.includes('Hello')) { 10 | const updatedContent = assetContentString.replace('Hello', 'Hi'); 11 | 12 | asset.content = Buffer.from(updatedContent); 13 | } 14 | }); 15 | }); 16 | } 17 | } 18 | 19 | module.exports = HelloToHiPlugin; 20 | -------------------------------------------------------------------------------- /examples/basic/melter.config.js: -------------------------------------------------------------------------------- 1 | const HelloToHiPlugin = require('./hello-to-hi-plugin.js'); 2 | 3 | /** @type {import("@unshopable/melter").MelterConfig} */ 4 | const melterConfig = { 5 | paths: { 6 | sections: [/sections\/[^\/]*\.liquid$/, /sections\/legacy\/[^\/]*\.liquid$/], 7 | snippets: [/components\/[^\/]*\.liquid$/, /snippets\/[^\/]*\.liquid$/], 8 | }, 9 | 10 | plugins: [new HelloToHiPlugin()], 11 | }; 12 | 13 | module.exports = melterConfig; 14 | -------------------------------------------------------------------------------- /examples/basic/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "basic", 3 | "version": "1.0.0", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "basic", 9 | "version": "1.0.0", 10 | "license": "ISC", 11 | "devDependencies": { 12 | "@unshopable/melter": "^0.1.0-alpha.32", 13 | "@unshopable/melter-cli": "^0.1.0-alpha.0" 14 | } 15 | }, 16 | "node_modules/@cspotcode/source-map-support": { 17 | "version": "0.8.1", 18 | "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", 19 | "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", 20 | "dev": true, 21 | "dependencies": { 22 | "@jridgewell/trace-mapping": "0.3.9" 23 | }, 24 | "engines": { 25 | "node": ">=12" 26 | } 27 | }, 28 | "node_modules/@jridgewell/resolve-uri": { 29 | "version": "3.1.1", 30 | "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", 31 | "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", 32 | "dev": true, 33 | "engines": { 34 | "node": ">=6.0.0" 35 | } 36 | }, 37 | "node_modules/@jridgewell/sourcemap-codec": { 38 | "version": "1.4.15", 39 | "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", 40 | "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", 41 | "dev": true 42 | }, 43 | "node_modules/@jridgewell/trace-mapping": { 44 | "version": "0.3.9", 45 | "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", 46 | "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", 47 | "dev": true, 48 | "dependencies": { 49 | "@jridgewell/resolve-uri": "^3.0.3", 50 | "@jridgewell/sourcemap-codec": "^1.4.10" 51 | } 52 | }, 53 | "node_modules/@nodelib/fs.scandir": { 54 | "version": "2.1.5", 55 | "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", 56 | "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", 57 | "dev": true, 58 | "dependencies": { 59 | "@nodelib/fs.stat": "2.0.5", 60 | "run-parallel": "^1.1.9" 61 | }, 62 | "engines": { 63 | "node": ">= 8" 64 | } 65 | }, 66 | "node_modules/@nodelib/fs.stat": { 67 | "version": "2.0.5", 68 | "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", 69 | "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", 70 | "dev": true, 71 | "engines": { 72 | "node": ">= 8" 73 | } 74 | }, 75 | "node_modules/@nodelib/fs.walk": { 76 | "version": "1.2.8", 77 | "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", 78 | "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", 79 | "dev": true, 80 | "dependencies": { 81 | "@nodelib/fs.scandir": "2.1.5", 82 | "fastq": "^1.6.0" 83 | }, 84 | "engines": { 85 | "node": ">= 8" 86 | } 87 | }, 88 | "node_modules/@oclif/core": { 89 | "version": "2.8.5", 90 | "resolved": "https://registry.npmjs.org/@oclif/core/-/core-2.8.5.tgz", 91 | "integrity": "sha512-316DLfrHQDYmWDriI4Woxk9y1wVUrPN1sZdbQLHdOdlTA9v/twe7TdHpWOriEypfl6C85NWEJKc1870yuLtjrQ==", 92 | "dev": true, 93 | "dependencies": { 94 | "@types/cli-progress": "^3.11.0", 95 | "ansi-escapes": "^4.3.2", 96 | "ansi-styles": "^4.3.0", 97 | "cardinal": "^2.1.1", 98 | "chalk": "^4.1.2", 99 | "clean-stack": "^3.0.1", 100 | "cli-progress": "^3.12.0", 101 | "debug": "^4.3.4", 102 | "ejs": "^3.1.8", 103 | "fs-extra": "^9.1.0", 104 | "get-package-type": "^0.1.0", 105 | "globby": "^11.1.0", 106 | "hyperlinker": "^1.0.0", 107 | "indent-string": "^4.0.0", 108 | "is-wsl": "^2.2.0", 109 | "js-yaml": "^3.14.1", 110 | "natural-orderby": "^2.0.3", 111 | "object-treeify": "^1.1.33", 112 | "password-prompt": "^1.1.2", 113 | "semver": "^7.3.7", 114 | "string-width": "^4.2.3", 115 | "strip-ansi": "^6.0.1", 116 | "supports-color": "^8.1.1", 117 | "supports-hyperlinks": "^2.2.0", 118 | "ts-node": "^10.9.1", 119 | "tslib": "^2.5.0", 120 | "widest-line": "^3.1.0", 121 | "wordwrap": "^1.0.0", 122 | "wrap-ansi": "^7.0.0" 123 | }, 124 | "engines": { 125 | "node": ">=14.0.0" 126 | } 127 | }, 128 | "node_modules/@oclif/core/node_modules/fs-extra": { 129 | "version": "9.1.0", 130 | "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", 131 | "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", 132 | "dev": true, 133 | "dependencies": { 134 | "at-least-node": "^1.0.0", 135 | "graceful-fs": "^4.2.0", 136 | "jsonfile": "^6.0.1", 137 | "universalify": "^2.0.0" 138 | }, 139 | "engines": { 140 | "node": ">=10" 141 | } 142 | }, 143 | "node_modules/@tsconfig/node10": { 144 | "version": "1.0.9", 145 | "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", 146 | "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", 147 | "dev": true 148 | }, 149 | "node_modules/@tsconfig/node12": { 150 | "version": "1.0.11", 151 | "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", 152 | "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", 153 | "dev": true 154 | }, 155 | "node_modules/@tsconfig/node14": { 156 | "version": "1.0.3", 157 | "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", 158 | "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", 159 | "dev": true 160 | }, 161 | "node_modules/@tsconfig/node16": { 162 | "version": "1.0.4", 163 | "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", 164 | "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", 165 | "dev": true 166 | }, 167 | "node_modules/@types/cli-progress": { 168 | "version": "3.11.0", 169 | "resolved": "https://registry.npmjs.org/@types/cli-progress/-/cli-progress-3.11.0.tgz", 170 | "integrity": "sha512-XhXhBv1R/q2ahF3BM7qT5HLzJNlIL0wbcGyZVjqOTqAybAnsLisd7gy1UCyIqpL+5Iv6XhlSyzjLCnI2sIdbCg==", 171 | "dev": true, 172 | "dependencies": { 173 | "@types/node": "*" 174 | } 175 | }, 176 | "node_modules/@types/node": { 177 | "version": "20.2.5", 178 | "resolved": "https://registry.npmjs.org/@types/node/-/node-20.2.5.tgz", 179 | "integrity": "sha512-JJulVEQXmiY9Px5axXHeYGLSjhkZEnD+MDPDGbCbIAbMslkKwmygtZFy1X6s/075Yo94sf8GuSlFfPzysQrWZQ==", 180 | "dev": true 181 | }, 182 | "node_modules/@unshopable/melter": { 183 | "version": "0.1.0-alpha.32", 184 | "resolved": "https://registry.npmjs.org/@unshopable/melter/-/melter-0.1.0-alpha.32.tgz", 185 | "integrity": "sha512-NQRMn58QE+5m49KzsEyYH8s+C/O+cNnEg+FUoDmLVzsyJAW17YV/D2MNE+KOWPwEziZerXHBRx7WsMpAsDf6uQ==", 186 | "dev": true, 187 | "dependencies": { 188 | "chokidar": "^3.5.3", 189 | "fast-glob": "^3.2.12", 190 | "fs-extra": "^11.1.1", 191 | "just-safe-get": "^4.2.0", 192 | "just-safe-set": "^4.2.1", 193 | "tapable": "^2.2.1" 194 | } 195 | }, 196 | "node_modules/@unshopable/melter-cli": { 197 | "version": "0.1.0-alpha.0", 198 | "resolved": "https://registry.npmjs.org/@unshopable/melter-cli/-/melter-cli-0.1.0-alpha.0.tgz", 199 | "integrity": "sha512-wYmwux4suPieLvPrd2445x7L/eTR+RzhM5e4N9Xbk7J2Q+qhxHRf5/zIEvDZTWywdQNKqWcP/MfcgsuGtkpqRw==", 200 | "dev": true, 201 | "dependencies": { 202 | "@oclif/core": "^2" 203 | }, 204 | "bin": { 205 | "melter": "bin/run" 206 | }, 207 | "engines": { 208 | "node": ">=12.0.0" 209 | }, 210 | "peerDependencies": { 211 | "@unshopable/melter": "^0.1.0-alpha.32" 212 | } 213 | }, 214 | "node_modules/acorn": { 215 | "version": "8.8.2", 216 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", 217 | "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", 218 | "dev": true, 219 | "bin": { 220 | "acorn": "bin/acorn" 221 | }, 222 | "engines": { 223 | "node": ">=0.4.0" 224 | } 225 | }, 226 | "node_modules/acorn-walk": { 227 | "version": "8.2.0", 228 | "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", 229 | "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", 230 | "dev": true, 231 | "engines": { 232 | "node": ">=0.4.0" 233 | } 234 | }, 235 | "node_modules/ansi-escapes": { 236 | "version": "4.3.2", 237 | "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", 238 | "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", 239 | "dev": true, 240 | "dependencies": { 241 | "type-fest": "^0.21.3" 242 | }, 243 | "engines": { 244 | "node": ">=8" 245 | }, 246 | "funding": { 247 | "url": "https://github.com/sponsors/sindresorhus" 248 | } 249 | }, 250 | "node_modules/ansi-regex": { 251 | "version": "5.0.1", 252 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 253 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 254 | "dev": true, 255 | "engines": { 256 | "node": ">=8" 257 | } 258 | }, 259 | "node_modules/ansi-styles": { 260 | "version": "4.3.0", 261 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 262 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 263 | "dev": true, 264 | "dependencies": { 265 | "color-convert": "^2.0.1" 266 | }, 267 | "engines": { 268 | "node": ">=8" 269 | }, 270 | "funding": { 271 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 272 | } 273 | }, 274 | "node_modules/ansicolors": { 275 | "version": "0.3.2", 276 | "resolved": "https://registry.npmjs.org/ansicolors/-/ansicolors-0.3.2.tgz", 277 | "integrity": "sha512-QXu7BPrP29VllRxH8GwB7x5iX5qWKAAMLqKQGWTeLWVlNHNOpVMJ91dsxQAIWXpjuW5wqvxu3Jd/nRjrJ+0pqg==", 278 | "dev": true 279 | }, 280 | "node_modules/anymatch": { 281 | "version": "3.1.3", 282 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", 283 | "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", 284 | "dev": true, 285 | "dependencies": { 286 | "normalize-path": "^3.0.0", 287 | "picomatch": "^2.0.4" 288 | }, 289 | "engines": { 290 | "node": ">= 8" 291 | } 292 | }, 293 | "node_modules/arg": { 294 | "version": "4.1.3", 295 | "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", 296 | "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", 297 | "dev": true 298 | }, 299 | "node_modules/argparse": { 300 | "version": "1.0.10", 301 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", 302 | "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", 303 | "dev": true, 304 | "dependencies": { 305 | "sprintf-js": "~1.0.2" 306 | } 307 | }, 308 | "node_modules/array-union": { 309 | "version": "2.1.0", 310 | "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", 311 | "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", 312 | "dev": true, 313 | "engines": { 314 | "node": ">=8" 315 | } 316 | }, 317 | "node_modules/async": { 318 | "version": "3.2.4", 319 | "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", 320 | "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==", 321 | "dev": true 322 | }, 323 | "node_modules/at-least-node": { 324 | "version": "1.0.0", 325 | "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", 326 | "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", 327 | "dev": true, 328 | "engines": { 329 | "node": ">= 4.0.0" 330 | } 331 | }, 332 | "node_modules/balanced-match": { 333 | "version": "1.0.2", 334 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 335 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 336 | "dev": true 337 | }, 338 | "node_modules/binary-extensions": { 339 | "version": "2.2.0", 340 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", 341 | "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", 342 | "dev": true, 343 | "engines": { 344 | "node": ">=8" 345 | } 346 | }, 347 | "node_modules/brace-expansion": { 348 | "version": "1.1.11", 349 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 350 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 351 | "dev": true, 352 | "dependencies": { 353 | "balanced-match": "^1.0.0", 354 | "concat-map": "0.0.1" 355 | } 356 | }, 357 | "node_modules/braces": { 358 | "version": "3.0.2", 359 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 360 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 361 | "dev": true, 362 | "dependencies": { 363 | "fill-range": "^7.0.1" 364 | }, 365 | "engines": { 366 | "node": ">=8" 367 | } 368 | }, 369 | "node_modules/cardinal": { 370 | "version": "2.1.1", 371 | "resolved": "https://registry.npmjs.org/cardinal/-/cardinal-2.1.1.tgz", 372 | "integrity": "sha512-JSr5eOgoEymtYHBjNWyjrMqet9Am2miJhlfKNdqLp6zoeAh0KN5dRAcxlecj5mAJrmQomgiOBj35xHLrFjqBpw==", 373 | "dev": true, 374 | "dependencies": { 375 | "ansicolors": "~0.3.2", 376 | "redeyed": "~2.1.0" 377 | }, 378 | "bin": { 379 | "cdl": "bin/cdl.js" 380 | } 381 | }, 382 | "node_modules/chalk": { 383 | "version": "4.1.2", 384 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", 385 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", 386 | "dev": true, 387 | "dependencies": { 388 | "ansi-styles": "^4.1.0", 389 | "supports-color": "^7.1.0" 390 | }, 391 | "engines": { 392 | "node": ">=10" 393 | }, 394 | "funding": { 395 | "url": "https://github.com/chalk/chalk?sponsor=1" 396 | } 397 | }, 398 | "node_modules/chalk/node_modules/supports-color": { 399 | "version": "7.2.0", 400 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 401 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 402 | "dev": true, 403 | "dependencies": { 404 | "has-flag": "^4.0.0" 405 | }, 406 | "engines": { 407 | "node": ">=8" 408 | } 409 | }, 410 | "node_modules/chokidar": { 411 | "version": "3.5.3", 412 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", 413 | "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", 414 | "dev": true, 415 | "funding": [ 416 | { 417 | "type": "individual", 418 | "url": "https://paulmillr.com/funding/" 419 | } 420 | ], 421 | "dependencies": { 422 | "anymatch": "~3.1.2", 423 | "braces": "~3.0.2", 424 | "glob-parent": "~5.1.2", 425 | "is-binary-path": "~2.1.0", 426 | "is-glob": "~4.0.1", 427 | "normalize-path": "~3.0.0", 428 | "readdirp": "~3.6.0" 429 | }, 430 | "engines": { 431 | "node": ">= 8.10.0" 432 | }, 433 | "optionalDependencies": { 434 | "fsevents": "~2.3.2" 435 | } 436 | }, 437 | "node_modules/clean-stack": { 438 | "version": "3.0.1", 439 | "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-3.0.1.tgz", 440 | "integrity": "sha512-lR9wNiMRcVQjSB3a7xXGLuz4cr4wJuuXlaAEbRutGowQTmlp7R72/DOgN21e8jdwblMWl9UOJMJXarX94pzKdg==", 441 | "dev": true, 442 | "dependencies": { 443 | "escape-string-regexp": "4.0.0" 444 | }, 445 | "engines": { 446 | "node": ">=10" 447 | }, 448 | "funding": { 449 | "url": "https://github.com/sponsors/sindresorhus" 450 | } 451 | }, 452 | "node_modules/cli-progress": { 453 | "version": "3.12.0", 454 | "resolved": "https://registry.npmjs.org/cli-progress/-/cli-progress-3.12.0.tgz", 455 | "integrity": "sha512-tRkV3HJ1ASwm19THiiLIXLO7Im7wlTuKnvkYaTkyoAPefqjNg7W7DHKUlGRxy9vxDvbyCYQkQozvptuMkGCg8A==", 456 | "dev": true, 457 | "dependencies": { 458 | "string-width": "^4.2.3" 459 | }, 460 | "engines": { 461 | "node": ">=4" 462 | } 463 | }, 464 | "node_modules/color-convert": { 465 | "version": "2.0.1", 466 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 467 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 468 | "dev": true, 469 | "dependencies": { 470 | "color-name": "~1.1.4" 471 | }, 472 | "engines": { 473 | "node": ">=7.0.0" 474 | } 475 | }, 476 | "node_modules/color-name": { 477 | "version": "1.1.4", 478 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 479 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 480 | "dev": true 481 | }, 482 | "node_modules/concat-map": { 483 | "version": "0.0.1", 484 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 485 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 486 | "dev": true 487 | }, 488 | "node_modules/create-require": { 489 | "version": "1.1.1", 490 | "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", 491 | "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", 492 | "dev": true 493 | }, 494 | "node_modules/cross-spawn": { 495 | "version": "6.0.5", 496 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", 497 | "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", 498 | "dev": true, 499 | "dependencies": { 500 | "nice-try": "^1.0.4", 501 | "path-key": "^2.0.1", 502 | "semver": "^5.5.0", 503 | "shebang-command": "^1.2.0", 504 | "which": "^1.2.9" 505 | }, 506 | "engines": { 507 | "node": ">=4.8" 508 | } 509 | }, 510 | "node_modules/cross-spawn/node_modules/semver": { 511 | "version": "5.7.1", 512 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", 513 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", 514 | "dev": true, 515 | "bin": { 516 | "semver": "bin/semver" 517 | } 518 | }, 519 | "node_modules/debug": { 520 | "version": "4.3.4", 521 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", 522 | "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", 523 | "dev": true, 524 | "dependencies": { 525 | "ms": "2.1.2" 526 | }, 527 | "engines": { 528 | "node": ">=6.0" 529 | }, 530 | "peerDependenciesMeta": { 531 | "supports-color": { 532 | "optional": true 533 | } 534 | } 535 | }, 536 | "node_modules/diff": { 537 | "version": "4.0.2", 538 | "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", 539 | "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", 540 | "dev": true, 541 | "engines": { 542 | "node": ">=0.3.1" 543 | } 544 | }, 545 | "node_modules/dir-glob": { 546 | "version": "3.0.1", 547 | "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", 548 | "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", 549 | "dev": true, 550 | "dependencies": { 551 | "path-type": "^4.0.0" 552 | }, 553 | "engines": { 554 | "node": ">=8" 555 | } 556 | }, 557 | "node_modules/ejs": { 558 | "version": "3.1.9", 559 | "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.9.tgz", 560 | "integrity": "sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ==", 561 | "dev": true, 562 | "dependencies": { 563 | "jake": "^10.8.5" 564 | }, 565 | "bin": { 566 | "ejs": "bin/cli.js" 567 | }, 568 | "engines": { 569 | "node": ">=0.10.0" 570 | } 571 | }, 572 | "node_modules/emoji-regex": { 573 | "version": "8.0.0", 574 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 575 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 576 | "dev": true 577 | }, 578 | "node_modules/escape-string-regexp": { 579 | "version": "4.0.0", 580 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", 581 | "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", 582 | "dev": true, 583 | "engines": { 584 | "node": ">=10" 585 | }, 586 | "funding": { 587 | "url": "https://github.com/sponsors/sindresorhus" 588 | } 589 | }, 590 | "node_modules/esprima": { 591 | "version": "4.0.1", 592 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", 593 | "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", 594 | "dev": true, 595 | "bin": { 596 | "esparse": "bin/esparse.js", 597 | "esvalidate": "bin/esvalidate.js" 598 | }, 599 | "engines": { 600 | "node": ">=4" 601 | } 602 | }, 603 | "node_modules/fast-glob": { 604 | "version": "3.2.12", 605 | "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", 606 | "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", 607 | "dev": true, 608 | "dependencies": { 609 | "@nodelib/fs.stat": "^2.0.2", 610 | "@nodelib/fs.walk": "^1.2.3", 611 | "glob-parent": "^5.1.2", 612 | "merge2": "^1.3.0", 613 | "micromatch": "^4.0.4" 614 | }, 615 | "engines": { 616 | "node": ">=8.6.0" 617 | } 618 | }, 619 | "node_modules/fastq": { 620 | "version": "1.15.0", 621 | "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", 622 | "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", 623 | "dev": true, 624 | "dependencies": { 625 | "reusify": "^1.0.4" 626 | } 627 | }, 628 | "node_modules/filelist": { 629 | "version": "1.0.4", 630 | "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", 631 | "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", 632 | "dev": true, 633 | "dependencies": { 634 | "minimatch": "^5.0.1" 635 | } 636 | }, 637 | "node_modules/filelist/node_modules/brace-expansion": { 638 | "version": "2.0.1", 639 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", 640 | "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", 641 | "dev": true, 642 | "dependencies": { 643 | "balanced-match": "^1.0.0" 644 | } 645 | }, 646 | "node_modules/filelist/node_modules/minimatch": { 647 | "version": "5.1.6", 648 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", 649 | "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", 650 | "dev": true, 651 | "dependencies": { 652 | "brace-expansion": "^2.0.1" 653 | }, 654 | "engines": { 655 | "node": ">=10" 656 | } 657 | }, 658 | "node_modules/fill-range": { 659 | "version": "7.0.1", 660 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 661 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 662 | "dev": true, 663 | "dependencies": { 664 | "to-regex-range": "^5.0.1" 665 | }, 666 | "engines": { 667 | "node": ">=8" 668 | } 669 | }, 670 | "node_modules/fs-extra": { 671 | "version": "11.1.1", 672 | "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.1.tgz", 673 | "integrity": "sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==", 674 | "dev": true, 675 | "dependencies": { 676 | "graceful-fs": "^4.2.0", 677 | "jsonfile": "^6.0.1", 678 | "universalify": "^2.0.0" 679 | }, 680 | "engines": { 681 | "node": ">=14.14" 682 | } 683 | }, 684 | "node_modules/fsevents": { 685 | "version": "2.3.2", 686 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", 687 | "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", 688 | "dev": true, 689 | "hasInstallScript": true, 690 | "optional": true, 691 | "os": [ 692 | "darwin" 693 | ], 694 | "engines": { 695 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 696 | } 697 | }, 698 | "node_modules/get-package-type": { 699 | "version": "0.1.0", 700 | "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", 701 | "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", 702 | "dev": true, 703 | "engines": { 704 | "node": ">=8.0.0" 705 | } 706 | }, 707 | "node_modules/glob-parent": { 708 | "version": "5.1.2", 709 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 710 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 711 | "dev": true, 712 | "dependencies": { 713 | "is-glob": "^4.0.1" 714 | }, 715 | "engines": { 716 | "node": ">= 6" 717 | } 718 | }, 719 | "node_modules/globby": { 720 | "version": "11.1.0", 721 | "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", 722 | "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", 723 | "dev": true, 724 | "dependencies": { 725 | "array-union": "^2.1.0", 726 | "dir-glob": "^3.0.1", 727 | "fast-glob": "^3.2.9", 728 | "ignore": "^5.2.0", 729 | "merge2": "^1.4.1", 730 | "slash": "^3.0.0" 731 | }, 732 | "engines": { 733 | "node": ">=10" 734 | }, 735 | "funding": { 736 | "url": "https://github.com/sponsors/sindresorhus" 737 | } 738 | }, 739 | "node_modules/graceful-fs": { 740 | "version": "4.2.11", 741 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", 742 | "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", 743 | "dev": true 744 | }, 745 | "node_modules/has-flag": { 746 | "version": "4.0.0", 747 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 748 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 749 | "dev": true, 750 | "engines": { 751 | "node": ">=8" 752 | } 753 | }, 754 | "node_modules/hyperlinker": { 755 | "version": "1.0.0", 756 | "resolved": "https://registry.npmjs.org/hyperlinker/-/hyperlinker-1.0.0.tgz", 757 | "integrity": "sha512-Ty8UblRWFEcfSuIaajM34LdPXIhbs1ajEX/BBPv24J+enSVaEVY63xQ6lTO9VRYS5LAoghIG0IDJ+p+IPzKUQQ==", 758 | "dev": true, 759 | "engines": { 760 | "node": ">=4" 761 | } 762 | }, 763 | "node_modules/ignore": { 764 | "version": "5.2.4", 765 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", 766 | "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", 767 | "dev": true, 768 | "engines": { 769 | "node": ">= 4" 770 | } 771 | }, 772 | "node_modules/indent-string": { 773 | "version": "4.0.0", 774 | "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", 775 | "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", 776 | "dev": true, 777 | "engines": { 778 | "node": ">=8" 779 | } 780 | }, 781 | "node_modules/is-binary-path": { 782 | "version": "2.1.0", 783 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 784 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 785 | "dev": true, 786 | "dependencies": { 787 | "binary-extensions": "^2.0.0" 788 | }, 789 | "engines": { 790 | "node": ">=8" 791 | } 792 | }, 793 | "node_modules/is-docker": { 794 | "version": "2.2.1", 795 | "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", 796 | "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", 797 | "dev": true, 798 | "bin": { 799 | "is-docker": "cli.js" 800 | }, 801 | "engines": { 802 | "node": ">=8" 803 | }, 804 | "funding": { 805 | "url": "https://github.com/sponsors/sindresorhus" 806 | } 807 | }, 808 | "node_modules/is-extglob": { 809 | "version": "2.1.1", 810 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 811 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 812 | "dev": true, 813 | "engines": { 814 | "node": ">=0.10.0" 815 | } 816 | }, 817 | "node_modules/is-fullwidth-code-point": { 818 | "version": "3.0.0", 819 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 820 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", 821 | "dev": true, 822 | "engines": { 823 | "node": ">=8" 824 | } 825 | }, 826 | "node_modules/is-glob": { 827 | "version": "4.0.3", 828 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 829 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 830 | "dev": true, 831 | "dependencies": { 832 | "is-extglob": "^2.1.1" 833 | }, 834 | "engines": { 835 | "node": ">=0.10.0" 836 | } 837 | }, 838 | "node_modules/is-number": { 839 | "version": "7.0.0", 840 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 841 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 842 | "dev": true, 843 | "engines": { 844 | "node": ">=0.12.0" 845 | } 846 | }, 847 | "node_modules/is-wsl": { 848 | "version": "2.2.0", 849 | "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", 850 | "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", 851 | "dev": true, 852 | "dependencies": { 853 | "is-docker": "^2.0.0" 854 | }, 855 | "engines": { 856 | "node": ">=8" 857 | } 858 | }, 859 | "node_modules/isexe": { 860 | "version": "2.0.0", 861 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 862 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", 863 | "dev": true 864 | }, 865 | "node_modules/jake": { 866 | "version": "10.8.7", 867 | "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.7.tgz", 868 | "integrity": "sha512-ZDi3aP+fG/LchyBzUM804VjddnwfSfsdeYkwt8NcbKRvo4rFkjhs456iLFn3k2ZUWvNe4i48WACDbza8fhq2+w==", 869 | "dev": true, 870 | "dependencies": { 871 | "async": "^3.2.3", 872 | "chalk": "^4.0.2", 873 | "filelist": "^1.0.4", 874 | "minimatch": "^3.1.2" 875 | }, 876 | "bin": { 877 | "jake": "bin/cli.js" 878 | }, 879 | "engines": { 880 | "node": ">=10" 881 | } 882 | }, 883 | "node_modules/js-yaml": { 884 | "version": "3.14.1", 885 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", 886 | "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", 887 | "dev": true, 888 | "dependencies": { 889 | "argparse": "^1.0.7", 890 | "esprima": "^4.0.0" 891 | }, 892 | "bin": { 893 | "js-yaml": "bin/js-yaml.js" 894 | } 895 | }, 896 | "node_modules/jsonfile": { 897 | "version": "6.1.0", 898 | "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", 899 | "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", 900 | "dev": true, 901 | "dependencies": { 902 | "universalify": "^2.0.0" 903 | }, 904 | "optionalDependencies": { 905 | "graceful-fs": "^4.1.6" 906 | } 907 | }, 908 | "node_modules/just-safe-get": { 909 | "version": "4.2.0", 910 | "resolved": "https://registry.npmjs.org/just-safe-get/-/just-safe-get-4.2.0.tgz", 911 | "integrity": "sha512-+tS4Bvgr/FnmYxOGbwziJ8I2BFk+cP1gQHm6rm7zo61w1SbxBwWGEq/Ryy9Gb6bvnloPq6pz7Bmm4a0rjTNlXA==", 912 | "dev": true 913 | }, 914 | "node_modules/just-safe-set": { 915 | "version": "4.2.1", 916 | "resolved": "https://registry.npmjs.org/just-safe-set/-/just-safe-set-4.2.1.tgz", 917 | "integrity": "sha512-La5CP41Ycv52+E4g7w1sRV8XXk7Sp8a/TwWQAYQKn6RsQz1FD4Z/rDRRmqV3wJznS1MDF3YxK7BCudX1J8FxLg==", 918 | "dev": true 919 | }, 920 | "node_modules/lru-cache": { 921 | "version": "6.0.0", 922 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", 923 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", 924 | "dev": true, 925 | "dependencies": { 926 | "yallist": "^4.0.0" 927 | }, 928 | "engines": { 929 | "node": ">=10" 930 | } 931 | }, 932 | "node_modules/make-error": { 933 | "version": "1.3.6", 934 | "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", 935 | "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", 936 | "dev": true 937 | }, 938 | "node_modules/merge2": { 939 | "version": "1.4.1", 940 | "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", 941 | "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", 942 | "dev": true, 943 | "engines": { 944 | "node": ">= 8" 945 | } 946 | }, 947 | "node_modules/micromatch": { 948 | "version": "4.0.5", 949 | "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", 950 | "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", 951 | "dev": true, 952 | "dependencies": { 953 | "braces": "^3.0.2", 954 | "picomatch": "^2.3.1" 955 | }, 956 | "engines": { 957 | "node": ">=8.6" 958 | } 959 | }, 960 | "node_modules/minimatch": { 961 | "version": "3.1.2", 962 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 963 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 964 | "dev": true, 965 | "dependencies": { 966 | "brace-expansion": "^1.1.7" 967 | }, 968 | "engines": { 969 | "node": "*" 970 | } 971 | }, 972 | "node_modules/ms": { 973 | "version": "2.1.2", 974 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 975 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 976 | "dev": true 977 | }, 978 | "node_modules/natural-orderby": { 979 | "version": "2.0.3", 980 | "resolved": "https://registry.npmjs.org/natural-orderby/-/natural-orderby-2.0.3.tgz", 981 | "integrity": "sha512-p7KTHxU0CUrcOXe62Zfrb5Z13nLvPhSWR/so3kFulUQU0sgUll2Z0LwpsLN351eOOD+hRGu/F1g+6xDfPeD++Q==", 982 | "dev": true, 983 | "engines": { 984 | "node": "*" 985 | } 986 | }, 987 | "node_modules/nice-try": { 988 | "version": "1.0.5", 989 | "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", 990 | "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", 991 | "dev": true 992 | }, 993 | "node_modules/normalize-path": { 994 | "version": "3.0.0", 995 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 996 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 997 | "dev": true, 998 | "engines": { 999 | "node": ">=0.10.0" 1000 | } 1001 | }, 1002 | "node_modules/object-treeify": { 1003 | "version": "1.1.33", 1004 | "resolved": "https://registry.npmjs.org/object-treeify/-/object-treeify-1.1.33.tgz", 1005 | "integrity": "sha512-EFVjAYfzWqWsBMRHPMAXLCDIJnpMhdWAqR7xG6M6a2cs6PMFpl/+Z20w9zDW4vkxOFfddegBKq9Rehd0bxWE7A==", 1006 | "dev": true, 1007 | "engines": { 1008 | "node": ">= 10" 1009 | } 1010 | }, 1011 | "node_modules/password-prompt": { 1012 | "version": "1.1.2", 1013 | "resolved": "https://registry.npmjs.org/password-prompt/-/password-prompt-1.1.2.tgz", 1014 | "integrity": "sha512-bpuBhROdrhuN3E7G/koAju0WjVw9/uQOG5Co5mokNj0MiOSBVZS1JTwM4zl55hu0WFmIEFvO9cU9sJQiBIYeIA==", 1015 | "dev": true, 1016 | "dependencies": { 1017 | "ansi-escapes": "^3.1.0", 1018 | "cross-spawn": "^6.0.5" 1019 | } 1020 | }, 1021 | "node_modules/password-prompt/node_modules/ansi-escapes": { 1022 | "version": "3.2.0", 1023 | "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz", 1024 | "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==", 1025 | "dev": true, 1026 | "engines": { 1027 | "node": ">=4" 1028 | } 1029 | }, 1030 | "node_modules/path-key": { 1031 | "version": "2.0.1", 1032 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", 1033 | "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", 1034 | "dev": true, 1035 | "engines": { 1036 | "node": ">=4" 1037 | } 1038 | }, 1039 | "node_modules/path-type": { 1040 | "version": "4.0.0", 1041 | "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", 1042 | "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", 1043 | "dev": true, 1044 | "engines": { 1045 | "node": ">=8" 1046 | } 1047 | }, 1048 | "node_modules/picomatch": { 1049 | "version": "2.3.1", 1050 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 1051 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 1052 | "dev": true, 1053 | "engines": { 1054 | "node": ">=8.6" 1055 | }, 1056 | "funding": { 1057 | "url": "https://github.com/sponsors/jonschlinkert" 1058 | } 1059 | }, 1060 | "node_modules/queue-microtask": { 1061 | "version": "1.2.3", 1062 | "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", 1063 | "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", 1064 | "dev": true, 1065 | "funding": [ 1066 | { 1067 | "type": "github", 1068 | "url": "https://github.com/sponsors/feross" 1069 | }, 1070 | { 1071 | "type": "patreon", 1072 | "url": "https://www.patreon.com/feross" 1073 | }, 1074 | { 1075 | "type": "consulting", 1076 | "url": "https://feross.org/support" 1077 | } 1078 | ] 1079 | }, 1080 | "node_modules/readdirp": { 1081 | "version": "3.6.0", 1082 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", 1083 | "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", 1084 | "dev": true, 1085 | "dependencies": { 1086 | "picomatch": "^2.2.1" 1087 | }, 1088 | "engines": { 1089 | "node": ">=8.10.0" 1090 | } 1091 | }, 1092 | "node_modules/redeyed": { 1093 | "version": "2.1.1", 1094 | "resolved": "https://registry.npmjs.org/redeyed/-/redeyed-2.1.1.tgz", 1095 | "integrity": "sha512-FNpGGo1DycYAdnrKFxCMmKYgo/mILAqtRYbkdQD8Ep/Hk2PQ5+aEAEx+IU713RTDmuBaH0c8P5ZozurNu5ObRQ==", 1096 | "dev": true, 1097 | "dependencies": { 1098 | "esprima": "~4.0.0" 1099 | } 1100 | }, 1101 | "node_modules/reusify": { 1102 | "version": "1.0.4", 1103 | "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", 1104 | "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", 1105 | "dev": true, 1106 | "engines": { 1107 | "iojs": ">=1.0.0", 1108 | "node": ">=0.10.0" 1109 | } 1110 | }, 1111 | "node_modules/run-parallel": { 1112 | "version": "1.2.0", 1113 | "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", 1114 | "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", 1115 | "dev": true, 1116 | "funding": [ 1117 | { 1118 | "type": "github", 1119 | "url": "https://github.com/sponsors/feross" 1120 | }, 1121 | { 1122 | "type": "patreon", 1123 | "url": "https://www.patreon.com/feross" 1124 | }, 1125 | { 1126 | "type": "consulting", 1127 | "url": "https://feross.org/support" 1128 | } 1129 | ], 1130 | "dependencies": { 1131 | "queue-microtask": "^1.2.2" 1132 | } 1133 | }, 1134 | "node_modules/semver": { 1135 | "version": "7.5.1", 1136 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", 1137 | "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", 1138 | "dev": true, 1139 | "dependencies": { 1140 | "lru-cache": "^6.0.0" 1141 | }, 1142 | "bin": { 1143 | "semver": "bin/semver.js" 1144 | }, 1145 | "engines": { 1146 | "node": ">=10" 1147 | } 1148 | }, 1149 | "node_modules/shebang-command": { 1150 | "version": "1.2.0", 1151 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", 1152 | "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", 1153 | "dev": true, 1154 | "dependencies": { 1155 | "shebang-regex": "^1.0.0" 1156 | }, 1157 | "engines": { 1158 | "node": ">=0.10.0" 1159 | } 1160 | }, 1161 | "node_modules/shebang-regex": { 1162 | "version": "1.0.0", 1163 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", 1164 | "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", 1165 | "dev": true, 1166 | "engines": { 1167 | "node": ">=0.10.0" 1168 | } 1169 | }, 1170 | "node_modules/slash": { 1171 | "version": "3.0.0", 1172 | "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", 1173 | "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", 1174 | "dev": true, 1175 | "engines": { 1176 | "node": ">=8" 1177 | } 1178 | }, 1179 | "node_modules/sprintf-js": { 1180 | "version": "1.0.3", 1181 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", 1182 | "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", 1183 | "dev": true 1184 | }, 1185 | "node_modules/string-width": { 1186 | "version": "4.2.3", 1187 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 1188 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 1189 | "dev": true, 1190 | "dependencies": { 1191 | "emoji-regex": "^8.0.0", 1192 | "is-fullwidth-code-point": "^3.0.0", 1193 | "strip-ansi": "^6.0.1" 1194 | }, 1195 | "engines": { 1196 | "node": ">=8" 1197 | } 1198 | }, 1199 | "node_modules/strip-ansi": { 1200 | "version": "6.0.1", 1201 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 1202 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 1203 | "dev": true, 1204 | "dependencies": { 1205 | "ansi-regex": "^5.0.1" 1206 | }, 1207 | "engines": { 1208 | "node": ">=8" 1209 | } 1210 | }, 1211 | "node_modules/supports-color": { 1212 | "version": "8.1.1", 1213 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", 1214 | "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", 1215 | "dev": true, 1216 | "dependencies": { 1217 | "has-flag": "^4.0.0" 1218 | }, 1219 | "engines": { 1220 | "node": ">=10" 1221 | }, 1222 | "funding": { 1223 | "url": "https://github.com/chalk/supports-color?sponsor=1" 1224 | } 1225 | }, 1226 | "node_modules/supports-hyperlinks": { 1227 | "version": "2.3.0", 1228 | "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz", 1229 | "integrity": "sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==", 1230 | "dev": true, 1231 | "dependencies": { 1232 | "has-flag": "^4.0.0", 1233 | "supports-color": "^7.0.0" 1234 | }, 1235 | "engines": { 1236 | "node": ">=8" 1237 | } 1238 | }, 1239 | "node_modules/supports-hyperlinks/node_modules/supports-color": { 1240 | "version": "7.2.0", 1241 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 1242 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 1243 | "dev": true, 1244 | "dependencies": { 1245 | "has-flag": "^4.0.0" 1246 | }, 1247 | "engines": { 1248 | "node": ">=8" 1249 | } 1250 | }, 1251 | "node_modules/tapable": { 1252 | "version": "2.2.1", 1253 | "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", 1254 | "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", 1255 | "dev": true, 1256 | "engines": { 1257 | "node": ">=6" 1258 | } 1259 | }, 1260 | "node_modules/to-regex-range": { 1261 | "version": "5.0.1", 1262 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 1263 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 1264 | "dev": true, 1265 | "dependencies": { 1266 | "is-number": "^7.0.0" 1267 | }, 1268 | "engines": { 1269 | "node": ">=8.0" 1270 | } 1271 | }, 1272 | "node_modules/ts-node": { 1273 | "version": "10.9.1", 1274 | "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", 1275 | "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", 1276 | "dev": true, 1277 | "dependencies": { 1278 | "@cspotcode/source-map-support": "^0.8.0", 1279 | "@tsconfig/node10": "^1.0.7", 1280 | "@tsconfig/node12": "^1.0.7", 1281 | "@tsconfig/node14": "^1.0.0", 1282 | "@tsconfig/node16": "^1.0.2", 1283 | "acorn": "^8.4.1", 1284 | "acorn-walk": "^8.1.1", 1285 | "arg": "^4.1.0", 1286 | "create-require": "^1.1.0", 1287 | "diff": "^4.0.1", 1288 | "make-error": "^1.1.1", 1289 | "v8-compile-cache-lib": "^3.0.1", 1290 | "yn": "3.1.1" 1291 | }, 1292 | "bin": { 1293 | "ts-node": "dist/bin.js", 1294 | "ts-node-cwd": "dist/bin-cwd.js", 1295 | "ts-node-esm": "dist/bin-esm.js", 1296 | "ts-node-script": "dist/bin-script.js", 1297 | "ts-node-transpile-only": "dist/bin-transpile.js", 1298 | "ts-script": "dist/bin-script-deprecated.js" 1299 | }, 1300 | "peerDependencies": { 1301 | "@swc/core": ">=1.2.50", 1302 | "@swc/wasm": ">=1.2.50", 1303 | "@types/node": "*", 1304 | "typescript": ">=2.7" 1305 | }, 1306 | "peerDependenciesMeta": { 1307 | "@swc/core": { 1308 | "optional": true 1309 | }, 1310 | "@swc/wasm": { 1311 | "optional": true 1312 | } 1313 | } 1314 | }, 1315 | "node_modules/tslib": { 1316 | "version": "2.5.2", 1317 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.2.tgz", 1318 | "integrity": "sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA==", 1319 | "dev": true 1320 | }, 1321 | "node_modules/type-fest": { 1322 | "version": "0.21.3", 1323 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", 1324 | "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", 1325 | "dev": true, 1326 | "engines": { 1327 | "node": ">=10" 1328 | }, 1329 | "funding": { 1330 | "url": "https://github.com/sponsors/sindresorhus" 1331 | } 1332 | }, 1333 | "node_modules/typescript": { 1334 | "version": "5.0.4", 1335 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz", 1336 | "integrity": "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==", 1337 | "dev": true, 1338 | "peer": true, 1339 | "bin": { 1340 | "tsc": "bin/tsc", 1341 | "tsserver": "bin/tsserver" 1342 | }, 1343 | "engines": { 1344 | "node": ">=12.20" 1345 | } 1346 | }, 1347 | "node_modules/universalify": { 1348 | "version": "2.0.0", 1349 | "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", 1350 | "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", 1351 | "dev": true, 1352 | "engines": { 1353 | "node": ">= 10.0.0" 1354 | } 1355 | }, 1356 | "node_modules/v8-compile-cache-lib": { 1357 | "version": "3.0.1", 1358 | "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", 1359 | "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", 1360 | "dev": true 1361 | }, 1362 | "node_modules/which": { 1363 | "version": "1.3.1", 1364 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", 1365 | "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", 1366 | "dev": true, 1367 | "dependencies": { 1368 | "isexe": "^2.0.0" 1369 | }, 1370 | "bin": { 1371 | "which": "bin/which" 1372 | } 1373 | }, 1374 | "node_modules/widest-line": { 1375 | "version": "3.1.0", 1376 | "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz", 1377 | "integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==", 1378 | "dev": true, 1379 | "dependencies": { 1380 | "string-width": "^4.0.0" 1381 | }, 1382 | "engines": { 1383 | "node": ">=8" 1384 | } 1385 | }, 1386 | "node_modules/wordwrap": { 1387 | "version": "1.0.0", 1388 | "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", 1389 | "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", 1390 | "dev": true 1391 | }, 1392 | "node_modules/wrap-ansi": { 1393 | "version": "7.0.0", 1394 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", 1395 | "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", 1396 | "dev": true, 1397 | "dependencies": { 1398 | "ansi-styles": "^4.0.0", 1399 | "string-width": "^4.1.0", 1400 | "strip-ansi": "^6.0.0" 1401 | }, 1402 | "engines": { 1403 | "node": ">=10" 1404 | }, 1405 | "funding": { 1406 | "url": "https://github.com/chalk/wrap-ansi?sponsor=1" 1407 | } 1408 | }, 1409 | "node_modules/yallist": { 1410 | "version": "4.0.0", 1411 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", 1412 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", 1413 | "dev": true 1414 | }, 1415 | "node_modules/yn": { 1416 | "version": "3.1.1", 1417 | "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", 1418 | "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", 1419 | "dev": true, 1420 | "engines": { 1421 | "node": ">=6" 1422 | } 1423 | } 1424 | } 1425 | } 1426 | -------------------------------------------------------------------------------- /examples/basic/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "basic", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "keywords": [], 10 | "author": "", 11 | "license": "ISC", 12 | "devDependencies": { 13 | "@unshopable/melter": "^0.1.0-alpha.32", 14 | "@unshopable/melter-cli": "^0.1.0-alpha.0" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /examples/basic/src/components/my-ui-snippet.liquid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unshopable/melter/4fdbdd2f9a6158fc996cac647c0b6e2d26afc650/examples/basic/src/components/my-ui-snippet.liquid -------------------------------------------------------------------------------- /examples/basic/src/sections/legacy/my-legacy-section.liquid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unshopable/melter/4fdbdd2f9a6158fc996cac647c0b6e2d26afc650/examples/basic/src/sections/legacy/my-legacy-section.liquid -------------------------------------------------------------------------------- /examples/basic/src/sections/my-section.liquid: -------------------------------------------------------------------------------- 1 |
Hello, World!
-------------------------------------------------------------------------------- /examples/basic/src/snippets/my-functional-snippet.liquid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unshopable/melter/4fdbdd2f9a6158fc996cac647c0b6e2d26afc650/examples/basic/src/snippets/my-functional-snippet.liquid -------------------------------------------------------------------------------- /examples/file-hierarchy/README.md: -------------------------------------------------------------------------------- 1 | # Melter File Hierarchy Example 2 | 3 | > **Info** 4 | > This is a proof of concept of a directory structure that mirrors Shopify's file hierarchy. 5 | 6 | ## Concept 7 | 8 | Shopify has a distinctive file file hierarchy: 9 | 10 | | | Name | Description | 11 | | --- | ------------- | -------------------------------------------------------------------------------- | 12 | | 1 | Layout | Used to place components that are shared across multiple templates. | 13 | | 2 | Template | Controls what's displayed on a specific page, for instance index, cart, product. | 14 | | 3 | Section Group | Groups multiple related sections. | 15 | | 4 | Section | Reusable and customizable component. | 16 | | 5 | Snippet | Reusable component. | 17 | 18 | Some notes: 19 | 20 | - Themes must have at least one layout ("theme") 21 | - Templates must be related to a layout 22 | - Section groups can not exist without sections 23 | - Sections can be placed anywhere but can also be restricted to certain templates and/or sections groups 24 | - Snippets don't have any regulations 25 | 26 | This is how Shopify's default directory structure looks like: 27 | 28 | ```diff 29 | . 30 | ├── assets 31 | ├── config 32 | ├── layout 33 | │ └── theme.liquid 34 | ├── locales 35 | ├── sections 36 | │ ├── announcement-bar.liquid 37 | │ └── site-header.liquid 38 | ├── snippets 39 | └── templates 40 | └── cart.json 41 | ``` 42 | 43 | Doesn't seem to mirror everything we learned about theme architecture, does it? Now let's take a look at this: 44 | 45 | ```diff 46 | . 47 | ├── assets 48 | ├── config 49 | - ├── layout 50 | - │ └── theme.liquid 51 | ├── locales 52 | ├── sections 53 | │ ├── announcement-bar.liquid 54 | │ ├── header-group.json 55 | │ └── site-header.liquid 56 | ├── snippets 57 | + └── storefront 58 | + ├── (theme) 59 | + │ └── cart 60 | + │ └── template.json 61 | + └── layout.liquid 62 | - └── templates 63 | - └── cart.json 64 | ``` 65 | 66 | We can go even further and incorporate section groups and section relations: 67 | 68 | ```diff 69 | . 70 | ├── assets 71 | ├── config 72 | ├── locales 73 | ├── sections 74 | + │ └── (header) 75 | + │ ├── announcement-bar.liquid 76 | + │ └── site-header.liquid 77 | - │ ├── announcement-bar.liquid 78 | - │ ├── header-group.json 79 | - │ └── site-header.liquid 80 | ├── snippets 81 | └── storefront 82 | ├── (theme) 83 | │ └── cart 84 | │ └── template.json 85 | └── layout.liquid 86 | ``` 87 | 88 | You could also implement something that updates the section group JSON based on which files you place where so certain sections are only available within its specific context. 89 | -------------------------------------------------------------------------------- /examples/file-hierarchy/file-hierarchy-plugin.js: -------------------------------------------------------------------------------- 1 | // DISCLAIMER 2 | // This plugin only handles the happy path and is not ready for production. 3 | 4 | const path = require('path'); 5 | const { Plugin } = require('@unshopable/melter'); 6 | 7 | const templatesMap = { 8 | cart: 'cart', 9 | password: 'password', 10 | 'products-[handle]': 'product', 11 | }; 12 | 13 | class FileHierarchyPlugin extends Plugin { 14 | apply(compiler) { 15 | compiler.hooks.emitter.tap('FileHierarchyPlugin', (emitter) => { 16 | emitter.hooks.beforeAssetAction.tap('FileHierarchyPlugin', (asset) => { 17 | const targetPath = this.getTargetPath(asset.source.relative); 18 | const assetTargetPath = this.resolveAssetTargetPath( 19 | compiler.cwd, 20 | compiler.config.output, 21 | targetPath, 22 | ); 23 | 24 | asset.target = assetTargetPath; 25 | }); 26 | }); 27 | } 28 | 29 | getTargetPath(sourcePath) { 30 | const sourcePathParts = sourcePath.split('/'); 31 | 32 | switch (sourcePathParts[1]) { 33 | case 'storefront': { 34 | return this.getTargetPathForStorefrontPath(sourcePathParts.slice(1)); 35 | } 36 | } 37 | } 38 | 39 | getTargetPathForStorefrontPath(pathParts) { 40 | switch (pathParts.at(-1)) { 41 | case 'layout.liquid': { 42 | const match = pathParts.at(-2).match(/\((.+)\)/); 43 | 44 | return `layout/${match[1]}.liquid`; 45 | } 46 | 47 | case 'template.json': { 48 | const templatePathParts = pathParts.slice(2, -1); 49 | const templateKey = templatePathParts.join('-'); 50 | 51 | return `templates/${templatesMap[templateKey]}.json`; 52 | } 53 | } 54 | } 55 | 56 | resolveAssetTargetPath(cwd, output, targetPath) { 57 | const relativeAssetTargetPath = path.resolve(output, targetPath); 58 | const absoluteAssetTargetPath = path.resolve(cwd, relativeAssetTargetPath); 59 | 60 | return { 61 | absolute: absoluteAssetTargetPath, 62 | relative: relativeAssetTargetPath, 63 | }; 64 | } 65 | } 66 | 67 | module.exports = FileHierarchyPlugin; 68 | -------------------------------------------------------------------------------- /examples/file-hierarchy/melter.config.js: -------------------------------------------------------------------------------- 1 | const FileHierarchyPlugin = require('./file-hierarchy-plugin.js'); 2 | 3 | /** @type {import("@unshopable/melter").MelterConfig} */ 4 | const melterConfig = { 5 | // Disable built-in PathsPlugin. 6 | paths: false, 7 | 8 | plugins: [new FileHierarchyPlugin()], 9 | }; 10 | 11 | module.exports = melterConfig; 12 | -------------------------------------------------------------------------------- /examples/file-hierarchy/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "basic", 3 | "version": "1.0.0", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "basic", 9 | "version": "1.0.0", 10 | "license": "ISC", 11 | "devDependencies": { 12 | "@unshopable/melter": "^0.1.0-alpha.32", 13 | "@unshopable/melter-cli": "^0.1.0-alpha.0" 14 | } 15 | }, 16 | "node_modules/@cspotcode/source-map-support": { 17 | "version": "0.8.1", 18 | "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", 19 | "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", 20 | "dev": true, 21 | "dependencies": { 22 | "@jridgewell/trace-mapping": "0.3.9" 23 | }, 24 | "engines": { 25 | "node": ">=12" 26 | } 27 | }, 28 | "node_modules/@jridgewell/resolve-uri": { 29 | "version": "3.1.1", 30 | "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", 31 | "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", 32 | "dev": true, 33 | "engines": { 34 | "node": ">=6.0.0" 35 | } 36 | }, 37 | "node_modules/@jridgewell/sourcemap-codec": { 38 | "version": "1.4.15", 39 | "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", 40 | "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", 41 | "dev": true 42 | }, 43 | "node_modules/@jridgewell/trace-mapping": { 44 | "version": "0.3.9", 45 | "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", 46 | "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", 47 | "dev": true, 48 | "dependencies": { 49 | "@jridgewell/resolve-uri": "^3.0.3", 50 | "@jridgewell/sourcemap-codec": "^1.4.10" 51 | } 52 | }, 53 | "node_modules/@nodelib/fs.scandir": { 54 | "version": "2.1.5", 55 | "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", 56 | "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", 57 | "dev": true, 58 | "dependencies": { 59 | "@nodelib/fs.stat": "2.0.5", 60 | "run-parallel": "^1.1.9" 61 | }, 62 | "engines": { 63 | "node": ">= 8" 64 | } 65 | }, 66 | "node_modules/@nodelib/fs.stat": { 67 | "version": "2.0.5", 68 | "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", 69 | "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", 70 | "dev": true, 71 | "engines": { 72 | "node": ">= 8" 73 | } 74 | }, 75 | "node_modules/@nodelib/fs.walk": { 76 | "version": "1.2.8", 77 | "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", 78 | "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", 79 | "dev": true, 80 | "dependencies": { 81 | "@nodelib/fs.scandir": "2.1.5", 82 | "fastq": "^1.6.0" 83 | }, 84 | "engines": { 85 | "node": ">= 8" 86 | } 87 | }, 88 | "node_modules/@oclif/core": { 89 | "version": "2.8.5", 90 | "resolved": "https://registry.npmjs.org/@oclif/core/-/core-2.8.5.tgz", 91 | "integrity": "sha512-316DLfrHQDYmWDriI4Woxk9y1wVUrPN1sZdbQLHdOdlTA9v/twe7TdHpWOriEypfl6C85NWEJKc1870yuLtjrQ==", 92 | "dev": true, 93 | "dependencies": { 94 | "@types/cli-progress": "^3.11.0", 95 | "ansi-escapes": "^4.3.2", 96 | "ansi-styles": "^4.3.0", 97 | "cardinal": "^2.1.1", 98 | "chalk": "^4.1.2", 99 | "clean-stack": "^3.0.1", 100 | "cli-progress": "^3.12.0", 101 | "debug": "^4.3.4", 102 | "ejs": "^3.1.8", 103 | "fs-extra": "^9.1.0", 104 | "get-package-type": "^0.1.0", 105 | "globby": "^11.1.0", 106 | "hyperlinker": "^1.0.0", 107 | "indent-string": "^4.0.0", 108 | "is-wsl": "^2.2.0", 109 | "js-yaml": "^3.14.1", 110 | "natural-orderby": "^2.0.3", 111 | "object-treeify": "^1.1.33", 112 | "password-prompt": "^1.1.2", 113 | "semver": "^7.3.7", 114 | "string-width": "^4.2.3", 115 | "strip-ansi": "^6.0.1", 116 | "supports-color": "^8.1.1", 117 | "supports-hyperlinks": "^2.2.0", 118 | "ts-node": "^10.9.1", 119 | "tslib": "^2.5.0", 120 | "widest-line": "^3.1.0", 121 | "wordwrap": "^1.0.0", 122 | "wrap-ansi": "^7.0.0" 123 | }, 124 | "engines": { 125 | "node": ">=14.0.0" 126 | } 127 | }, 128 | "node_modules/@oclif/core/node_modules/fs-extra": { 129 | "version": "9.1.0", 130 | "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", 131 | "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", 132 | "dev": true, 133 | "dependencies": { 134 | "at-least-node": "^1.0.0", 135 | "graceful-fs": "^4.2.0", 136 | "jsonfile": "^6.0.1", 137 | "universalify": "^2.0.0" 138 | }, 139 | "engines": { 140 | "node": ">=10" 141 | } 142 | }, 143 | "node_modules/@tsconfig/node10": { 144 | "version": "1.0.9", 145 | "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", 146 | "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", 147 | "dev": true 148 | }, 149 | "node_modules/@tsconfig/node12": { 150 | "version": "1.0.11", 151 | "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", 152 | "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", 153 | "dev": true 154 | }, 155 | "node_modules/@tsconfig/node14": { 156 | "version": "1.0.3", 157 | "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", 158 | "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", 159 | "dev": true 160 | }, 161 | "node_modules/@tsconfig/node16": { 162 | "version": "1.0.4", 163 | "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", 164 | "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", 165 | "dev": true 166 | }, 167 | "node_modules/@types/cli-progress": { 168 | "version": "3.11.0", 169 | "resolved": "https://registry.npmjs.org/@types/cli-progress/-/cli-progress-3.11.0.tgz", 170 | "integrity": "sha512-XhXhBv1R/q2ahF3BM7qT5HLzJNlIL0wbcGyZVjqOTqAybAnsLisd7gy1UCyIqpL+5Iv6XhlSyzjLCnI2sIdbCg==", 171 | "dev": true, 172 | "dependencies": { 173 | "@types/node": "*" 174 | } 175 | }, 176 | "node_modules/@types/node": { 177 | "version": "20.2.5", 178 | "resolved": "https://registry.npmjs.org/@types/node/-/node-20.2.5.tgz", 179 | "integrity": "sha512-JJulVEQXmiY9Px5axXHeYGLSjhkZEnD+MDPDGbCbIAbMslkKwmygtZFy1X6s/075Yo94sf8GuSlFfPzysQrWZQ==", 180 | "dev": true 181 | }, 182 | "node_modules/@unshopable/melter": { 183 | "version": "0.1.0-alpha.32", 184 | "resolved": "https://registry.npmjs.org/@unshopable/melter/-/melter-0.1.0-alpha.32.tgz", 185 | "integrity": "sha512-NQRMn58QE+5m49KzsEyYH8s+C/O+cNnEg+FUoDmLVzsyJAW17YV/D2MNE+KOWPwEziZerXHBRx7WsMpAsDf6uQ==", 186 | "dev": true, 187 | "dependencies": { 188 | "chokidar": "^3.5.3", 189 | "fast-glob": "^3.2.12", 190 | "fs-extra": "^11.1.1", 191 | "just-safe-get": "^4.2.0", 192 | "just-safe-set": "^4.2.1", 193 | "tapable": "^2.2.1" 194 | } 195 | }, 196 | "node_modules/@unshopable/melter-cli": { 197 | "version": "0.1.0-alpha.0", 198 | "resolved": "https://registry.npmjs.org/@unshopable/melter-cli/-/melter-cli-0.1.0-alpha.0.tgz", 199 | "integrity": "sha512-wYmwux4suPieLvPrd2445x7L/eTR+RzhM5e4N9Xbk7J2Q+qhxHRf5/zIEvDZTWywdQNKqWcP/MfcgsuGtkpqRw==", 200 | "dev": true, 201 | "dependencies": { 202 | "@oclif/core": "^2" 203 | }, 204 | "bin": { 205 | "melter": "bin/run" 206 | }, 207 | "engines": { 208 | "node": ">=12.0.0" 209 | }, 210 | "peerDependencies": { 211 | "@unshopable/melter": "^0.1.0-alpha.32" 212 | } 213 | }, 214 | "node_modules/acorn": { 215 | "version": "8.8.2", 216 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", 217 | "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", 218 | "dev": true, 219 | "bin": { 220 | "acorn": "bin/acorn" 221 | }, 222 | "engines": { 223 | "node": ">=0.4.0" 224 | } 225 | }, 226 | "node_modules/acorn-walk": { 227 | "version": "8.2.0", 228 | "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", 229 | "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", 230 | "dev": true, 231 | "engines": { 232 | "node": ">=0.4.0" 233 | } 234 | }, 235 | "node_modules/ansi-escapes": { 236 | "version": "4.3.2", 237 | "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", 238 | "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", 239 | "dev": true, 240 | "dependencies": { 241 | "type-fest": "^0.21.3" 242 | }, 243 | "engines": { 244 | "node": ">=8" 245 | }, 246 | "funding": { 247 | "url": "https://github.com/sponsors/sindresorhus" 248 | } 249 | }, 250 | "node_modules/ansi-regex": { 251 | "version": "5.0.1", 252 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 253 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 254 | "dev": true, 255 | "engines": { 256 | "node": ">=8" 257 | } 258 | }, 259 | "node_modules/ansi-styles": { 260 | "version": "4.3.0", 261 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 262 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 263 | "dev": true, 264 | "dependencies": { 265 | "color-convert": "^2.0.1" 266 | }, 267 | "engines": { 268 | "node": ">=8" 269 | }, 270 | "funding": { 271 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 272 | } 273 | }, 274 | "node_modules/ansicolors": { 275 | "version": "0.3.2", 276 | "resolved": "https://registry.npmjs.org/ansicolors/-/ansicolors-0.3.2.tgz", 277 | "integrity": "sha512-QXu7BPrP29VllRxH8GwB7x5iX5qWKAAMLqKQGWTeLWVlNHNOpVMJ91dsxQAIWXpjuW5wqvxu3Jd/nRjrJ+0pqg==", 278 | "dev": true 279 | }, 280 | "node_modules/anymatch": { 281 | "version": "3.1.3", 282 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", 283 | "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", 284 | "dev": true, 285 | "dependencies": { 286 | "normalize-path": "^3.0.0", 287 | "picomatch": "^2.0.4" 288 | }, 289 | "engines": { 290 | "node": ">= 8" 291 | } 292 | }, 293 | "node_modules/arg": { 294 | "version": "4.1.3", 295 | "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", 296 | "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", 297 | "dev": true 298 | }, 299 | "node_modules/argparse": { 300 | "version": "1.0.10", 301 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", 302 | "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", 303 | "dev": true, 304 | "dependencies": { 305 | "sprintf-js": "~1.0.2" 306 | } 307 | }, 308 | "node_modules/array-union": { 309 | "version": "2.1.0", 310 | "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", 311 | "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", 312 | "dev": true, 313 | "engines": { 314 | "node": ">=8" 315 | } 316 | }, 317 | "node_modules/async": { 318 | "version": "3.2.4", 319 | "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", 320 | "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==", 321 | "dev": true 322 | }, 323 | "node_modules/at-least-node": { 324 | "version": "1.0.0", 325 | "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", 326 | "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", 327 | "dev": true, 328 | "engines": { 329 | "node": ">= 4.0.0" 330 | } 331 | }, 332 | "node_modules/balanced-match": { 333 | "version": "1.0.2", 334 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 335 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 336 | "dev": true 337 | }, 338 | "node_modules/binary-extensions": { 339 | "version": "2.2.0", 340 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", 341 | "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", 342 | "dev": true, 343 | "engines": { 344 | "node": ">=8" 345 | } 346 | }, 347 | "node_modules/brace-expansion": { 348 | "version": "1.1.11", 349 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 350 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 351 | "dev": true, 352 | "dependencies": { 353 | "balanced-match": "^1.0.0", 354 | "concat-map": "0.0.1" 355 | } 356 | }, 357 | "node_modules/braces": { 358 | "version": "3.0.2", 359 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 360 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 361 | "dev": true, 362 | "dependencies": { 363 | "fill-range": "^7.0.1" 364 | }, 365 | "engines": { 366 | "node": ">=8" 367 | } 368 | }, 369 | "node_modules/cardinal": { 370 | "version": "2.1.1", 371 | "resolved": "https://registry.npmjs.org/cardinal/-/cardinal-2.1.1.tgz", 372 | "integrity": "sha512-JSr5eOgoEymtYHBjNWyjrMqet9Am2miJhlfKNdqLp6zoeAh0KN5dRAcxlecj5mAJrmQomgiOBj35xHLrFjqBpw==", 373 | "dev": true, 374 | "dependencies": { 375 | "ansicolors": "~0.3.2", 376 | "redeyed": "~2.1.0" 377 | }, 378 | "bin": { 379 | "cdl": "bin/cdl.js" 380 | } 381 | }, 382 | "node_modules/chalk": { 383 | "version": "4.1.2", 384 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", 385 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", 386 | "dev": true, 387 | "dependencies": { 388 | "ansi-styles": "^4.1.0", 389 | "supports-color": "^7.1.0" 390 | }, 391 | "engines": { 392 | "node": ">=10" 393 | }, 394 | "funding": { 395 | "url": "https://github.com/chalk/chalk?sponsor=1" 396 | } 397 | }, 398 | "node_modules/chalk/node_modules/supports-color": { 399 | "version": "7.2.0", 400 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 401 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 402 | "dev": true, 403 | "dependencies": { 404 | "has-flag": "^4.0.0" 405 | }, 406 | "engines": { 407 | "node": ">=8" 408 | } 409 | }, 410 | "node_modules/chokidar": { 411 | "version": "3.5.3", 412 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", 413 | "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", 414 | "dev": true, 415 | "funding": [ 416 | { 417 | "type": "individual", 418 | "url": "https://paulmillr.com/funding/" 419 | } 420 | ], 421 | "dependencies": { 422 | "anymatch": "~3.1.2", 423 | "braces": "~3.0.2", 424 | "glob-parent": "~5.1.2", 425 | "is-binary-path": "~2.1.0", 426 | "is-glob": "~4.0.1", 427 | "normalize-path": "~3.0.0", 428 | "readdirp": "~3.6.0" 429 | }, 430 | "engines": { 431 | "node": ">= 8.10.0" 432 | }, 433 | "optionalDependencies": { 434 | "fsevents": "~2.3.2" 435 | } 436 | }, 437 | "node_modules/clean-stack": { 438 | "version": "3.0.1", 439 | "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-3.0.1.tgz", 440 | "integrity": "sha512-lR9wNiMRcVQjSB3a7xXGLuz4cr4wJuuXlaAEbRutGowQTmlp7R72/DOgN21e8jdwblMWl9UOJMJXarX94pzKdg==", 441 | "dev": true, 442 | "dependencies": { 443 | "escape-string-regexp": "4.0.0" 444 | }, 445 | "engines": { 446 | "node": ">=10" 447 | }, 448 | "funding": { 449 | "url": "https://github.com/sponsors/sindresorhus" 450 | } 451 | }, 452 | "node_modules/cli-progress": { 453 | "version": "3.12.0", 454 | "resolved": "https://registry.npmjs.org/cli-progress/-/cli-progress-3.12.0.tgz", 455 | "integrity": "sha512-tRkV3HJ1ASwm19THiiLIXLO7Im7wlTuKnvkYaTkyoAPefqjNg7W7DHKUlGRxy9vxDvbyCYQkQozvptuMkGCg8A==", 456 | "dev": true, 457 | "dependencies": { 458 | "string-width": "^4.2.3" 459 | }, 460 | "engines": { 461 | "node": ">=4" 462 | } 463 | }, 464 | "node_modules/color-convert": { 465 | "version": "2.0.1", 466 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 467 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 468 | "dev": true, 469 | "dependencies": { 470 | "color-name": "~1.1.4" 471 | }, 472 | "engines": { 473 | "node": ">=7.0.0" 474 | } 475 | }, 476 | "node_modules/color-name": { 477 | "version": "1.1.4", 478 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 479 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 480 | "dev": true 481 | }, 482 | "node_modules/concat-map": { 483 | "version": "0.0.1", 484 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 485 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 486 | "dev": true 487 | }, 488 | "node_modules/create-require": { 489 | "version": "1.1.1", 490 | "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", 491 | "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", 492 | "dev": true 493 | }, 494 | "node_modules/cross-spawn": { 495 | "version": "6.0.5", 496 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", 497 | "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", 498 | "dev": true, 499 | "dependencies": { 500 | "nice-try": "^1.0.4", 501 | "path-key": "^2.0.1", 502 | "semver": "^5.5.0", 503 | "shebang-command": "^1.2.0", 504 | "which": "^1.2.9" 505 | }, 506 | "engines": { 507 | "node": ">=4.8" 508 | } 509 | }, 510 | "node_modules/cross-spawn/node_modules/semver": { 511 | "version": "5.7.1", 512 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", 513 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", 514 | "dev": true, 515 | "bin": { 516 | "semver": "bin/semver" 517 | } 518 | }, 519 | "node_modules/debug": { 520 | "version": "4.3.4", 521 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", 522 | "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", 523 | "dev": true, 524 | "dependencies": { 525 | "ms": "2.1.2" 526 | }, 527 | "engines": { 528 | "node": ">=6.0" 529 | }, 530 | "peerDependenciesMeta": { 531 | "supports-color": { 532 | "optional": true 533 | } 534 | } 535 | }, 536 | "node_modules/diff": { 537 | "version": "4.0.2", 538 | "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", 539 | "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", 540 | "dev": true, 541 | "engines": { 542 | "node": ">=0.3.1" 543 | } 544 | }, 545 | "node_modules/dir-glob": { 546 | "version": "3.0.1", 547 | "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", 548 | "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", 549 | "dev": true, 550 | "dependencies": { 551 | "path-type": "^4.0.0" 552 | }, 553 | "engines": { 554 | "node": ">=8" 555 | } 556 | }, 557 | "node_modules/ejs": { 558 | "version": "3.1.9", 559 | "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.9.tgz", 560 | "integrity": "sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ==", 561 | "dev": true, 562 | "dependencies": { 563 | "jake": "^10.8.5" 564 | }, 565 | "bin": { 566 | "ejs": "bin/cli.js" 567 | }, 568 | "engines": { 569 | "node": ">=0.10.0" 570 | } 571 | }, 572 | "node_modules/emoji-regex": { 573 | "version": "8.0.0", 574 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 575 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 576 | "dev": true 577 | }, 578 | "node_modules/escape-string-regexp": { 579 | "version": "4.0.0", 580 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", 581 | "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", 582 | "dev": true, 583 | "engines": { 584 | "node": ">=10" 585 | }, 586 | "funding": { 587 | "url": "https://github.com/sponsors/sindresorhus" 588 | } 589 | }, 590 | "node_modules/esprima": { 591 | "version": "4.0.1", 592 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", 593 | "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", 594 | "dev": true, 595 | "bin": { 596 | "esparse": "bin/esparse.js", 597 | "esvalidate": "bin/esvalidate.js" 598 | }, 599 | "engines": { 600 | "node": ">=4" 601 | } 602 | }, 603 | "node_modules/fast-glob": { 604 | "version": "3.2.12", 605 | "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", 606 | "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", 607 | "dev": true, 608 | "dependencies": { 609 | "@nodelib/fs.stat": "^2.0.2", 610 | "@nodelib/fs.walk": "^1.2.3", 611 | "glob-parent": "^5.1.2", 612 | "merge2": "^1.3.0", 613 | "micromatch": "^4.0.4" 614 | }, 615 | "engines": { 616 | "node": ">=8.6.0" 617 | } 618 | }, 619 | "node_modules/fastq": { 620 | "version": "1.15.0", 621 | "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", 622 | "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", 623 | "dev": true, 624 | "dependencies": { 625 | "reusify": "^1.0.4" 626 | } 627 | }, 628 | "node_modules/filelist": { 629 | "version": "1.0.4", 630 | "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", 631 | "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", 632 | "dev": true, 633 | "dependencies": { 634 | "minimatch": "^5.0.1" 635 | } 636 | }, 637 | "node_modules/filelist/node_modules/brace-expansion": { 638 | "version": "2.0.1", 639 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", 640 | "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", 641 | "dev": true, 642 | "dependencies": { 643 | "balanced-match": "^1.0.0" 644 | } 645 | }, 646 | "node_modules/filelist/node_modules/minimatch": { 647 | "version": "5.1.6", 648 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", 649 | "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", 650 | "dev": true, 651 | "dependencies": { 652 | "brace-expansion": "^2.0.1" 653 | }, 654 | "engines": { 655 | "node": ">=10" 656 | } 657 | }, 658 | "node_modules/fill-range": { 659 | "version": "7.0.1", 660 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 661 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 662 | "dev": true, 663 | "dependencies": { 664 | "to-regex-range": "^5.0.1" 665 | }, 666 | "engines": { 667 | "node": ">=8" 668 | } 669 | }, 670 | "node_modules/fs-extra": { 671 | "version": "11.1.1", 672 | "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.1.tgz", 673 | "integrity": "sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==", 674 | "dev": true, 675 | "dependencies": { 676 | "graceful-fs": "^4.2.0", 677 | "jsonfile": "^6.0.1", 678 | "universalify": "^2.0.0" 679 | }, 680 | "engines": { 681 | "node": ">=14.14" 682 | } 683 | }, 684 | "node_modules/fsevents": { 685 | "version": "2.3.2", 686 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", 687 | "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", 688 | "dev": true, 689 | "hasInstallScript": true, 690 | "optional": true, 691 | "os": [ 692 | "darwin" 693 | ], 694 | "engines": { 695 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 696 | } 697 | }, 698 | "node_modules/get-package-type": { 699 | "version": "0.1.0", 700 | "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", 701 | "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", 702 | "dev": true, 703 | "engines": { 704 | "node": ">=8.0.0" 705 | } 706 | }, 707 | "node_modules/glob-parent": { 708 | "version": "5.1.2", 709 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 710 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 711 | "dev": true, 712 | "dependencies": { 713 | "is-glob": "^4.0.1" 714 | }, 715 | "engines": { 716 | "node": ">= 6" 717 | } 718 | }, 719 | "node_modules/globby": { 720 | "version": "11.1.0", 721 | "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", 722 | "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", 723 | "dev": true, 724 | "dependencies": { 725 | "array-union": "^2.1.0", 726 | "dir-glob": "^3.0.1", 727 | "fast-glob": "^3.2.9", 728 | "ignore": "^5.2.0", 729 | "merge2": "^1.4.1", 730 | "slash": "^3.0.0" 731 | }, 732 | "engines": { 733 | "node": ">=10" 734 | }, 735 | "funding": { 736 | "url": "https://github.com/sponsors/sindresorhus" 737 | } 738 | }, 739 | "node_modules/graceful-fs": { 740 | "version": "4.2.11", 741 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", 742 | "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", 743 | "dev": true 744 | }, 745 | "node_modules/has-flag": { 746 | "version": "4.0.0", 747 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 748 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 749 | "dev": true, 750 | "engines": { 751 | "node": ">=8" 752 | } 753 | }, 754 | "node_modules/hyperlinker": { 755 | "version": "1.0.0", 756 | "resolved": "https://registry.npmjs.org/hyperlinker/-/hyperlinker-1.0.0.tgz", 757 | "integrity": "sha512-Ty8UblRWFEcfSuIaajM34LdPXIhbs1ajEX/BBPv24J+enSVaEVY63xQ6lTO9VRYS5LAoghIG0IDJ+p+IPzKUQQ==", 758 | "dev": true, 759 | "engines": { 760 | "node": ">=4" 761 | } 762 | }, 763 | "node_modules/ignore": { 764 | "version": "5.2.4", 765 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", 766 | "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", 767 | "dev": true, 768 | "engines": { 769 | "node": ">= 4" 770 | } 771 | }, 772 | "node_modules/indent-string": { 773 | "version": "4.0.0", 774 | "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", 775 | "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", 776 | "dev": true, 777 | "engines": { 778 | "node": ">=8" 779 | } 780 | }, 781 | "node_modules/is-binary-path": { 782 | "version": "2.1.0", 783 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 784 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 785 | "dev": true, 786 | "dependencies": { 787 | "binary-extensions": "^2.0.0" 788 | }, 789 | "engines": { 790 | "node": ">=8" 791 | } 792 | }, 793 | "node_modules/is-docker": { 794 | "version": "2.2.1", 795 | "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", 796 | "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", 797 | "dev": true, 798 | "bin": { 799 | "is-docker": "cli.js" 800 | }, 801 | "engines": { 802 | "node": ">=8" 803 | }, 804 | "funding": { 805 | "url": "https://github.com/sponsors/sindresorhus" 806 | } 807 | }, 808 | "node_modules/is-extglob": { 809 | "version": "2.1.1", 810 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 811 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 812 | "dev": true, 813 | "engines": { 814 | "node": ">=0.10.0" 815 | } 816 | }, 817 | "node_modules/is-fullwidth-code-point": { 818 | "version": "3.0.0", 819 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 820 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", 821 | "dev": true, 822 | "engines": { 823 | "node": ">=8" 824 | } 825 | }, 826 | "node_modules/is-glob": { 827 | "version": "4.0.3", 828 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 829 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 830 | "dev": true, 831 | "dependencies": { 832 | "is-extglob": "^2.1.1" 833 | }, 834 | "engines": { 835 | "node": ">=0.10.0" 836 | } 837 | }, 838 | "node_modules/is-number": { 839 | "version": "7.0.0", 840 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 841 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 842 | "dev": true, 843 | "engines": { 844 | "node": ">=0.12.0" 845 | } 846 | }, 847 | "node_modules/is-wsl": { 848 | "version": "2.2.0", 849 | "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", 850 | "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", 851 | "dev": true, 852 | "dependencies": { 853 | "is-docker": "^2.0.0" 854 | }, 855 | "engines": { 856 | "node": ">=8" 857 | } 858 | }, 859 | "node_modules/isexe": { 860 | "version": "2.0.0", 861 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 862 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", 863 | "dev": true 864 | }, 865 | "node_modules/jake": { 866 | "version": "10.8.7", 867 | "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.7.tgz", 868 | "integrity": "sha512-ZDi3aP+fG/LchyBzUM804VjddnwfSfsdeYkwt8NcbKRvo4rFkjhs456iLFn3k2ZUWvNe4i48WACDbza8fhq2+w==", 869 | "dev": true, 870 | "dependencies": { 871 | "async": "^3.2.3", 872 | "chalk": "^4.0.2", 873 | "filelist": "^1.0.4", 874 | "minimatch": "^3.1.2" 875 | }, 876 | "bin": { 877 | "jake": "bin/cli.js" 878 | }, 879 | "engines": { 880 | "node": ">=10" 881 | } 882 | }, 883 | "node_modules/js-yaml": { 884 | "version": "3.14.1", 885 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", 886 | "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", 887 | "dev": true, 888 | "dependencies": { 889 | "argparse": "^1.0.7", 890 | "esprima": "^4.0.0" 891 | }, 892 | "bin": { 893 | "js-yaml": "bin/js-yaml.js" 894 | } 895 | }, 896 | "node_modules/jsonfile": { 897 | "version": "6.1.0", 898 | "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", 899 | "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", 900 | "dev": true, 901 | "dependencies": { 902 | "universalify": "^2.0.0" 903 | }, 904 | "optionalDependencies": { 905 | "graceful-fs": "^4.1.6" 906 | } 907 | }, 908 | "node_modules/just-safe-get": { 909 | "version": "4.2.0", 910 | "resolved": "https://registry.npmjs.org/just-safe-get/-/just-safe-get-4.2.0.tgz", 911 | "integrity": "sha512-+tS4Bvgr/FnmYxOGbwziJ8I2BFk+cP1gQHm6rm7zo61w1SbxBwWGEq/Ryy9Gb6bvnloPq6pz7Bmm4a0rjTNlXA==", 912 | "dev": true 913 | }, 914 | "node_modules/just-safe-set": { 915 | "version": "4.2.1", 916 | "resolved": "https://registry.npmjs.org/just-safe-set/-/just-safe-set-4.2.1.tgz", 917 | "integrity": "sha512-La5CP41Ycv52+E4g7w1sRV8XXk7Sp8a/TwWQAYQKn6RsQz1FD4Z/rDRRmqV3wJznS1MDF3YxK7BCudX1J8FxLg==", 918 | "dev": true 919 | }, 920 | "node_modules/lru-cache": { 921 | "version": "6.0.0", 922 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", 923 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", 924 | "dev": true, 925 | "dependencies": { 926 | "yallist": "^4.0.0" 927 | }, 928 | "engines": { 929 | "node": ">=10" 930 | } 931 | }, 932 | "node_modules/make-error": { 933 | "version": "1.3.6", 934 | "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", 935 | "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", 936 | "dev": true 937 | }, 938 | "node_modules/merge2": { 939 | "version": "1.4.1", 940 | "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", 941 | "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", 942 | "dev": true, 943 | "engines": { 944 | "node": ">= 8" 945 | } 946 | }, 947 | "node_modules/micromatch": { 948 | "version": "4.0.5", 949 | "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", 950 | "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", 951 | "dev": true, 952 | "dependencies": { 953 | "braces": "^3.0.2", 954 | "picomatch": "^2.3.1" 955 | }, 956 | "engines": { 957 | "node": ">=8.6" 958 | } 959 | }, 960 | "node_modules/minimatch": { 961 | "version": "3.1.2", 962 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 963 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 964 | "dev": true, 965 | "dependencies": { 966 | "brace-expansion": "^1.1.7" 967 | }, 968 | "engines": { 969 | "node": "*" 970 | } 971 | }, 972 | "node_modules/ms": { 973 | "version": "2.1.2", 974 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 975 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 976 | "dev": true 977 | }, 978 | "node_modules/natural-orderby": { 979 | "version": "2.0.3", 980 | "resolved": "https://registry.npmjs.org/natural-orderby/-/natural-orderby-2.0.3.tgz", 981 | "integrity": "sha512-p7KTHxU0CUrcOXe62Zfrb5Z13nLvPhSWR/so3kFulUQU0sgUll2Z0LwpsLN351eOOD+hRGu/F1g+6xDfPeD++Q==", 982 | "dev": true, 983 | "engines": { 984 | "node": "*" 985 | } 986 | }, 987 | "node_modules/nice-try": { 988 | "version": "1.0.5", 989 | "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", 990 | "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", 991 | "dev": true 992 | }, 993 | "node_modules/normalize-path": { 994 | "version": "3.0.0", 995 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 996 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 997 | "dev": true, 998 | "engines": { 999 | "node": ">=0.10.0" 1000 | } 1001 | }, 1002 | "node_modules/object-treeify": { 1003 | "version": "1.1.33", 1004 | "resolved": "https://registry.npmjs.org/object-treeify/-/object-treeify-1.1.33.tgz", 1005 | "integrity": "sha512-EFVjAYfzWqWsBMRHPMAXLCDIJnpMhdWAqR7xG6M6a2cs6PMFpl/+Z20w9zDW4vkxOFfddegBKq9Rehd0bxWE7A==", 1006 | "dev": true, 1007 | "engines": { 1008 | "node": ">= 10" 1009 | } 1010 | }, 1011 | "node_modules/password-prompt": { 1012 | "version": "1.1.2", 1013 | "resolved": "https://registry.npmjs.org/password-prompt/-/password-prompt-1.1.2.tgz", 1014 | "integrity": "sha512-bpuBhROdrhuN3E7G/koAju0WjVw9/uQOG5Co5mokNj0MiOSBVZS1JTwM4zl55hu0WFmIEFvO9cU9sJQiBIYeIA==", 1015 | "dev": true, 1016 | "dependencies": { 1017 | "ansi-escapes": "^3.1.0", 1018 | "cross-spawn": "^6.0.5" 1019 | } 1020 | }, 1021 | "node_modules/password-prompt/node_modules/ansi-escapes": { 1022 | "version": "3.2.0", 1023 | "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz", 1024 | "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==", 1025 | "dev": true, 1026 | "engines": { 1027 | "node": ">=4" 1028 | } 1029 | }, 1030 | "node_modules/path-key": { 1031 | "version": "2.0.1", 1032 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", 1033 | "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", 1034 | "dev": true, 1035 | "engines": { 1036 | "node": ">=4" 1037 | } 1038 | }, 1039 | "node_modules/path-type": { 1040 | "version": "4.0.0", 1041 | "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", 1042 | "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", 1043 | "dev": true, 1044 | "engines": { 1045 | "node": ">=8" 1046 | } 1047 | }, 1048 | "node_modules/picomatch": { 1049 | "version": "2.3.1", 1050 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 1051 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 1052 | "dev": true, 1053 | "engines": { 1054 | "node": ">=8.6" 1055 | }, 1056 | "funding": { 1057 | "url": "https://github.com/sponsors/jonschlinkert" 1058 | } 1059 | }, 1060 | "node_modules/queue-microtask": { 1061 | "version": "1.2.3", 1062 | "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", 1063 | "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", 1064 | "dev": true, 1065 | "funding": [ 1066 | { 1067 | "type": "github", 1068 | "url": "https://github.com/sponsors/feross" 1069 | }, 1070 | { 1071 | "type": "patreon", 1072 | "url": "https://www.patreon.com/feross" 1073 | }, 1074 | { 1075 | "type": "consulting", 1076 | "url": "https://feross.org/support" 1077 | } 1078 | ] 1079 | }, 1080 | "node_modules/readdirp": { 1081 | "version": "3.6.0", 1082 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", 1083 | "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", 1084 | "dev": true, 1085 | "dependencies": { 1086 | "picomatch": "^2.2.1" 1087 | }, 1088 | "engines": { 1089 | "node": ">=8.10.0" 1090 | } 1091 | }, 1092 | "node_modules/redeyed": { 1093 | "version": "2.1.1", 1094 | "resolved": "https://registry.npmjs.org/redeyed/-/redeyed-2.1.1.tgz", 1095 | "integrity": "sha512-FNpGGo1DycYAdnrKFxCMmKYgo/mILAqtRYbkdQD8Ep/Hk2PQ5+aEAEx+IU713RTDmuBaH0c8P5ZozurNu5ObRQ==", 1096 | "dev": true, 1097 | "dependencies": { 1098 | "esprima": "~4.0.0" 1099 | } 1100 | }, 1101 | "node_modules/reusify": { 1102 | "version": "1.0.4", 1103 | "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", 1104 | "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", 1105 | "dev": true, 1106 | "engines": { 1107 | "iojs": ">=1.0.0", 1108 | "node": ">=0.10.0" 1109 | } 1110 | }, 1111 | "node_modules/run-parallel": { 1112 | "version": "1.2.0", 1113 | "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", 1114 | "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", 1115 | "dev": true, 1116 | "funding": [ 1117 | { 1118 | "type": "github", 1119 | "url": "https://github.com/sponsors/feross" 1120 | }, 1121 | { 1122 | "type": "patreon", 1123 | "url": "https://www.patreon.com/feross" 1124 | }, 1125 | { 1126 | "type": "consulting", 1127 | "url": "https://feross.org/support" 1128 | } 1129 | ], 1130 | "dependencies": { 1131 | "queue-microtask": "^1.2.2" 1132 | } 1133 | }, 1134 | "node_modules/semver": { 1135 | "version": "7.5.1", 1136 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", 1137 | "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", 1138 | "dev": true, 1139 | "dependencies": { 1140 | "lru-cache": "^6.0.0" 1141 | }, 1142 | "bin": { 1143 | "semver": "bin/semver.js" 1144 | }, 1145 | "engines": { 1146 | "node": ">=10" 1147 | } 1148 | }, 1149 | "node_modules/shebang-command": { 1150 | "version": "1.2.0", 1151 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", 1152 | "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", 1153 | "dev": true, 1154 | "dependencies": { 1155 | "shebang-regex": "^1.0.0" 1156 | }, 1157 | "engines": { 1158 | "node": ">=0.10.0" 1159 | } 1160 | }, 1161 | "node_modules/shebang-regex": { 1162 | "version": "1.0.0", 1163 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", 1164 | "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", 1165 | "dev": true, 1166 | "engines": { 1167 | "node": ">=0.10.0" 1168 | } 1169 | }, 1170 | "node_modules/slash": { 1171 | "version": "3.0.0", 1172 | "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", 1173 | "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", 1174 | "dev": true, 1175 | "engines": { 1176 | "node": ">=8" 1177 | } 1178 | }, 1179 | "node_modules/sprintf-js": { 1180 | "version": "1.0.3", 1181 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", 1182 | "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", 1183 | "dev": true 1184 | }, 1185 | "node_modules/string-width": { 1186 | "version": "4.2.3", 1187 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 1188 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 1189 | "dev": true, 1190 | "dependencies": { 1191 | "emoji-regex": "^8.0.0", 1192 | "is-fullwidth-code-point": "^3.0.0", 1193 | "strip-ansi": "^6.0.1" 1194 | }, 1195 | "engines": { 1196 | "node": ">=8" 1197 | } 1198 | }, 1199 | "node_modules/strip-ansi": { 1200 | "version": "6.0.1", 1201 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 1202 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 1203 | "dev": true, 1204 | "dependencies": { 1205 | "ansi-regex": "^5.0.1" 1206 | }, 1207 | "engines": { 1208 | "node": ">=8" 1209 | } 1210 | }, 1211 | "node_modules/supports-color": { 1212 | "version": "8.1.1", 1213 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", 1214 | "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", 1215 | "dev": true, 1216 | "dependencies": { 1217 | "has-flag": "^4.0.0" 1218 | }, 1219 | "engines": { 1220 | "node": ">=10" 1221 | }, 1222 | "funding": { 1223 | "url": "https://github.com/chalk/supports-color?sponsor=1" 1224 | } 1225 | }, 1226 | "node_modules/supports-hyperlinks": { 1227 | "version": "2.3.0", 1228 | "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz", 1229 | "integrity": "sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==", 1230 | "dev": true, 1231 | "dependencies": { 1232 | "has-flag": "^4.0.0", 1233 | "supports-color": "^7.0.0" 1234 | }, 1235 | "engines": { 1236 | "node": ">=8" 1237 | } 1238 | }, 1239 | "node_modules/supports-hyperlinks/node_modules/supports-color": { 1240 | "version": "7.2.0", 1241 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 1242 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 1243 | "dev": true, 1244 | "dependencies": { 1245 | "has-flag": "^4.0.0" 1246 | }, 1247 | "engines": { 1248 | "node": ">=8" 1249 | } 1250 | }, 1251 | "node_modules/tapable": { 1252 | "version": "2.2.1", 1253 | "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", 1254 | "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", 1255 | "dev": true, 1256 | "engines": { 1257 | "node": ">=6" 1258 | } 1259 | }, 1260 | "node_modules/to-regex-range": { 1261 | "version": "5.0.1", 1262 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 1263 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 1264 | "dev": true, 1265 | "dependencies": { 1266 | "is-number": "^7.0.0" 1267 | }, 1268 | "engines": { 1269 | "node": ">=8.0" 1270 | } 1271 | }, 1272 | "node_modules/ts-node": { 1273 | "version": "10.9.1", 1274 | "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", 1275 | "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", 1276 | "dev": true, 1277 | "dependencies": { 1278 | "@cspotcode/source-map-support": "^0.8.0", 1279 | "@tsconfig/node10": "^1.0.7", 1280 | "@tsconfig/node12": "^1.0.7", 1281 | "@tsconfig/node14": "^1.0.0", 1282 | "@tsconfig/node16": "^1.0.2", 1283 | "acorn": "^8.4.1", 1284 | "acorn-walk": "^8.1.1", 1285 | "arg": "^4.1.0", 1286 | "create-require": "^1.1.0", 1287 | "diff": "^4.0.1", 1288 | "make-error": "^1.1.1", 1289 | "v8-compile-cache-lib": "^3.0.1", 1290 | "yn": "3.1.1" 1291 | }, 1292 | "bin": { 1293 | "ts-node": "dist/bin.js", 1294 | "ts-node-cwd": "dist/bin-cwd.js", 1295 | "ts-node-esm": "dist/bin-esm.js", 1296 | "ts-node-script": "dist/bin-script.js", 1297 | "ts-node-transpile-only": "dist/bin-transpile.js", 1298 | "ts-script": "dist/bin-script-deprecated.js" 1299 | }, 1300 | "peerDependencies": { 1301 | "@swc/core": ">=1.2.50", 1302 | "@swc/wasm": ">=1.2.50", 1303 | "@types/node": "*", 1304 | "typescript": ">=2.7" 1305 | }, 1306 | "peerDependenciesMeta": { 1307 | "@swc/core": { 1308 | "optional": true 1309 | }, 1310 | "@swc/wasm": { 1311 | "optional": true 1312 | } 1313 | } 1314 | }, 1315 | "node_modules/tslib": { 1316 | "version": "2.5.2", 1317 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.2.tgz", 1318 | "integrity": "sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA==", 1319 | "dev": true 1320 | }, 1321 | "node_modules/type-fest": { 1322 | "version": "0.21.3", 1323 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", 1324 | "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", 1325 | "dev": true, 1326 | "engines": { 1327 | "node": ">=10" 1328 | }, 1329 | "funding": { 1330 | "url": "https://github.com/sponsors/sindresorhus" 1331 | } 1332 | }, 1333 | "node_modules/typescript": { 1334 | "version": "5.0.4", 1335 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz", 1336 | "integrity": "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==", 1337 | "dev": true, 1338 | "peer": true, 1339 | "bin": { 1340 | "tsc": "bin/tsc", 1341 | "tsserver": "bin/tsserver" 1342 | }, 1343 | "engines": { 1344 | "node": ">=12.20" 1345 | } 1346 | }, 1347 | "node_modules/universalify": { 1348 | "version": "2.0.0", 1349 | "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", 1350 | "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", 1351 | "dev": true, 1352 | "engines": { 1353 | "node": ">= 10.0.0" 1354 | } 1355 | }, 1356 | "node_modules/v8-compile-cache-lib": { 1357 | "version": "3.0.1", 1358 | "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", 1359 | "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", 1360 | "dev": true 1361 | }, 1362 | "node_modules/which": { 1363 | "version": "1.3.1", 1364 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", 1365 | "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", 1366 | "dev": true, 1367 | "dependencies": { 1368 | "isexe": "^2.0.0" 1369 | }, 1370 | "bin": { 1371 | "which": "bin/which" 1372 | } 1373 | }, 1374 | "node_modules/widest-line": { 1375 | "version": "3.1.0", 1376 | "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz", 1377 | "integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==", 1378 | "dev": true, 1379 | "dependencies": { 1380 | "string-width": "^4.0.0" 1381 | }, 1382 | "engines": { 1383 | "node": ">=8" 1384 | } 1385 | }, 1386 | "node_modules/wordwrap": { 1387 | "version": "1.0.0", 1388 | "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", 1389 | "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", 1390 | "dev": true 1391 | }, 1392 | "node_modules/wrap-ansi": { 1393 | "version": "7.0.0", 1394 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", 1395 | "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", 1396 | "dev": true, 1397 | "dependencies": { 1398 | "ansi-styles": "^4.0.0", 1399 | "string-width": "^4.1.0", 1400 | "strip-ansi": "^6.0.0" 1401 | }, 1402 | "engines": { 1403 | "node": ">=10" 1404 | }, 1405 | "funding": { 1406 | "url": "https://github.com/chalk/wrap-ansi?sponsor=1" 1407 | } 1408 | }, 1409 | "node_modules/yallist": { 1410 | "version": "4.0.0", 1411 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", 1412 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", 1413 | "dev": true 1414 | }, 1415 | "node_modules/yn": { 1416 | "version": "3.1.1", 1417 | "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", 1418 | "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", 1419 | "dev": true, 1420 | "engines": { 1421 | "node": ">=6" 1422 | } 1423 | } 1424 | } 1425 | } 1426 | -------------------------------------------------------------------------------- /examples/file-hierarchy/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "basic", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "keywords": [], 10 | "author": "", 11 | "license": "ISC", 12 | "devDependencies": { 13 | "@unshopable/melter": "^0.1.0-alpha.32", 14 | "@unshopable/melter-cli": "^0.1.0-alpha.0" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /examples/file-hierarchy/src/storefront/(password)/layout.liquid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unshopable/melter/4fdbdd2f9a6158fc996cac647c0b6e2d26afc650/examples/file-hierarchy/src/storefront/(password)/layout.liquid -------------------------------------------------------------------------------- /examples/file-hierarchy/src/storefront/(password)/password/template.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unshopable/melter/4fdbdd2f9a6158fc996cac647c0b6e2d26afc650/examples/file-hierarchy/src/storefront/(password)/password/template.json -------------------------------------------------------------------------------- /examples/file-hierarchy/src/storefront/(theme)/cart/template.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unshopable/melter/4fdbdd2f9a6158fc996cac647c0b6e2d26afc650/examples/file-hierarchy/src/storefront/(theme)/cart/template.json -------------------------------------------------------------------------------- /examples/file-hierarchy/src/storefront/(theme)/layout.liquid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unshopable/melter/4fdbdd2f9a6158fc996cac647c0b6e2d26afc650/examples/file-hierarchy/src/storefront/(theme)/layout.liquid -------------------------------------------------------------------------------- /examples/file-hierarchy/src/storefront/(theme)/products/[handle]/template.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unshopable/melter/4fdbdd2f9a6158fc996cac647c0b6e2d26afc650/examples/file-hierarchy/src/storefront/(theme)/products/[handle]/template.json -------------------------------------------------------------------------------- /examples/liquidx/.gitignore: -------------------------------------------------------------------------------- 1 | # Dependencies 2 | node_modules/ 3 | 4 | # Secrets 5 | shopify.theme.toml 6 | 7 | # Build 8 | dist/ 9 | -------------------------------------------------------------------------------- /examples/liquidx/README.md: -------------------------------------------------------------------------------- 1 | # LiquidX Full Example 2 | 3 | ## Getting started 4 | 5 | First, install all dependencies by running: 6 | 7 | ```sh 8 | $ npm install 9 | ``` 10 | 11 | Next, copy `shopify.theme.toml.example`, rename it to `shopify.theme.toml`, and update its placeholder contents: 12 | 13 | ```diff 14 | [environments.development] 15 | - store = "" 16 | - password = "" 17 | + store = "my-store-handle" 18 | + password = "shptka_123" 19 | path = "dist" 20 | ``` 21 | 22 | Now run: 23 | 24 | ```sh 25 | $ npm run dev 26 | ``` 27 | 28 | Finally, open `src/layout.theme.liquid` and update its content: 29 | 30 | ```diff 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | {{ page_title }} 40 | 41 | {{ content_for_header }} 42 | 43 | 44 | 45 | - 46 | + World 47 | 48 |
49 | {{ content_for_layout }} 50 |
51 | 52 | 53 | ``` 54 | -------------------------------------------------------------------------------- /examples/liquidx/melter.config.js: -------------------------------------------------------------------------------- 1 | const { LiquidXPlugin } = require('@unshopable/melter-plugin-liquidx'); 2 | 3 | /** @type {import("@unshopable/melter").MelterConfig} */ 4 | const melterConfig = { 5 | paths: { 6 | snippets: [/components\/.*\.liquid$/, /snippets\/[^\/]*\.liquid$/], 7 | }, 8 | 9 | plugins: [new LiquidXPlugin()], 10 | }; 11 | 12 | module.exports = melterConfig; 13 | -------------------------------------------------------------------------------- /examples/liquidx/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "liquidx", 3 | "version": "1.0.0", 4 | "description": "", 5 | "author": "", 6 | "keywords": [], 7 | "license": "ISC", 8 | "main": "index.js", 9 | "scripts": { 10 | "shopify:dev": "shopify theme dev -e development", 11 | "melter:dev": "melter --watch", 12 | "melter:build": "melter", 13 | "dev": "npm-run-all melter:build -p melter:dev shopify:dev" 14 | }, 15 | "devDependencies": { 16 | "@shopify/cli": "^3.46.5", 17 | "@shopify/theme": "^3.46.5", 18 | "@unshopable/melter": "^0.1.0-alpha.34", 19 | "@unshopable/melter-cli": "^0.1.0-alpha.1", 20 | "@unshopable/melter-plugin-liquidx": "^0.1.0-alpha.2", 21 | "npm-run-all": "^4.1.5" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /examples/liquidx/shopify.theme.toml.example: -------------------------------------------------------------------------------- 1 | [environments.development] 2 | store = "" 3 | password = "" 4 | path = "dist" 5 | -------------------------------------------------------------------------------- /examples/liquidx/src/components/Hello/Hello.liquid: -------------------------------------------------------------------------------- 1 | {%- if children -%} 2 |

Hello, {{ children }}!

3 | {%- else -%} 4 |

Hello there!

5 | {%- endif -%} 6 | -------------------------------------------------------------------------------- /examples/liquidx/src/config/settings_schema.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "theme_info", 4 | "theme_name": "liquidx", 5 | "theme_version": "1.0.0", 6 | "theme_author": "unshopable", 7 | "theme_documentation_url": "https://github.com/unshopable/liquidx", 8 | "theme_support_url": "https://github.com/unshopable/liquidx/issues" 9 | } 10 | ] 11 | -------------------------------------------------------------------------------- /examples/liquidx/src/layout/gift_card.liquid: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | {{ page_title }} 10 | 11 | {{ content_for_header }} 12 | 13 | 14 | 15 |
16 | {{ content_for_layout }} 17 |
18 | 19 | 20 | -------------------------------------------------------------------------------- /examples/liquidx/src/layout/theme.liquid: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | {{ page_title }} 10 | 11 | {{ content_for_header }} 12 | 13 | 14 | 15 | World 16 | 17 |
18 | {{ content_for_layout }} 19 |
20 | 21 | 22 | -------------------------------------------------------------------------------- /examples/liquidx/src/locales/en.default.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /examples/liquidx/src/sections/404-main.liquid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unshopable/melter/4fdbdd2f9a6158fc996cac647c0b6e2d26afc650/examples/liquidx/src/sections/404-main.liquid -------------------------------------------------------------------------------- /examples/liquidx/src/sections/account-activate-main.liquid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unshopable/melter/4fdbdd2f9a6158fc996cac647c0b6e2d26afc650/examples/liquidx/src/sections/account-activate-main.liquid -------------------------------------------------------------------------------- /examples/liquidx/src/sections/account-addresses-main.liquid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unshopable/melter/4fdbdd2f9a6158fc996cac647c0b6e2d26afc650/examples/liquidx/src/sections/account-addresses-main.liquid -------------------------------------------------------------------------------- /examples/liquidx/src/sections/account-index-main.liquid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unshopable/melter/4fdbdd2f9a6158fc996cac647c0b6e2d26afc650/examples/liquidx/src/sections/account-index-main.liquid -------------------------------------------------------------------------------- /examples/liquidx/src/sections/account-login-main.liquid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unshopable/melter/4fdbdd2f9a6158fc996cac647c0b6e2d26afc650/examples/liquidx/src/sections/account-login-main.liquid -------------------------------------------------------------------------------- /examples/liquidx/src/sections/account-order-main.liquid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unshopable/melter/4fdbdd2f9a6158fc996cac647c0b6e2d26afc650/examples/liquidx/src/sections/account-order-main.liquid -------------------------------------------------------------------------------- /examples/liquidx/src/sections/account-register-main.liquid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unshopable/melter/4fdbdd2f9a6158fc996cac647c0b6e2d26afc650/examples/liquidx/src/sections/account-register-main.liquid -------------------------------------------------------------------------------- /examples/liquidx/src/sections/account-reset-main.liquid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unshopable/melter/4fdbdd2f9a6158fc996cac647c0b6e2d26afc650/examples/liquidx/src/sections/account-reset-main.liquid -------------------------------------------------------------------------------- /examples/liquidx/src/sections/blog-article-main.liquid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unshopable/melter/4fdbdd2f9a6158fc996cac647c0b6e2d26afc650/examples/liquidx/src/sections/blog-article-main.liquid -------------------------------------------------------------------------------- /examples/liquidx/src/sections/blog-main.liquid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unshopable/melter/4fdbdd2f9a6158fc996cac647c0b6e2d26afc650/examples/liquidx/src/sections/blog-main.liquid -------------------------------------------------------------------------------- /examples/liquidx/src/sections/cart-main.liquid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unshopable/melter/4fdbdd2f9a6158fc996cac647c0b6e2d26afc650/examples/liquidx/src/sections/cart-main.liquid -------------------------------------------------------------------------------- /examples/liquidx/src/sections/collection-main.liquid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unshopable/melter/4fdbdd2f9a6158fc996cac647c0b6e2d26afc650/examples/liquidx/src/sections/collection-main.liquid -------------------------------------------------------------------------------- /examples/liquidx/src/sections/collections-main.liquid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unshopable/melter/4fdbdd2f9a6158fc996cac647c0b6e2d26afc650/examples/liquidx/src/sections/collections-main.liquid -------------------------------------------------------------------------------- /examples/liquidx/src/sections/gift_cards-main.liquid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unshopable/melter/4fdbdd2f9a6158fc996cac647c0b6e2d26afc650/examples/liquidx/src/sections/gift_cards-main.liquid -------------------------------------------------------------------------------- /examples/liquidx/src/sections/index-main.liquid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unshopable/melter/4fdbdd2f9a6158fc996cac647c0b6e2d26afc650/examples/liquidx/src/sections/index-main.liquid -------------------------------------------------------------------------------- /examples/liquidx/src/sections/page-main.liquid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unshopable/melter/4fdbdd2f9a6158fc996cac647c0b6e2d26afc650/examples/liquidx/src/sections/page-main.liquid -------------------------------------------------------------------------------- /examples/liquidx/src/sections/password-main.liquid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unshopable/melter/4fdbdd2f9a6158fc996cac647c0b6e2d26afc650/examples/liquidx/src/sections/password-main.liquid -------------------------------------------------------------------------------- /examples/liquidx/src/sections/product-main.liquid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unshopable/melter/4fdbdd2f9a6158fc996cac647c0b6e2d26afc650/examples/liquidx/src/sections/product-main.liquid -------------------------------------------------------------------------------- /examples/liquidx/src/sections/search-main.liquid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unshopable/melter/4fdbdd2f9a6158fc996cac647c0b6e2d26afc650/examples/liquidx/src/sections/search-main.liquid -------------------------------------------------------------------------------- /examples/liquidx/src/templates/404.json: -------------------------------------------------------------------------------- 1 | { 2 | "layout": "theme", 3 | "sections": { 4 | "main": { 5 | "type": "404-main" 6 | } 7 | }, 8 | "order": ["main"] 9 | } 10 | -------------------------------------------------------------------------------- /examples/liquidx/src/templates/article.json: -------------------------------------------------------------------------------- 1 | { 2 | "layout": "theme", 3 | "sections": { 4 | "main": { 5 | "type": "blog-article-main" 6 | } 7 | }, 8 | "order": [ 9 | "main" 10 | ] 11 | } -------------------------------------------------------------------------------- /examples/liquidx/src/templates/blog.json: -------------------------------------------------------------------------------- 1 | { 2 | "layout": "theme", 3 | "sections": { 4 | "main": { 5 | "type": "blog-main" 6 | } 7 | }, 8 | "order": ["main"] 9 | } 10 | -------------------------------------------------------------------------------- /examples/liquidx/src/templates/cart.json: -------------------------------------------------------------------------------- 1 | { 2 | "layout": "theme", 3 | "sections": { 4 | "main": { 5 | "type": "cart-main" 6 | } 7 | }, 8 | "order": ["main"] 9 | } 10 | -------------------------------------------------------------------------------- /examples/liquidx/src/templates/collection.json: -------------------------------------------------------------------------------- 1 | { 2 | "layout": "theme", 3 | "sections": { 4 | "main": { 5 | "type": "collection-main" 6 | } 7 | }, 8 | "order": ["main"] 9 | } 10 | -------------------------------------------------------------------------------- /examples/liquidx/src/templates/customers/account.json: -------------------------------------------------------------------------------- 1 | { 2 | "layout": "theme", 3 | "sections": { 4 | "main": { 5 | "type": "account-index-main" 6 | } 7 | }, 8 | "order": ["main"] 9 | } 10 | -------------------------------------------------------------------------------- /examples/liquidx/src/templates/customers/activate_account.json: -------------------------------------------------------------------------------- 1 | { 2 | "layout": "theme", 3 | "sections": { 4 | "main": { 5 | "type": "account-activate-main" 6 | } 7 | }, 8 | "order": ["main"] 9 | } 10 | -------------------------------------------------------------------------------- /examples/liquidx/src/templates/customers/addresses.json: -------------------------------------------------------------------------------- 1 | { 2 | "layout": "theme", 3 | "sections": { 4 | "main": { 5 | "type": "account-addresses-main" 6 | } 7 | }, 8 | "order": ["main"] 9 | } 10 | -------------------------------------------------------------------------------- /examples/liquidx/src/templates/customers/login.json: -------------------------------------------------------------------------------- 1 | { 2 | "layout": "theme", 3 | "sections": { 4 | "main": { 5 | "type": "account-login-main" 6 | } 7 | }, 8 | "order": ["main"] 9 | } 10 | -------------------------------------------------------------------------------- /examples/liquidx/src/templates/customers/order.json: -------------------------------------------------------------------------------- 1 | { 2 | "layout": "theme", 3 | "sections": { 4 | "main": { 5 | "type": "account-order-main" 6 | } 7 | }, 8 | "order": ["main"] 9 | } 10 | -------------------------------------------------------------------------------- /examples/liquidx/src/templates/customers/register.json: -------------------------------------------------------------------------------- 1 | { 2 | "layout": "theme", 3 | "sections": { 4 | "main": { 5 | "type": "account-register-main" 6 | } 7 | }, 8 | "order": ["main"] 9 | } 10 | -------------------------------------------------------------------------------- /examples/liquidx/src/templates/customers/reset_password.json: -------------------------------------------------------------------------------- 1 | { 2 | "layout": "theme", 3 | "sections": { 4 | "main": { 5 | "type": "account-reset-main" 6 | } 7 | }, 8 | "order": ["main"] 9 | } 10 | -------------------------------------------------------------------------------- /examples/liquidx/src/templates/gift_card.liquid: -------------------------------------------------------------------------------- 1 | {% layout 'gift_card' %} 2 | 3 | {% section 'gift_cards-main' %} 4 | -------------------------------------------------------------------------------- /examples/liquidx/src/templates/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "layout": "theme", 3 | "sections": { 4 | "main": { 5 | "type": "index-main" 6 | } 7 | }, 8 | "order": ["main"] 9 | } 10 | -------------------------------------------------------------------------------- /examples/liquidx/src/templates/list-collections.json: -------------------------------------------------------------------------------- 1 | { 2 | "layout": "theme", 3 | "sections": { 4 | "main": { 5 | "type": "collections-main" 6 | } 7 | }, 8 | "order": ["main"] 9 | } 10 | -------------------------------------------------------------------------------- /examples/liquidx/src/templates/page.json: -------------------------------------------------------------------------------- 1 | { 2 | "layout": "theme", 3 | "sections": { 4 | "main": { 5 | "type": "page-main" 6 | } 7 | }, 8 | "order": ["main"] 9 | } 10 | -------------------------------------------------------------------------------- /examples/liquidx/src/templates/password.json: -------------------------------------------------------------------------------- 1 | { 2 | "layout": "theme", 3 | "sections": { 4 | "main": { 5 | "type": "password-main" 6 | } 7 | }, 8 | "order": ["main"] 9 | } 10 | -------------------------------------------------------------------------------- /examples/liquidx/src/templates/product.json: -------------------------------------------------------------------------------- 1 | { 2 | "layout": "theme", 3 | "sections": { 4 | "main": { 5 | "type": "product-main" 6 | } 7 | }, 8 | "order": ["main"] 9 | } 10 | -------------------------------------------------------------------------------- /examples/liquidx/src/templates/search.json: -------------------------------------------------------------------------------- 1 | { 2 | "layout": "theme", 3 | "sections": { 4 | "main": { 5 | "type": "search-main" 6 | } 7 | }, 8 | "order": ["main"] 9 | } 10 | -------------------------------------------------------------------------------- /nodemon.json: -------------------------------------------------------------------------------- 1 | { 2 | "watch": ["src", "sandbox"], 3 | "ext": ".ts", 4 | "ignore": [], 5 | "exec": "npx ts-node ./sandbox/index.ts" 6 | } 7 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@unshopable/melter", 3 | "version": "0.1.0-alpha.44", 4 | "description": "Shopify Theme build tool and plugin manager which lets you create custom directory structures and add custom file transformations to melt anything into Liquid 🫠", 5 | "author": "", 6 | "keywords": [ 7 | "plugin-manager", 8 | "liquid", 9 | "shopify", 10 | "build-tool", 11 | "shopify-theme", 12 | "development-tool" 13 | ], 14 | "license": "MIT", 15 | "repository": "unshopable/melter", 16 | "homepage": "https://github.com/unshopable/melter", 17 | "bugs": "https://github.com/unshopable/melter/issues", 18 | "private": false, 19 | "main": "dist/index.js", 20 | "module": "dist/index.mjs", 21 | "types": "dist/index.d.ts", 22 | "exports": { 23 | ".": { 24 | "require": "./dist/index.js", 25 | "import": "./dist/index.mjs", 26 | "types": "./dist/index.d.ts" 27 | } 28 | }, 29 | "files": [ 30 | "dist" 31 | ], 32 | "scripts": { 33 | "dev": "npx nodemon", 34 | "build": "tsup", 35 | "prepublishOnly": "npm run build" 36 | }, 37 | "dependencies": { 38 | "chokidar": "^3.5.3", 39 | "fast-glob": "^3.3.0", 40 | "fs-extra": "^11.1.1", 41 | "just-safe-get": "^4.2.0", 42 | "just-safe-set": "^4.2.1", 43 | "tapable": "^2.2.1" 44 | }, 45 | "devDependencies": { 46 | "@types/fs-extra": "^11.0.1", 47 | "@types/node": "^20.2.3", 48 | "nodemon": "^2.0.22", 49 | "prettier": "^2.8.8", 50 | "ts-node": "^10.9.1", 51 | "tslib": "^2.5.2", 52 | "tsup": "^6.7.0", 53 | "typescript": "^5.0.4" 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Asset.ts: -------------------------------------------------------------------------------- 1 | import * as fs from 'fs-extra'; 2 | import { CompilerEvent } from './Compiler'; 3 | 4 | export type AssetType = 5 | | 'assets' 6 | | 'config' 7 | | 'layout' 8 | | 'locales' 9 | | 'sections' 10 | | 'snippets' 11 | | 'templates' 12 | | 'unknown' 13 | | 'custom'; 14 | 15 | export type AssetPath = { 16 | absolute: string; 17 | relative: string; 18 | }; 19 | 20 | export class Asset { 21 | /** 22 | * The type of the asset. 23 | */ 24 | type: AssetType; 25 | 26 | /** 27 | * The absolute and relative path to the asset's file. 28 | */ 29 | source: AssetPath; 30 | 31 | /** 32 | * The absolute and relative path to the asset's file. 33 | */ 34 | target?: AssetPath; 35 | 36 | /** 37 | * A set of assets the asset is linked with. 38 | */ 39 | links: Set; 40 | 41 | /** 42 | * The asset's content. 43 | */ 44 | content: Buffer; 45 | 46 | /** 47 | * The action that created this asset. 48 | */ 49 | action: CompilerEvent; 50 | 51 | constructor(type: AssetType, source: AssetPath, links: Set, action: CompilerEvent) { 52 | this.type = type; 53 | this.source = source; 54 | this.links = new Set(links); 55 | 56 | this.content = this.getContent(); 57 | 58 | this.action = action; 59 | } 60 | 61 | private getContent() { 62 | try { 63 | return fs.readFileSync(this.source.absolute); 64 | } catch { 65 | return Buffer.from(''); 66 | } 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /src/Compilation.ts: -------------------------------------------------------------------------------- 1 | import * as path from 'path'; 2 | import { AsyncSeriesHook } from 'tapable'; 3 | import { Asset } from './Asset'; 4 | import { Compiler, CompilerEvent } from './Compiler'; 5 | 6 | export type CompilationStats = { 7 | /** 8 | * The compilation time in milliseconds. 9 | */ 10 | time: number; 11 | 12 | /** 13 | * A list of asset objects. 14 | */ 15 | assets: Asset[]; 16 | 17 | /** 18 | * A list of warnings. 19 | */ 20 | warnings: string[]; 21 | 22 | /** 23 | * A list of errors. 24 | */ 25 | errors: string[]; 26 | }; 27 | 28 | export type CompilationHooks = { 29 | beforeAddAsset: AsyncSeriesHook<[Asset]>; 30 | afterAddAsset: AsyncSeriesHook<[Asset]>; 31 | }; 32 | 33 | export class Compilation { 34 | compiler: Compiler; 35 | event: CompilerEvent; 36 | assetPaths: Set; 37 | assets: Set; 38 | 39 | stats: CompilationStats; 40 | 41 | hooks: Readonly; 42 | 43 | /** 44 | * Creates an instance of `Compilation`. 45 | * 46 | * @param compiler The compiler which created the compilation. 47 | * @param assetPaths A set of paths to assets that should be compiled. 48 | */ 49 | constructor(compiler: Compiler, event: CompilerEvent, assetPaths: Set) { 50 | this.compiler = compiler; 51 | this.event = event; 52 | this.assetPaths = assetPaths; 53 | this.assets = new Set(); 54 | 55 | this.stats = { 56 | time: 0, 57 | 58 | assets: [], 59 | 60 | warnings: [], 61 | errors: [], 62 | }; 63 | 64 | this.hooks = Object.freeze({ 65 | beforeAddAsset: new AsyncSeriesHook(['asset']), // Use AsyncSeriesHook 66 | afterAddAsset: new AsyncSeriesHook(['asset']), // Use AsyncSeriesHook 67 | }); 68 | } 69 | 70 | async create() { 71 | const startTime = performance.now(); 72 | 73 | const promises = Array.from(this.assetPaths).map(async (assetPath) => { 74 | await this.addAsset(assetPath); 75 | }); 76 | 77 | await Promise.all(promises); 78 | 79 | const endTime = performance.now(); 80 | 81 | this.stats.time = Number((endTime - startTime).toFixed(2)); 82 | } 83 | 84 | async addAsset(assetPath: string) { 85 | const assetType = 'unknown'; 86 | 87 | const sourcePath = { 88 | absolute: path.resolve(this.compiler.cwd, assetPath), 89 | relative: assetPath, 90 | }; 91 | 92 | const asset = new Asset(assetType, sourcePath, new Set(), this.event); 93 | 94 | await this.hooks.beforeAddAsset.promise(asset); // Use .promise() for Async hooks 95 | 96 | this.assets.add(asset); 97 | this.stats.assets.push(asset); 98 | 99 | await this.hooks.afterAddAsset.promise(asset); // Use .promise() for Async hooks 100 | } 101 | 102 | addWarning(warning: string) { 103 | this.stats.warnings.push(warning); 104 | } 105 | 106 | addError(error: string) { 107 | this.stats.errors.push(error); 108 | } 109 | } 110 | -------------------------------------------------------------------------------- /src/Compiler.ts: -------------------------------------------------------------------------------- 1 | import { AsyncSeriesHook } from 'tapable'; 2 | import { Compilation, CompilationStats } from './Compilation'; 3 | import { Emitter } from './Emitter'; 4 | import { Logger } from './Logger'; 5 | import { Watcher } from './Watcher'; 6 | import { CompilerConfig } from './config'; 7 | 8 | export type CompilerHooks = { 9 | beforeCompile: AsyncSeriesHook<[]>; 10 | compilation: AsyncSeriesHook<[Compilation]>; 11 | afterCompile: AsyncSeriesHook<[Compilation]>; 12 | beforeEmit: AsyncSeriesHook<[Compilation]>; 13 | emitter: AsyncSeriesHook<[Emitter]>; 14 | afterEmit: AsyncSeriesHook<[Compilation]>; 15 | done: AsyncSeriesHook<[CompilationStats]>; 16 | 17 | watcherStart: AsyncSeriesHook<[]>; 18 | watcherClose: AsyncSeriesHook<[]>; 19 | }; 20 | 21 | export type CompilerEvent = 'add' | 'update' | 'remove'; 22 | 23 | export class Compiler { 24 | cwd: Readonly; 25 | config: Readonly; 26 | 27 | hooks: Readonly; 28 | 29 | watcher: Readonly; 30 | 31 | logger: Readonly; 32 | 33 | constructor(config: CompilerConfig) { 34 | this.cwd = process.cwd(); 35 | this.config = config; 36 | 37 | this.hooks = Object.freeze({ 38 | beforeCompile: new AsyncSeriesHook(), 39 | compilation: new AsyncSeriesHook(['compilation']), 40 | afterCompile: new AsyncSeriesHook(['compilation']), 41 | beforeEmit: new AsyncSeriesHook(['compilation']), 42 | emitter: new AsyncSeriesHook(['emitter']), 43 | afterEmit: new AsyncSeriesHook(['compilation']), 44 | done: new AsyncSeriesHook(['stats']), 45 | 46 | watcherStart: new AsyncSeriesHook(), 47 | watcherClose: new AsyncSeriesHook(), 48 | }); 49 | 50 | this.watcher = null; 51 | 52 | this.logger = new Logger(); 53 | } 54 | 55 | async build() { 56 | await this.hooks.beforeCompile.promise(); 57 | 58 | const watcher = new Watcher(this, this.config.input, { 59 | cwd: this.cwd, 60 | 61 | ignored: this.config.ignored, 62 | 63 | // Trigger build. 64 | ignoreInitial: false, 65 | 66 | // Do not listen for changes. 67 | persistent: false, 68 | }); 69 | 70 | await this.hooks.watcherStart.promise(); 71 | watcher.start(); 72 | await this.hooks.watcherClose.promise(); 73 | } 74 | 75 | async watch() { 76 | this.watcher = new Watcher(this, this.config.input, { 77 | cwd: this.cwd, 78 | 79 | ignored: this.config.ignored, 80 | 81 | // Trigger an initial build. 82 | ignoreInitial: false, 83 | 84 | // Continously watch for changes. 85 | persistent: true, 86 | }); 87 | 88 | await this.hooks.watcherStart.promise(); 89 | this.watcher.start(); 90 | await this.hooks.watcherClose.promise(); 91 | } 92 | 93 | async compile(event: CompilerEvent, assetPaths: Set) { 94 | await this.hooks.beforeCompile.promise(); 95 | 96 | const compilation = new Compilation(this, event, assetPaths); 97 | 98 | await this.hooks.compilation.promise(compilation); 99 | 100 | compilation.create(); 101 | 102 | await this.hooks.afterCompile.promise(compilation); 103 | 104 | // If no output directory is specified we do not want to emit assets. 105 | if (this.config.output) { 106 | await this.hooks.beforeEmit.promise(compilation); 107 | 108 | const emitter = new Emitter(this, compilation); 109 | 110 | await this.hooks.emitter.promise(emitter); 111 | 112 | emitter.emit(); 113 | 114 | await this.hooks.afterEmit.promise(compilation); 115 | } 116 | 117 | await this.hooks.done.promise(compilation.stats); 118 | } 119 | 120 | async close() { 121 | if (this.watcher) { 122 | // Close active watcher if compiler has one. 123 | await this.hooks.watcherClose.promise(); 124 | 125 | this.watcher.close(); 126 | } 127 | 128 | process.exit(); 129 | } 130 | } 131 | -------------------------------------------------------------------------------- /src/Emitter.ts: -------------------------------------------------------------------------------- 1 | import * as fs from 'fs-extra'; 2 | import { AsyncSeriesHook } from 'tapable'; // Import AsyncSeriesHook 3 | import { Asset, AssetPath } from './Asset'; 4 | import { Compilation } from './Compilation'; 5 | import { Compiler } from './Compiler'; 6 | 7 | export type EmitterHooks = Readonly<{ 8 | beforeAssetAction: AsyncSeriesHook<[Asset]>; // Change to AsyncSeriesHook 9 | afterAssetAction: AsyncSeriesHook<[Asset]>; // Change to AsyncSeriesHook 10 | }>; 11 | 12 | export class Emitter { 13 | compiler: Compiler; 14 | compilation: Compilation; 15 | 16 | hooks: EmitterHooks; 17 | 18 | constructor(compiler: Compiler, compilation: Compilation) { 19 | this.compiler = compiler; 20 | this.compilation = compilation; 21 | 22 | this.hooks = { 23 | beforeAssetAction: new AsyncSeriesHook(['asset']), // Change to AsyncSeriesHook 24 | afterAssetAction: new AsyncSeriesHook(['asset']), // Change to AsyncSeriesHook 25 | }; 26 | } 27 | 28 | async emit() { 29 | // Change the method to be asynchronous 30 | for (const asset of this.compilation.assets) { 31 | await this.hooks.beforeAssetAction.promise(asset); // Use .promise() for Async hooks 32 | 33 | if (typeof asset.target === 'undefined') { 34 | this.compilation.addWarning(`Missing target path: '${asset.source.relative}'`); 35 | continue; 36 | } 37 | 38 | switch (asset.action) { 39 | case 'add': 40 | case 'update': { 41 | await this.writeFile(asset.target.absolute, asset.content); // Await the asynchronous method 42 | 43 | break; 44 | } 45 | 46 | case 'remove': { 47 | await this.removeFile(asset.target.absolute); // Await the asynchronous method 48 | 49 | break; 50 | } 51 | } 52 | 53 | await this.hooks.afterAssetAction.promise(asset); // Use .promise() for Async hooks 54 | } 55 | } 56 | 57 | private async writeFile(targetPath: AssetPath['absolute'], content: Asset['content']) { 58 | try { 59 | await fs.ensureFile(targetPath); 60 | await fs.writeFile(targetPath, content); 61 | } catch (error: any) { 62 | this.compilation.addError(error.message); 63 | } 64 | } 65 | 66 | private async removeFile(targetPath: AssetPath['absolute']) { 67 | try { 68 | await fs.remove(targetPath); 69 | } catch (error: any) { 70 | this.compilation.addError(error.message); 71 | } 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /src/Logger.ts: -------------------------------------------------------------------------------- 1 | export type LoggerDataType = 'warning' | 'error'; 2 | 3 | export class Logger { 4 | success(message: string) { 5 | console.log(this.formatSuccess(message)); 6 | console.log(''); 7 | } 8 | 9 | warning(message: string, data: string[]) { 10 | console.log(this.formatWarning(message)); 11 | 12 | if (data.length > 0) { 13 | console.log(''); 14 | console.log(this.formatLogData('warning', data)); 15 | console.log(''); 16 | } 17 | } 18 | 19 | error(message: string, data: string[]) { 20 | console.log(this.formatError(message)); 21 | 22 | if (data.length > 0) { 23 | console.log(''); 24 | console.log(this.formatLogData('error', data)); 25 | console.log(''); 26 | } 27 | } 28 | 29 | private formatSuccess(message: string): string { 30 | return `\x1b[32m${message}\x1b[0m`; 31 | } 32 | 33 | private formatWarning(message: string): string { 34 | return `\x1b[33m${message}\x1b[0m`; 35 | } 36 | 37 | private formatError(message: string): string { 38 | return `\x1b[31m${message}\x1b[0m`; 39 | } 40 | 41 | private formatLogData(type: LoggerDataType, data: string[]) { 42 | const prefix = this.getPrefix(type); 43 | 44 | return data.map((item) => ` ${prefix} ${item}`).join('\n'); 45 | } 46 | 47 | private getPrefix(type: LoggerDataType) { 48 | const prefix = { 49 | warning: this.formatWarning('⚠'), 50 | error: this.formatError('✖'), 51 | }; 52 | 53 | return prefix[type]; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Plugin.ts: -------------------------------------------------------------------------------- 1 | import { Compiler } from './Compiler'; 2 | 3 | export class Plugin { 4 | apply(compiler: Compiler): void {} 5 | } 6 | -------------------------------------------------------------------------------- /src/Watcher.ts: -------------------------------------------------------------------------------- 1 | import * as chokidar from 'chokidar'; 2 | import * as fs from 'fs'; 3 | import { Compiler } from './Compiler'; 4 | 5 | interface WatchOptions extends chokidar.WatchOptions {} 6 | 7 | export class Watcher { 8 | compiler: Compiler; 9 | 10 | watcher: chokidar.FSWatcher | null; 11 | watcherPath: string; 12 | watchOptions: WatchOptions; 13 | 14 | initial: boolean; 15 | initialAssetPaths: Set; 16 | 17 | constructor(compiler: Compiler, watcherPath: string, watchOptions: WatchOptions) { 18 | this.compiler = compiler; 19 | 20 | this.watcher = null; 21 | this.watcherPath = watcherPath; 22 | this.watchOptions = watchOptions; 23 | 24 | this.initial = true; 25 | this.initialAssetPaths = new Set(); 26 | } 27 | 28 | async start() { 29 | if (this.watchOptions.persistent) { 30 | // Chokidar is not really watching without `persistent` being `true` so we do not want 31 | // to call the `watcherStart` hook in this case. 32 | await this.compiler.hooks.watcherStart.promise(); 33 | } 34 | 35 | this.watcher = chokidar.watch(this.watcherPath, this.watchOptions); 36 | 37 | this.watcher.on('add', (path: string, stats: fs.Stats) => { 38 | if (this.initial) { 39 | this.initialAssetPaths.add(path); 40 | 41 | return; 42 | } 43 | 44 | this.compiler.compile('add', new Set([path])); 45 | }); 46 | 47 | this.watcher.on('change', (path: string, stats: fs.Stats) => { 48 | this.compiler.compile('update', new Set([path])); 49 | }); 50 | 51 | this.watcher.on('unlink', (path: string, stats: fs.Stats) => { 52 | this.compiler.compile('remove', new Set([path])); 53 | }); 54 | 55 | this.watcher.on('ready', () => { 56 | this.initial = false; 57 | 58 | this.compiler.compile('add', this.initialAssetPaths); 59 | }); 60 | } 61 | 62 | async close() { 63 | if (this.watcher) { 64 | await this.watcher.close(); 65 | 66 | this.compiler.hooks.watcherClose.promise(); 67 | } 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /src/config/defaults.ts: -------------------------------------------------------------------------------- 1 | import { CompilerConfig, MelterConfig, defaultBaseCompilerConfig } from '.'; 2 | import { Plugin } from '../Plugin'; 3 | import { PathsPlugin } from '../plugins/PathsPlugin'; 4 | import { StatsPlugin } from '../plugins/StatsPlugin'; 5 | 6 | function applyDefaultPlugins(config: CompilerConfig): Plugin[] { 7 | const plugins = []; 8 | 9 | plugins.push( 10 | ...[ 11 | new StatsPlugin({ 12 | stats: config.stats, 13 | }), 14 | 15 | new PathsPlugin({ 16 | paths: config.paths, 17 | }), 18 | ], 19 | ); 20 | 21 | return plugins; 22 | } 23 | 24 | export function applyConfigDefaults(config: MelterConfig): CompilerConfig { 25 | const compilerConfig = { 26 | ...defaultBaseCompilerConfig, 27 | ...config, 28 | }; 29 | 30 | compilerConfig.plugins = [...applyDefaultPlugins(compilerConfig), ...compilerConfig.plugins]; 31 | 32 | return compilerConfig; 33 | } 34 | -------------------------------------------------------------------------------- /src/config/index.ts: -------------------------------------------------------------------------------- 1 | import { Plugin } from '../Plugin'; 2 | import { PathsPluginConfig } from '../plugins/PathsPlugin'; 3 | import { StatsPluginConfig } from '../plugins/StatsPlugin'; 4 | 5 | export * from './load'; 6 | 7 | // TODO: Can we import this from chokidar/anymatch? 8 | type AnymatchFn = (testString: string) => boolean; 9 | type AnymatchPattern = string | RegExp | AnymatchFn; 10 | type AnymatchMatcher = AnymatchPattern | AnymatchPattern[]; 11 | 12 | export type BaseCompilerConfig = { 13 | /** 14 | * Where to look for files to compile. 15 | */ 16 | input: string; 17 | 18 | /** 19 | * A list of paths to ignore. 20 | */ 21 | ignored: AnymatchMatcher; 22 | 23 | /** 24 | * Where to write the compiled files to. The emitter won't emit any assets if undefined. 25 | */ 26 | output: string; 27 | 28 | /** 29 | * A list of additional plugins to add to the compiler. 30 | */ 31 | plugins: Plugin[]; 32 | }; 33 | 34 | export const defaultBaseCompilerConfig: BaseCompilerConfig = { 35 | input: 'src', 36 | ignored: [], 37 | output: 'dist', 38 | plugins: [], 39 | }; 40 | 41 | /** 42 | * Compiler configuration object. 43 | */ 44 | export type CompilerConfig = {} & BaseCompilerConfig & StatsPluginConfig & PathsPluginConfig; 45 | 46 | /** 47 | * Melter configuration object. 48 | * 49 | * @see [Configuration documentation](https://github.com/unshopable/melter#configuration) 50 | */ 51 | export type MelterConfig = Partial; 52 | -------------------------------------------------------------------------------- /src/config/load.ts: -------------------------------------------------------------------------------- 1 | import fg from 'fast-glob'; 2 | import * as fs from 'fs-extra'; 3 | import * as path from 'path'; 4 | import { BaseCompilerConfig, MelterConfig, defaultBaseCompilerConfig } from '.'; 5 | import { getFilenameFromPath, parseJSON } from '../utils'; 6 | 7 | function getConfigFiles(cwd: string): string[] { 8 | const configFilePattern = 'melter.config.*'; 9 | // flat-glob only supports POSIX path syntax, so we use convertPathToPattern() for windows 10 | return fg.sync(fg.convertPathToPattern(cwd) + '/' + configFilePattern); 11 | } 12 | 13 | function parseConfigFile(file: string): { config: MelterConfig | null; errors: string[] } { 14 | if (file.endsWith('json')) { 15 | const content = fs.readFileSync(file, 'utf8'); 16 | 17 | const { data, error } = parseJSON(content); 18 | 19 | if (error) { 20 | return { 21 | config: null, 22 | errors: [error], 23 | }; 24 | } 25 | 26 | return { 27 | config: data, 28 | errors: [], 29 | }; 30 | } 31 | 32 | return { 33 | config: require(file).default || require(file), 34 | errors: [], 35 | }; 36 | } 37 | 38 | export function loadConfig(): { 39 | config: MelterConfig | BaseCompilerConfig | null; 40 | warnings: string[]; 41 | errors: string[]; 42 | } { 43 | const configFiles = getConfigFiles(process.cwd()); 44 | 45 | if (configFiles.length === 0) { 46 | return { 47 | config: defaultBaseCompilerConfig, 48 | warnings: [ 49 | 'No config found. Loaded default config. To disable this warning create a custom config.', 50 | ], 51 | errors: [], 52 | }; 53 | } 54 | 55 | const firstConfigFile = configFiles[0]; 56 | 57 | const warnings: string[] = []; 58 | 59 | if (configFiles.length > 1) { 60 | warnings.push( 61 | `Multiple configs found. Loaded '${getFilenameFromPath( 62 | firstConfigFile, 63 | )}'. To disable this warning remove unused configs.`, 64 | ); 65 | } 66 | 67 | const { config, errors } = parseConfigFile(firstConfigFile); 68 | 69 | return { 70 | config, 71 | warnings, 72 | errors, 73 | }; 74 | } 75 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './Asset'; 2 | export * from './Compilation'; 3 | export * from './Compiler'; 4 | export * from './Emitter'; 5 | export * from './Logger'; 6 | export * from './Plugin'; 7 | export * from './Watcher'; 8 | export * from './config'; 9 | export * from './melter'; 10 | -------------------------------------------------------------------------------- /src/melter.ts: -------------------------------------------------------------------------------- 1 | import { Compiler } from './Compiler'; 2 | import { MelterConfig } from './config'; 3 | import { applyConfigDefaults } from './config/defaults'; 4 | 5 | export function melter(config: MelterConfig) { 6 | const compilerConfig = applyConfigDefaults(config); 7 | const compiler = new Compiler(compilerConfig); 8 | 9 | if (Array.isArray(compilerConfig.plugins)) { 10 | for (const plugin of compilerConfig.plugins) { 11 | plugin.apply(compiler); 12 | } 13 | } 14 | 15 | return compiler; 16 | } 17 | -------------------------------------------------------------------------------- /src/plugins/PathsPlugin.ts: -------------------------------------------------------------------------------- 1 | import * as path from 'path'; 2 | import { Asset, AssetPath, AssetType } from '../Asset'; 3 | import { Compiler } from '../Compiler'; 4 | import { Emitter } from '../Emitter'; 5 | import { Plugin } from '../Plugin'; 6 | import { normalizePath } from '../utils'; 7 | 8 | type Paths = { 9 | /** 10 | * An array of paths pointing to files that should be processed as `assets`. 11 | */ 12 | assets?: RegExp[]; 13 | 14 | /** 15 | * An array of paths pointing to files that should be processed as `config`. 16 | */ 17 | config?: RegExp[]; 18 | 19 | /** 20 | * An array of paths pointing to files that should be processed as `layout`. 21 | */ 22 | layout?: RegExp[]; 23 | 24 | /** 25 | * An array of paths pointing to files that should be processed as `locales`. 26 | */ 27 | locales?: RegExp[]; 28 | 29 | /** 30 | * An array of paths pointing to files that should be processed as `sections`. 31 | */ 32 | sections?: RegExp[]; 33 | 34 | /** 35 | * An array of paths pointing to files that should be processed as `snippets`. 36 | */ 37 | snippets?: RegExp[]; 38 | 39 | /** 40 | * An array of paths pointing to files that should be processed as `templates`. 41 | */ 42 | templates?: RegExp[]; 43 | }; 44 | 45 | /** 46 | * Path plugin configuration object. 47 | */ 48 | export type PathsPluginConfig = { 49 | /** 50 | * A map of Shopify's directory structure and component types. 51 | * 52 | * @see [Shopify Docs Reference](https://shopify.dev/docs/themes/architecture#directory-structure-and-component-types) 53 | */ 54 | paths?: Paths | false; 55 | }; 56 | 57 | const defaultPathsPluginConfig: PathsPluginConfig = { 58 | paths: { 59 | assets: [/assets\/[^\/]*\.*$/], 60 | config: [/config\/[^\/]*\.json$/], 61 | layout: [/layout\/[^\/]*\.liquid$/], 62 | locales: [/locales\/[^\/]*\.json$/], 63 | sections: [/sections\/[^\/]*\.liquid$/], 64 | snippets: [/snippets\/[^\/]*\.liquid$/], 65 | templates: [ 66 | /templates\/[^\/]*\.liquid$/, 67 | /templates\/[^\/]*\.json$/, 68 | /templates\/customers\/[^\/]*\.liquid$/, 69 | /templates\/customers\/[^\/]*\.json$/, 70 | ], 71 | }, 72 | }; 73 | 74 | export class PathsPlugin extends Plugin { 75 | config: PathsPluginConfig; 76 | 77 | constructor(config: PathsPluginConfig) { 78 | super(); 79 | 80 | this.config = 81 | config.paths !== false 82 | ? { 83 | paths: { 84 | ...defaultPathsPluginConfig.paths, 85 | ...config.paths, 86 | }, 87 | } 88 | : {}; 89 | } 90 | 91 | apply(compiler: Compiler): void { 92 | const output = compiler.config.output; 93 | 94 | if (!output) return; 95 | 96 | const paths = this.config.paths; 97 | 98 | if (!paths) return; 99 | 100 | compiler.hooks.compilation.tap('PathsPlugin', (compilation) => { 101 | compilation.hooks.afterAddAsset.tapPromise('PathsPlugin', async (asset: Asset) => { 102 | const assetType = this.determineAssetType(paths, asset.source.relative); 103 | 104 | if (!assetType) return; 105 | asset.type = assetType; 106 | 107 | const assetSourcePathParts = asset.source.relative.split(path.sep); 108 | 109 | let assetFilename: string = ''; 110 | 111 | if (assetSourcePathParts.at(-2) === 'customers') { 112 | assetFilename = assetSourcePathParts.slice(-2).join(path.sep); 113 | } else { 114 | assetFilename = assetSourcePathParts.at(-1)!; 115 | } 116 | 117 | const assetTargetPath = this.resolveAssetTargetPath( 118 | compiler.cwd, 119 | output, 120 | assetType, 121 | assetFilename, 122 | ); 123 | 124 | asset.target = assetTargetPath; 125 | }); 126 | }); 127 | } 128 | 129 | private determineAssetType(paths: Paths, assetPath: string): AssetType | null { 130 | const pathEntries = Object.entries(paths); 131 | const normalizedAssetPath = normalizePath(assetPath); 132 | 133 | for (let i = 0; i < pathEntries.length; i += 1) { 134 | const [name, patterns] = pathEntries[i]; 135 | 136 | for (let j = 0; j < patterns.length; j++) { 137 | if (normalizedAssetPath.match(patterns[j])) { 138 | return name as AssetType; 139 | } 140 | } 141 | } 142 | 143 | return null; 144 | } 145 | 146 | private resolveAssetTargetPath( 147 | cwd: string, 148 | output: string, 149 | assetType: AssetType, 150 | filename: string, 151 | ): AssetPath { 152 | const relativeAssetTargetPath = path.resolve(output, assetType, filename); 153 | const absoluteAssetTargetPath = path.resolve(cwd, relativeAssetTargetPath); 154 | 155 | return { 156 | absolute: absoluteAssetTargetPath, 157 | relative: relativeAssetTargetPath, 158 | }; 159 | } 160 | } 161 | -------------------------------------------------------------------------------- /src/plugins/StatsPlugin.ts: -------------------------------------------------------------------------------- 1 | import { CompilationStats } from '../Compilation'; 2 | import { Compiler } from '../Compiler'; 3 | import { Plugin } from '../Plugin'; 4 | 5 | export type StatsPluginConfig = { 6 | stats?: boolean; 7 | }; 8 | 9 | export class StatsPlugin extends Plugin { 10 | config: StatsPluginConfig; 11 | 12 | constructor(config: StatsPluginConfig = {}) { 13 | super(); 14 | 15 | this.config = config; 16 | } 17 | 18 | apply(compiler: Compiler): void { 19 | if (this.config.stats === false) return; 20 | 21 | compiler.hooks.done.tap('StatsPlugin', (compilationStats: CompilationStats) => { 22 | if (compilationStats.errors.length > 0) { 23 | compiler.logger.error('Compilation failed', compilationStats.errors); 24 | } else if (compilationStats.warnings.length > 0) { 25 | compiler.logger.warning( 26 | `Compiled with ${compilationStats.warnings.length} warnings`, 27 | compilationStats.warnings, 28 | ); 29 | } else { 30 | compiler.logger.success(`Successfully compiled in ${compilationStats.time} ms`); 31 | } 32 | }); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/utils/index.ts: -------------------------------------------------------------------------------- 1 | import * as _path from 'path'; 2 | 3 | export function getFilenameFromPath(path: string): string { 4 | return path.split(_path.sep).at(-1)!; 5 | } 6 | 7 | export function normalizePath(path: string): string { 8 | const isExtendedLengthPath = path.startsWith('\\\\?\\'); 9 | 10 | if (isExtendedLengthPath) { 11 | return path; 12 | } 13 | 14 | return path.replace(/\\/g, '/'); 15 | } 16 | 17 | /** 18 | * Parses provided value and returns data if succeeded. Otherwise the corresponding error 19 | * will be returned. 20 | */ 21 | export function parseJSON(value: string): { data: T | null; error?: string } { 22 | try { 23 | return { 24 | data: JSON.parse(value), 25 | }; 26 | } catch (error: any) { 27 | return { 28 | data: null, 29 | error: error.message, 30 | }; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "declaration": true, 4 | "importHelpers": true, 5 | "module": "commonjs", 6 | "outDir": "dist", 7 | "rootDir": "src", 8 | "strict": true, 9 | "target": "es2019", 10 | "esModuleInterop": true 11 | }, 12 | "include": ["src/**/*"] 13 | } 14 | -------------------------------------------------------------------------------- /tsup.config.ts: -------------------------------------------------------------------------------- 1 | import type { Options } from 'tsup'; 2 | 3 | const tsupConfig: Options = { 4 | entryPoints: ['src/index.ts'], 5 | clean: true, 6 | format: ['cjs', 'esm'], 7 | dts: true, 8 | }; 9 | 10 | export default tsupConfig; 11 | --------------------------------------------------------------------------------