{"_id":"@borngroup-accelerator/born-build","_rev":"4-73de72c14e26929b707c6e6f1eb81347","name":"@borngroup-accelerator/born-build","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"@borngroup-accelerator/born-build","version":"1.0.0","description":"Born tool for builds that run on node>= 18","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/neha03sharma/born-accelerator-build.git"},"keywords":["build","sfra"],"author":{"name":"SFCC Team @borngroup"},"license":"ISC","bugs":{"url":"https://github.com/neha03sharma/born-accelerator-build/issues"},"homepage":"https://github.com/neha03sharma/born-accelerator-build#readme","dependencies":{"@babel/core":"^7.12.10","@babel/eslint-parser":"^7.12.1","@babel/plugin-syntax-dynamic-import":"^7.8.3","@babel/preset-env":"^7.12.11","autoprefixer":"^10.2.4","babel-loader":"^8.2.2","css-loader":"^6.0.0","cssnano":"^6.1.2","dw-utils":"^1.3.137","eslint":"^8.56.0","eslint-config-airbnb-base":"^15.0.0","eslint-plugin-import":"^2.29.0","glob":"^7.1.6","mini-css-extract-plugin":"^2.7.6","minimist":"^1.2.6","sass":"^1.69.7","sass-loader":"^13.3.2","npm-run-all":"^4.1.5","postcss":"^8.2.6","postcss-css-variables":"^0.17.0","postcss-loader":"^7.0.0","revolver-webpack-plugin":"^1.0.4","webpack":"^5.88.2","webpack-cli":"^5.1.4","webpack-fix-style-only-entries":"^0.6.1","webpack-merge":"^5.10.0"},"_id":"@borngroup-accelerator/born-build@1.0.0","_nodeVersion":"18.4.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-eXkp1kbwzvqAjO/aA51IPj3a2Qm1eQq1W6BTJIe+Tuxz6+nC7nrFjJnJ747KmDiuEk7clst/1t+ml9OaFv+smA==","shasum":"44aead6778b7ea0ec331d2d33d8228797682433c","tarball":"https://registry.npmjs.org/@borngroup-accelerator/born-build/-/born-build-1.0.0.tgz","fileCount":12,"unpackedSize":32769,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKBO4IrdxiMe70OTB43yonAvDD8l5f9668nmHhK+rEBQIhAO1i9tH4kuljwihCdJmMaiSqXTPoZumTEyJ5BHWH+iTa"}]},"_npmUser":{"name":"nehasharmak","email":"n003sharma@gmail.com"},"directories":{},"maintainers":[{"name":"nehasharmak","email":"n003sharma@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/born-build_1.0.0_1711707347864_0.9101224815905935"},"_hasShrinkwrap":false},"1.0.1":{"name":"@borngroup-accelerator/born-build","version":"1.0.1","description":"Born tool for builds that run on node>= 18","main":"src/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/neha03sharma/born-accelerator-build.git"},"keywords":["build","sfra"],"author":{"name":"SFCC Team @borngroup"},"license":"ISC","bugs":{"url":"https://github.com/neha03sharma/born-accelerator-build/issues"},"homepage":"https://github.com/neha03sharma/born-accelerator-build#readme","dependencies":{"@babel/core":"^7.12.10","@babel/eslint-parser":"^7.12.1","@babel/plugin-syntax-dynamic-import":"^7.8.3","@babel/preset-env":"^7.12.11","autoprefixer":"^10.2.4","babel-loader":"^8.2.2","css-loader":"^6.0.0","cssnano":"^6.1.2","dw-utils":"^1.3.137","eslint":"^8.56.0","eslint-plugin-import":"^2.29.0","glob":"^7.1.6","mini-css-extract-plugin":"^2.7.6","minimist":"^1.2.6","sass":"^1.69.7","sass-loader":"^13.3.2","npm-run-all":"^4.1.5","postcss":"^8.2.6","postcss-css-variables":"^0.17.0","postcss-loader":"^7.0.0","revolver-webpack-plugin":"^1.0.4","webpack":"^5.88.2","webpack-cli":"^5.1.4","webpack-fix-style-only-entries":"^0.6.1","webpack-merge":"^5.10.0"},"gitHead":"843a491097d91a1ba74f8339ed593efb0744a981","_id":"@borngroup-accelerator/born-build@1.0.1","_nodeVersion":"18.4.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-iRDUKkH6rNEbYH07d5ZAyq7RzOnDcqejeg+d9Yaf3/awAIgp6dojHKz49N1Q4TGIrQr5d7MCbu54AEQKm5whXw==","shasum":"d97cce484be8adb67ad8078fa54a7111fed70478","tarball":"https://registry.npmjs.org/@borngroup-accelerator/born-build/-/born-build-1.0.1.tgz","fileCount":13,"unpackedSize":34192,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCcuvURp1GfbsboDzSreKsnxwDpPG5aeDrJ9q/oJrcG+AIgFxqC0Gmvvv/+FbC6GsPX8AQPtLmaBQ81rsEDvzpxgK4="}]},"_npmUser":{"name":"nehasharmak","email":"n003sharma@gmail.com"},"directories":{},"maintainers":[{"name":"nehasharmak","email":"n003sharma@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/born-build_1.0.1_1711715564398_0.3589579044319584"},"_hasShrinkwrap":false},"1.0.2":{"name":"@borngroup-accelerator/born-build","version":"1.0.2","description":"Born tool for builds that run on node>= 18","main":"src/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/neha03sharma/born-accelerator-build.git"},"keywords":["build","sfra"],"author":{"name":"SFCC Team @borngroup"},"license":"ISC","bugs":{"url":"https://github.com/neha03sharma/born-accelerator-build/issues"},"homepage":"https://github.com/neha03sharma/born-accelerator-build#readme","dependencies":{"@babel/core":"^7.12.10","@babel/eslint-parser":"^7.12.1","@babel/plugin-syntax-dynamic-import":"^7.8.3","@babel/preset-env":"^7.12.11","autoprefixer":"^10.2.4","babel-loader":"^8.2.2","css-loader":"^6.0.0","cssnano":"^6.1.2","dw-utils":"^1.3.137","eslint":"^8.56.0","eslint-config-idiomatic":"^4.0.0","glob":"^7.1.6","mini-css-extract-plugin":"^2.7.6","minimist":"^1.2.6","sass":"^1.69.7","sass-loader":"^13.3.2","npm-run-all":"^4.1.5","postcss":"^8.2.6","postcss-css-variables":"^0.17.0","postcss-loader":"^7.0.0","revolver-webpack-plugin":"^1.0.4","eslint-webpack-plugin":"^2.4.3","webpack":"^5.88.2","webpack-cli":"^5.1.4","webpack-fix-style-only-entries":"^0.6.1","webpack-merge":"^5.10.0"},"gitHead":"843a491097d91a1ba74f8339ed593efb0744a981","_id":"@borngroup-accelerator/born-build@1.0.2","_nodeVersion":"18.4.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-4PpYhy96GF5KQShsMpt0xZwuj+2G4DOG5p2muDRx4uHe6SpPM4WBV8z2tUNhOs3m3pyMTFHVsoKszIxdPjUX9Q==","shasum":"f96938a10112c049b0fbb9ca4a6cb4c90f82e38f","tarball":"https://registry.npmjs.org/@borngroup-accelerator/born-build/-/born-build-1.0.2.tgz","fileCount":12,"unpackedSize":32767,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDh9e9t/B2pQEbDliETciJG6W22xRu3VcEEaOPG54w4GAiEAoZ0K4bZezECA6wguZ6hd1ftdOTIca6/Kvtww4Ad5hiQ="}]},"_npmUser":{"name":"nehasharmak","email":"n003sharma@gmail.com"},"directories":{},"maintainers":[{"name":"nehasharmak","email":"n003sharma@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/born-build_1.0.2_1711717364497_0.16967440131655787"},"_hasShrinkwrap":false},"1.0.3":{"name":"@borngroup-accelerator/born-build","version":"1.0.3","description":"Born tool for builds that run on node>= 18","main":"src/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/neha03sharma/born-accelerator-build.git"},"keywords":["build","sfra"],"author":{"name":"SFCC Team @borngroup"},"license":"ISC","bugs":{"url":"https://github.com/neha03sharma/born-accelerator-build/issues"},"homepage":"https://github.com/neha03sharma/born-accelerator-build#readme","dependencies":{"@babel/core":"^7.12.10","@babel/eslint-parser":"^7.12.1","@babel/plugin-syntax-dynamic-import":"^7.8.3","@babel/preset-env":"^7.12.11","autoprefixer":"^10.2.4","babel-loader":"^8.2.2","css-loader":"^6.0.0","cssnano":"^6.1.2","dw-utils":"^1.3.137","eslint":"^8.57.0","glob":"^7.1.6","mini-css-extract-plugin":"^2.7.6","minimist":"^1.2.6","sass":"^1.69.7","sass-loader":"^13.3.2","npm-run-all":"^4.1.5","postcss":"^8.2.6","postcss-css-variables":"^0.17.0","postcss-loader":"^7.0.0","revolver-webpack-plugin":"^1.0.4","eslint-webpack-plugin":"^4.1.0","webpack":"^5.88.2","webpack-cli":"^5.1.4","webpack-fix-style-only-entries":"^0.6.1","webpack-merge":"^5.10.0"},"gitHead":"843a491097d91a1ba74f8339ed593efb0744a981","_id":"@borngroup-accelerator/born-build@1.0.3","_nodeVersion":"18.4.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-Mt/SqT1S+Bhr/ulK09K0yeDKzbhnpgiU9ueZlNOj73BNKgkTgFErzacTJZefLBR7TNzICP/A97ZuC3oAJKg7OA==","shasum":"0f00294fda32ed87a36a67cd75fe7c37eb3a4fa0","tarball":"https://registry.npmjs.org/@borngroup-accelerator/born-build/-/born-build-1.0.3.tgz","fileCount":12,"unpackedSize":31530,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQChyvW1qVmWdo+xDcXBmO8/X3PD8U/U8kfqv5I93CS3kgIgFelJtE+XLanOliliLxLmU8uG1O8guS3zyGYycgfShio="}]},"_npmUser":{"name":"nehasharmak","email":"n003sharma@gmail.com"},"directories":{},"maintainers":[{"name":"nehasharmak","email":"n003sharma@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/born-build_1.0.3_1711725492301_0.5017969943583509"},"_hasShrinkwrap":false},"1.0.4":{"name":"@borngroup-accelerator/born-build","version":"1.0.4","description":"Born tool for builds that run on node>= 18","main":"src/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/neha03sharma/born-accelerator-build.git"},"keywords":["build","sfra"],"author":{"name":"SFCC Team @borngroup"},"license":"ISC","bugs":{"url":"https://github.com/neha03sharma/born-accelerator-build/issues"},"homepage":"https://github.com/neha03sharma/born-accelerator-build#readme","dependencies":{"@babel/core":"^7.12.10","@babel/eslint-parser":"^7.12.1","@babel/plugin-syntax-dynamic-import":"^7.8.3","@babel/preset-env":"^7.12.11","autoprefixer":"^10.2.4","babel-loader":"^8.2.2","css-loader":"^6.0.0","cssnano":"^6.1.2","dw-utils":"^1.3.137","eslint":"^8.57.0","glob":"^7.1.6","mini-css-extract-plugin":"^2.7.6","minimist":"^1.2.6","sass-loader":"^13.3.2","sass":"^1.69.7","npm-run-all":"^4.1.5","postcss":"^8.2.6","postcss-css-variables":"^0.17.0","postcss-loader":"^7.0.0","revolver-webpack-plugin":"^1.0.4","eslint-webpack-plugin":"^4.1.0","webpack":"^5.88.2","webpack-cli":"^5.1.4","webpack-fix-style-only-entries":"^0.6.1","webpack-merge":"^5.10.0"},"gitHead":"843a491097d91a1ba74f8339ed593efb0744a981","_id":"@borngroup-accelerator/born-build@1.0.4","_nodeVersion":"18.4.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-L3eoSsH9pobp1xPzlUl+tdvAKsfPAqK/PtPw8lZUtuYCuTZsmZi53f+Eo5NJvbuxwx9Kb9iV8tVGEhYfCvvuzg==","shasum":"bc7dafdf29be271852bf912d9985cd6580c3a989","tarball":"https://registry.npmjs.org/@borngroup-accelerator/born-build/-/born-build-1.0.4.tgz","fileCount":12,"unpackedSize":32731,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBtqYpZ1jxepAwKoByxafzl9HhJ+9eUGeEY/nRwPAx5IAiEAy4OHAMce67gJlHVpmNfx9BUhxILKscUvVehGuxjGNt0="}]},"_npmUser":{"name":"nehasharmak","email":"n003sharma@gmail.com"},"directories":{},"maintainers":[{"name":"nehasharmak","email":"n003sharma@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/born-build_1.0.4_1711975280791_0.2290458871154577"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-29T10:15:47.780Z","1.0.0":"2024-03-29T10:15:48.020Z","modified":"2024-04-01T12:41:21.115Z","1.0.1":"2024-03-29T12:32:44.559Z","1.0.2":"2024-03-29T13:02:44.815Z","1.0.3":"2024-03-29T15:18:12.496Z","1.0.4":"2024-04-01T12:41:20.947Z"},"maintainers":[{"name":"nehasharmak","email":"n003sharma@gmail.com"}],"description":"Born tool for builds that run on node>= 18","homepage":"https://github.com/neha03sharma/born-accelerator-build#readme","keywords":["build","sfra"],"repository":{"type":"git","url":"git+https://github.com/neha03sharma/born-accelerator-build.git"},"author":{"name":"SFCC Team @borngroup"},"bugs":{"url":"https://github.com/neha03sharma/born-accelerator-build/issues"},"license":"ISC","readme":"\n## Build Options & Settings\n\nThe build is setup in the main `config` property of your `package.json` file. The following example showcases the minimum configurations needed, all other options are optional:\n\n\t//Not using Revolver:\n\t\"config\": {\n\t    \"rootFiles\": true,\n\t    \"cartridge\": \"app_accelerator_core\",\n\t    \"js\": {\n\t\t    \"inputPath\": \"cartridges/{cartridge}/cartridge/client/default/js\"\n\t    },\n\t    \"styles\": {\n\t\t    \"inputPath\": \"cartridges/{cartridge}/cartridge/client/**/*.scss\",\n\t\t    \"aliasDirName\": \"scss\"\n\t    }\n    }\n\n\t//Using Revolver:\n    \"config\": {\n\t    \"rootFiles\": true,\n\t    \"revolverPath\": \"plugin_instorepickup, plugin_giftcertificate, app_accelerator_core::core, app_storefront_base::base\",\n\t    \"buildDisable\": \"app_storefront_base\",\n\t    \"js\": {\n\t\t    \"inputPath\": \"cartridges/{cartridge}/cartridge/client/default/js\"\n\t    },\n\t    \"styles\": {\n\t\t    \"inputPath\": \"cartridges/{cartridge}/cartridge/client/**/*.scss\",\n\t\t    \"aliasDirName\": \"scss\"\n\t    }\n    }\n\nThe `js` and the `styles` properties shown above accept any of the available **Build API** options. Use these to make configurations specifically for either JS or Style builds without affecting each other.\n\n## Build API\n\nThere are several options available for you to control how the build behaves.\n\n||||\n|--- |--- |--- |\n|**Property Name**|**Type**|**Description**|\n|rootFiles|Boolean|Default: `true`. Used for the JS build. Whether or not to parse and automatically build any JS files found at the root directory of the input path. This is necessary since SFRA expects files in that location to be built and placed into the equivalent `/static` directory.|\n|revolverPath|String|Default: `plugin_instorepickup, plugin_giftcertificate, app_accelerator_core::core, app_storefront_base::base`. Specify one or more cartridges to use as a priority access and fallback system. Learn more about it in the \"Understanding the revolverPath\" section of this page.|\n|buildDisable|String|Default: `app_storefront_base`. Specify one or more cartridge names you wish to skip the build on. This is important if you want to keep cartridges available for access from other cartridges, however you do not want to build those cartridges directly for one reason or the other.|\n|inputPath|String|Default (JS): `cartridges/{cartridge}/cartridge/client/default/js` Default (Styles): `cartridges/{cartridge}/cartridge/client/**/*.scss`. Specify where your JS and CSS files are located. Usually both JS and CSS have different input paths, it is possible set separate configurations within the individual `js` and `styles` properties of the config object.|\n|outputPath|String|Default (JS): `cartridges/{cartridge}/cartridge/static/default/js` Default (Styles): `cartridges/{cartridge}/cartridge/static` Specify where you want your files to be compiled to after they’re finished building. Usually both JS and CSS have different output paths, it is possible to set separate configurations within the individual `js` and `styles` properties of the `config` object in your package.json file.|\n|mainFiles|String|Default: `main.js`.Specify one or more files to attach to your main entry object for Webpack. This option is largely unnecessary if you’re setting `rootFiles:true`.|\n|mainEntryName|String|Default: `main`.Give a name to your main entry object for Webpack. This option is largely unnecessary if you’re setting `rootFiles:true`.|\n|mainDirName|String|Default: `client`. Set the name of the directory that contains the general “client-side files”, i.e. “js”, “scss”, and the locales.|\n|aliasDirName|String|Default: `scss`.Used for the Styles build only.Since Styles input paths can be more complex due to locale and subdirectory configurations, this property specified which is the “last directory before SCSS root”.|\n|keepOriginalLocation|Boolean|Default: `false`. Used for the Styles build only. SFRA is not sensitive about including static assets using relative paths within CSS (i.e. url(../path/to/file.png)). When this options is set to `false` the build process flattens the CSS file tree structure so that relative paths can be used reliably.|\n|useLocales|Boolean|Default: `true`. The build process can be used outside of SFRA. This flags allows working with file structures where there are no expected locale subdirectories.|\n|defaultLocale|String|Default: `default`. Specify the main locale for your site. Usually this does not need to be changed.|\n|includePaths|String|Used for the Styles build only. Specify one or more additional paths to add to SCSS' includePaths setting.|\n|clean|Boolean|Default: `false`. Deletes JS and CSS files found within the `/static` or output directories before starting a build.|\n|js|Object|It is possible to use any of the properties described in this API within this object. This allows to set options specifically for the JS build so that it doesn’t affect the Styles build. For example, you may want to have separate inputPaths, or possibly even different revolverPaths entirely for your JS vs your Styles build. `\"js\": {  \"inputPath\": \"cartridges/{cartridge}/cartridge/client/default/js\"}`|\n|styles|Object|It is possible to use any of the properties described in this API within this object. This allows to set options specifically for the Styles build so that it doesn’t affect the JS build.For example, you may want to have separate inputPaths, or possibly even different revolverPaths entirely for your Styles vs your JS build. `\"styles\": {  \"inputPath\": \"cartridges/{cartridge}/cartridge/client/**/*.scss\",  \"aliasDirName\": \"scss\"}`|\n\n\n## Understanding the revolverPath\n\n`revolverPath` provides an easy way to list your cartridges in the order in which they should inherit from each other. It also makes it so that it is possible to access files from one cartridge or the other using a simple syntax. If you’re familiar with SFCC’s Cartridge Path, then good news! This works exactly the same way.\n\nGiven a revolverPath of the following structure:\n\n`plugin_instorepickup, plugin_giftcertificate, app_accelerator_core, app_storefront_base`\n\nWe can interpret it the following way:\n-   The further to the left a cartridge appears in the path, the **higher up** in the chain they are.\n-   Conversely, the further to the right a cartridge is, the **lower down** the chain they are.\n\nPut differently, you can also look at the `revolverPath` as if they were stacking or overlaying each other:\n 1. plugin_instorepickup\n 2. plugin_giftcertificate\n 3. app_accelerator_core::core\n 4. app_storefront_base::base\n\nThis distinction is very important, because the **order in which the cartridges are listed matters** for both Relative and Super imports.\n\n**Note:** Always remember to organize your revolverPath in the order you want your cartridges to overlay each other.\n","readmeFilename":"README.md"}