{"_rev":"3-4b2583a59c8040183769a37b8daefdbc","time":{"created":"2022-10-21T08:29:51.500Z","1.3.1":"2022-10-21T08:20:32.717Z","modified":"2022-10-21T08:29:51.914Z","1.3.2":"2022-10-21T08:29:51.741Z"},"_id":"@amanda-wegrzynkiewicz-droptica/drupal-js-build","name":"@amanda-wegrzynkiewicz-droptica/drupal-js-build","dist-tags":{"latest":"1.3.2"},"versions":{"1.3.2":{"name":"@amanda-wegrzynkiewicz-droptica/drupal-js-build","version":"1.3.2","description":"Command line tool to build JS files \"the Drupal way\"™ ","main":"index.js","repository":{"type":"git","url":"git+https://github.com/amanda-wegrzynkiewicz-droptica/drupal-js-build.git"},"homepage":"https://github.com/amanda-wegrzynkiewicz-droptica/drupal-js-build#readme","bugs":{"url":"https://github.com/amanda-wegrzynkiewicz-droptica/drupal-js-build/issues"},"author":{"name":"The Frontkom Contributors"},"license":"GPL-2.0-or-later","keywords":["Drupal","Frontkom","Javascript","ES6","CSS","SASS","SCSS"],"engines":{"yarn":">= 1.6","node":">= 8.11"},"scripts":{"drupal-js-build":"node ./index.js"},"bin":{"drupal-js-build":"index.js"},"dependencies":{"@babel/core":"^7.17.9","@babel/plugin-transform-runtime":"^7.17.0","@babel/preset-env":"^7.16.11","@babel/preset-react":"^7.16.7","@babel/register":"^7.17.7","babel-plugin-add-header-comment":"^1.0.3","chalk":"^2.3.0","chokidar":"^2.0.0","cross-env":"^5.1.3","dotenv-safe":"^5.0.1","eslint":"^4.19.1","eslint-config-airbnb":"^17.0.0","eslint-config-prettier":"^2.9.0","eslint-plugin-import":"^2.13.0","eslint-plugin-jsx-a11y":"^6.0.3","eslint-plugin-prettier":"^2.6.2","eslint-plugin-react":"^7.10.0","glob":"^7.1.2","minimist":"^1.2.6","mkdirp":"^0.5.1","prettier":"^1.14.0","sass":"^1.50.1","stylelint":"^9.1.1","stylelint-checkstyle-formatter":"^0.1.1","stylelint-config-standard":"^18.2.0","stylelint-no-browser-hacks":"^1.1.0"},"gitHead":"33be0939f7ee04cf1e5214314c40b433479706ba","_id":"@amanda-wegrzynkiewicz-droptica/drupal-js-build@1.3.2","_nodeVersion":"14.20.1","_npmVersion":"6.14.17","dist":{"integrity":"sha512-f0QOnNmSfg0i/GKQMoD/GkbtPuNoZP1lLGNcx7F8BJAJzub3GvReqxLTvjCsfY6GOuDWHY8OpvJo5QcjQ+uLFQ==","shasum":"47a6b3e360ff92f50c1528ea4355fd63cb9c0127","tarball":"https://registry.npmjs.org/@amanda-wegrzynkiewicz-droptica/drupal-js-build/-/drupal-js-build-1.3.2.tgz","fileCount":16,"unpackedSize":16993,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDw7VdkNAJxjwQ0IjgBeonR/lhHP/cqH2fhyMtELrr7yQIhAOAbpaJVzxf+x0lKfgbLatKO3ac1n/0jIiLd5bFpijXq"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUlh/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoVGRAAoQyXW/ZLQkvCLlMUZWicGGgR/EY4FaKzzluV0JgAlRcKjVJD\r\naf1abpiglpT8LvzRBnQsfKz/Gnuv3AyZNWCzVfac+igzrjzp/3ztYP44tlPU\r\nRLl2+PCiCs+VUbf0nUEpDzL4JPH7QpfZanEL2axH3FTCQ+IHy/zZHH30tENs\r\n9hpKc09Kp9hMuw0UvzzxWjC8buqKvE6GWO7p5YGl1xs9fMQnzB+8wNYMLBHb\r\n8RW7fyzQZStAOdFzkPBusvd9q8O1Zad/L6pnx1l13I+fuwI/rzRA98B43tK8\r\n/oY1VwF+DWql0JLgW/3+cs+GAZd8wlrTqyhYOyRMAgdDBwWIU1PFBo2NGNth\r\n9TwFmMrs3beBCitDIAzPjuZdAUx+uAXM5WbcBPTnncffHiSLhIfeAVT8JvFJ\r\nCzd/+mLXnrBfGs8ev4qPNyWcza6QJvoEvZP9IQdUWzxPMSxVLlgQqz77oOPG\r\nPEbeEQvXHivUsFy2/dAgZdGEwiWayr2uIp4x6PUEiIOXnFzWgJ1vYk1BcDLg\r\nVUqzcdsE/gU+404bXAf1QtjWWkGGeP7zCcMo6AWCBsOgx7VacMmFA27KYjI5\r\nhUWZmYU1CFDxnJPwKfABb+bh26LfosTWkhQ6OeMrZXlGp8fv3bqvcFCynh0L\r\nw86Dory7+mRSL7922wUWuZeIp9Apx1r23uI=\r\n=rThb\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"amanda-wegrzynkiewicz-droptica","email":"amanda.wegrzynkiewicz@droptica.com"},"directories":{},"maintainers":[{"name":"amanda-wegrzynkiewicz-droptica","email":"amanda.wegrzynkiewicz@droptica.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/drupal-js-build_1.3.2_1666340991555_0.12053330256782124"},"_hasShrinkwrap":false}},"maintainers":[{"name":"amanda-wegrzynkiewicz-droptica","email":"amanda.wegrzynkiewicz@droptica.com"}],"description":"Command line tool to build JS files \"the Drupal way\"™ ","homepage":"https://github.com/amanda-wegrzynkiewicz-droptica/drupal-js-build#readme","keywords":["Drupal","Frontkom","Javascript","ES6","CSS","SASS","SCSS"],"repository":{"type":"git","url":"git+https://github.com/amanda-wegrzynkiewicz-droptica/drupal-js-build.git"},"author":{"name":"The Frontkom Contributors"},"bugs":{"url":"https://github.com/amanda-wegrzynkiewicz-droptica/drupal-js-build/issues"},"license":"GPL-2.0-or-later","readme":"# ⚒ Drupal JS Build\n\nCommand line to build JS files the way Drupal core does.\n\nJust create your JS files as [name].es6.js. When this tool is executed, those files will be compiled by Babel to [name].js.\n\nThe script files were directly taken from Drupal core codebase and updated to \nsupport custom build configurations using the `.drupalbuild.js` file. \nThe default configuration will match Drupal's default behaviour/convention.\n\n## Overview\n\nInstall it:\n\n```\nnpm i drupal-js-build --save-dev\n```\n\nor globally:\n\n```\nnpm i -g drupal-js-build\n```\n\nTo build the files:\n\n```\nnpx drupal-js-build\n```\n\nTo watch the files:\n\n```\nnpx drupal-js-build watch\n```\n\n### Bonus\nThis tool can also compile SASS files using `node-sass`. \n\nThe recommended folder structure is `./css/sass/[file].scss`. The files will be compiled to parent folder as `./css/[file].css`\n\nTo compile js and scss files:\n\n```\nnpx drupal-js-build --css\n```\n\nor\n\n```\nnpx drupal-js-build watch --css\n```\n\nTo compile scss files only:\n\n```\nnpx drupal-js-build --only-css\n```\n\nor\n\n```\nnpx drupal-js-build watch --only-css\n```\n\n### Configuration.\n\nYou may configure how the script runs by creating a local `.drupalbuild.js` file\nin the working directory running the script.\n\nAn example configuration is available below:\n \n ```javascript\nmodule.exports = {\n  ignoreList: [\n    // Don't include the local .ignore-me folder.\n    './.ignore-me/**'\n  ],\n  watchSettings: {\n      // Additional settings to pass along to chokidar.watch\n      usePolling: true, // Use polling in non-standard environments.\n  },\n  sassSettings: {\n    // Additional settings to pass along to the node-sass.render.\n    sourceMap: false, // Disable CSS sourcemaps.\n  },\n  jsHeader: `Custom JS header comment`, // May be set to null to remove the header.\n  cssHeader: `/**\\n * Custom CSS header comment.\\n **/\\n`, // May be set to null to remove the header.\n  files: {\n    // Note: All matched files must end in '.es6.js'\n    jsSrc: './**/*.es6.js',\n    jsDestination: './', // Relative to the currently processed es6.js file.\n    // Note: All matched files must end in '.scss'\n    scssSrc: './css/**/[!_]*.scss', \n    scssDestination: '../',  // Relative to the currently processed scss file.\n  },\n};\n```\n","readmeFilename":"README.md"}