{"_id":"@didando8a/gas-bundler-test","_rev":"3-db941f4c291463dc2145833a8619369c","name":"@didando8a/gas-bundler-test","dist-tags":{"latest":"1.0.7"},"versions":{"1.0.4":{"name":"@didando8a/gas-bundler-test","version":"1.0.4","description":"Bundle all files Google App Scripts (GAS) files into one,  so it can be tested in nodejs","main":"./scr/main.js","scripts":{"lint":"eslint src/","lint:fix":"eslint --fix --quiet src/","test-unit":"export NODE_ENV=test && jest --runInBand --detectOpenHandles --forceExit tests/unit/"},"keywords":["GAS","Google App Scripts","Bundler","Test"],"author":{"name":"didando8a"},"license":"ISC","devDependencies":{"eslint":"^8.39.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-standard":"^17.0.0","eslint-plugin-import":"^2.27.5","eslint-plugin-n":"^15.7.0","eslint-plugin-promise":"^6.1.1","jest":"^29.5.0"},"gitHead":"b156ec73fb5365850e3e72676ab898a1c0584281","_id":"@didando8a/gas-bundler-test@1.0.4","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-NHa2NCt8kyeMFndnkfCH8K/AgQjmKxRQyj+TWHC10zRgVgjXjEncr91+wkTNKrSZv6U0iiu73jykCPEEV3qimA==","shasum":"6bbbaca4951c87cb3ce28465aa37c522e9850032","tarball":"https://registry.npmjs.org/@didando8a/gas-bundler-test/-/gas-bundler-test-1.0.4.tgz","fileCount":11,"unpackedSize":11930,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG0RFwu+dbL2MlwItu/NFBSY2Zi48430upV9h+QI42kLAiEAogl0CktafMRA7KccZUvg8EJbSZ5y6qp8xJhQ5cNpiCo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUDGTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo5ZQ/9GUNYAhPQDM3DOF+k6/O1GdAk2+LtWbunHWtNPytsIFe2F+G1\r\n0JiKYrelkEyls5CpAXTN6E+tSW1uVUyi95/mkB29UzgifNoUY+DdJCXDEedb\r\nHTRH+Yarn95mlvq+xrXLxO77AQihj+LFRgFk4mL7qbsZnXIcrtqIhZRRN5lx\r\nF+Hl0lhJRtsB2E69dCuC4Vx31q3aAOscvClRP8l4auQqNgBV/pbTHag7dpSk\r\nwPQI0NE7t0Dv8+7rZKo/IDVUKbRWhheowkunDPI8sKuQOa4fHzBANyClmGNJ\r\nsmxH+jgxyi4rIkST9YO1ZhjbKAUX43p7pZoUW+8nuFWh3cTzl84sIuiTv3eC\r\nsttHp9uf4XyeFhtw6dOfx9POpZ5BZNGgtT/G90g3Mkh2jN17NESF8aeQkpGM\r\nvGCc4WVC+cJ3LliFD3WAOU+GysXmLc4Bh7AO1O2t3tKZVpkt9wS2pnHWMLRp\r\nxE91OI50PEhWgtGMtzjCRWJeAZev0/tPCyZjDtV/rtHHat6749QUYZAMlmhg\r\nKKC5xMVH/5C9t9r8CVnfXgpzg27nmzjD3KkOuPDkGF5pa0Xv1d8k9QrKJ933\r\nPuNOTZEn5TCVzIKTkpCd7Yx1bMnRooXkMRXkevMGo8AbS1EGt47CI6iLEOKX\r\nolagJJovBumPbdwILWqfyNv+kZxF8YBAyZY=\r\n=G0lO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"didando8a","email":"didando8a@gmail.com"},"directories":{},"maintainers":[{"name":"didando8a","email":"didando8a@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gas-bundler-test_1.0.4_1682977171153_0.9265155009852004"},"_hasShrinkwrap":false},"1.0.5":{"name":"@didando8a/gas-bundler-test","version":"1.0.5","description":"Bundle all files Google App Scripts (GAS) files into one, so it can be tested in nodejs","type":"module","main":"./src/main.js","scripts":{"lint":"eslint src/","lint:fix":"eslint --fix --quiet src/","test-unit":"export NODE_ENV=test && jest --runInBand --detectOpenHandles --forceExit tests/unit/"},"keywords":["GAS","Google App Scripts","Bundler","Test"],"author":{"name":"didando8a"},"license":"ISC","devDependencies":{"eslint":"^8.39.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-standard":"^17.0.0","eslint-plugin-import":"^2.27.5","eslint-plugin-n":"^15.7.0","eslint-plugin-promise":"^6.1.1","jest":"^29.5.0"},"gitHead":"fb14226852ad280d7290762f69b4f16722ed1486","_id":"@didando8a/gas-bundler-test@1.0.5","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-LAQftvXIyV/T0dLpxz7qMJZCFB4pfFePenWOCUlUp+WqTwaCGpBDkUmudpVsR6YLqtGUAejyH/SXXffpAPUxLw==","shasum":"616e85ca755df8a817f9196429c9097bca28d0d1","tarball":"https://registry.npmjs.org/@didando8a/gas-bundler-test/-/gas-bundler-test-1.0.5.tgz","fileCount":11,"unpackedSize":12187,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCd/1arAgHLTNqgb77IFCkMbN+fSIkkOVTZPkv91CDKSgIhAPAs0eWv73rDfBiNKUTlrgYFVGmczgPd85un9pwMz0z4"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUDqbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrCxg//V1AYAzvanCiz/snCQPPIlaZHaekorIxsdTgmFW/jKm3J8hrt\r\n8KhhjPbCQISVd4icjTkWfD4jX7dxFWR2egJ/KXclZAspZ7LoihO9SnK/RVUH\r\nCbswUAFZjsi8NMZdIfWQWdXbDpdEzfTDMh1D8e5QnYJWItMbuvE1qTwEatF5\r\nN0KPJFdvwczOdX+5aqFYtRwtVJlyYr7DJrrFQy8lW5ElLrc6OtZVh+lBDAer\r\nehDy45UOVaFlyhtSm2NMhy07NX0TVoMXc+kX0DiAJ23dnvT1ChaOBe6jouMT\r\nVIB6Vb8UfhtrKhy0zsiFEkdmU+bJYOxBijwokaq5Iwn93iN2DT3aB9N7WfJA\r\n318qWw+szDsR6T4QmE4ADvxBEi21zRjpEiaWGBSnlmKdsfNxmBb6pY/x47GL\r\ny4fSc7Yj+4uzFacxq4NMlMHv5Ydcdr7uVYlwbFmUQOpg27mm3HYbdxeFduKc\r\n4LQBwaKnxGFJ9etVA5UZtm4wIoiDXhSwRDx48A/VWFVQ02ltpEf3bHvJkI66\r\nyyGPZnGzm5EvuE5T6ek4o2eHALUJC7/V7vX1+rhL9HpD1roA1HY0PGqtSIQL\r\nwAltI3vDrM5PwfUi4wC84Kmuy/zMjFjP33HTt4vGkExXY7t74yoSLsiaOogB\r\n7I/QtRN5el8Fq6ia117uZ8uZGbCvFsAyk6o=\r\n=0sJ3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"didando8a","email":"didando8a@gmail.com"},"directories":{},"maintainers":[{"name":"didando8a","email":"didando8a@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gas-bundler-test_1.0.5_1682979483074_0.5756845603547693"},"_hasShrinkwrap":false},"1.0.6":{"name":"@didando8a/gas-bundler-test","version":"1.0.6","description":"Bundle all files Google App Scripts (GAS) files into one, so it can be tested in nodejs","type":"module","main":"./src/main.js","scripts":{"lint":"eslint src/","lint:fix":"eslint --fix --quiet src/","test-unit":"export NODE_ENV=test && jest --runInBand --detectOpenHandles --forceExit tests/unit/"},"keywords":["GAS","Google App Scripts","Bundler","Test"],"author":{"name":"didando8a"},"license":"ISC","devDependencies":{"eslint":"^8.39.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-standard":"^17.0.0","eslint-plugin-import":"^2.27.5","eslint-plugin-n":"^15.7.0","eslint-plugin-promise":"^6.1.1","jest":"^29.5.0"},"gitHead":"310ab37388e45215666c09e8927e867e38268177","_id":"@didando8a/gas-bundler-test@1.0.6","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-dGOqCfnQEmgFiI4Yc/L1x2QhuTduhf+R6lDvv7XZrQjeLP/Ok8XSU+zcyN7yxy8dQoz4P6dI35/WNFPXcHCLrg==","shasum":"f325ebfe29bd6f823acabf041d0ae4598a2b4ba7","tarball":"https://registry.npmjs.org/@didando8a/gas-bundler-test/-/gas-bundler-test-1.0.6.tgz","fileCount":11,"unpackedSize":14229,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFMKGOHSZRi50es7r8MPMPByV2mRBpQvEp4pE6K7KlD4AiEAxqST1IOCxFCCHQ/Gyq6E0BvApOMFoX2edj0GdZJ4k2M="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUEOvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp3oxAAkdGbTaK/LlmZx2CI+BXlvlGV7FJlqHcU+M5YEz9jvEbVbJMK\r\nO/55phW4JL2PO7uVo/HlZyABBJ7tmUezmQzePgaeXj4k64uo999ruoyyBNNn\r\nVQGPOhfRpx/AOD0J80p6Dq+HFlz/BABdqDlnf2Lj2+LsQOLfcezJBupK56Oc\r\nAIzgdEMuki1zb4KE3z+YCQfuniUv/xO5vs+zXpPxpJh0965ksAgWFUrIzVwv\r\nzPE8d8WV5INVtP8rv6Fs3TErVHee/DmvE0XSk52e3ElDoinZWvWjfBwQXNf2\r\nAF820jM6RuDDv0/aUYojZULBbXw9QkKc91M2pZWjgXReeQzOoddCxCmDhU99\r\nL3GGx2UGEKeLnpUpddVOd2stc2yxeUok1fAyq1MTbmUPK4TbDVmo4PhRiKv4\r\nJ40wkz/KPgP1vMJNt6jhTRpZWg1OT4X+9lPVRQn9dNDKUn/wlgjR4huF5btx\r\nrNx63FCcwbBt2GQXh7vKuo06KGD+zM5l5az+tM4RNQWiBUkT/sY8oXVY3oK6\r\ndaq15vKPAOurY/sLjCUIr8xKvMGgZG/DhrtV79B//dQZcVLONyIBDDvOz5MS\r\nwgD2gurtLiSzXcogusnYs51YvOmLbEJzWBsV1rSMmHgEOJ/EsRc6RuotHiuQ\r\n6MEBDzf5RXcbAPLSM0vZWAJP7RbHNAXVwI4=\r\n=TzUE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"didando8a","email":"didando8a@gmail.com"},"directories":{},"maintainers":[{"name":"didando8a","email":"didando8a@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gas-bundler-test_1.0.6_1682981807576_0.05603803336995106"},"_hasShrinkwrap":false},"1.0.7":{"name":"@didando8a/gas-bundler-test","version":"1.0.7","description":"Bundle all files Google App Scripts (GAS) files into one, so it can be tested in nodejs","type":"module","main":"./src/main.js","scripts":{"lint":"eslint src/","lint:fix":"eslint --fix --quiet src/","test-unit":"export NODE_ENV=test && jest --runInBand --detectOpenHandles --forceExit tests/unit/"},"keywords":["GAS","Google App Scripts","Bundler","Test"],"author":{"name":"didando8a"},"license":"ISC","devDependencies":{"eslint":"^8.39.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-standard":"^17.0.0","eslint-plugin-import":"^2.27.5","eslint-plugin-n":"^15.7.0","eslint-plugin-promise":"^6.1.1","jest":"^29.5.0"},"repository":{"type":"git","url":"git+https://github.com/didando8a/gas-bundler-test.git"},"gitHead":"ac3959334bdd13ecb41217d9ef77ca7c5bda1850","bugs":{"url":"https://github.com/didando8a/gas-bundler-test/issues"},"homepage":"https://github.com/didando8a/gas-bundler-test#readme","_id":"@didando8a/gas-bundler-test@1.0.7","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-bQiFEfMTD9zzyK+pKnY5IxOUEUKaMoE3MhIQ64L3QN+Xly6/4sY4yGvKBuiqLESoVFuUEjmY6Tm3OQsQ6tgSPw==","shasum":"d83df4e1cca1a0d67e99cf452bcc31da1f81e852","tarball":"https://registry.npmjs.org/@didando8a/gas-bundler-test/-/gas-bundler-test-1.0.7.tgz","fileCount":11,"unpackedSize":14338,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFjdZN3cWZhZOpl5dHhAGWoSvR6ZWldNWpnKjAI/gPXgAiA04wUhlwnnCbAC8+nfS1VEyGBB4du0cCmlbmufGA1+1w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkVC5QACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqP2w//aAW+ZaMsZ4wu/iZjNVfAmMk5EEf69u/ULkMHyBDp1RGkQRq3\r\nJdm9Rrxn/2FCIuBUfqvJ927D4uH7iA6rE8fr3Y3MQZuqLMMr2bwP4UJ+urbC\r\n+wAEgy3jDnB4RNt2jsTZTJ5jrJZshR6hVTWRlrWB9zLxOYOO2kXIQPf+DV2l\r\n+KXj79r6lRLj5VQrlobB2P5wI5NTEcbOzWpw2h4dlLCFAkH5+jGk+sdrfukF\r\nG2VAEjHf3FgpRaWaOpu0Ofjc68TBl+0UsF9uoG7pBFNNEfas1casin9lK6Yv\r\nc9N85TmLJHmw1iicJIMLfo0uQsoqYsQnuv18GTYz8FZgletqUITQwKF7DG5b\r\noNPmQ9ofO+jLhstu+tJc440Aiuczjs0Lys3/wo2WhbbolWl8jFbx8bahLf8H\r\njVEyvj5TZ50gPo57HmRYLLbgCpwZqKEfvL7YJLR2qaivykuv1DVaC+k3p2Me\r\ndSpSIdXCOczCLeHX29gwFlC5bgtFVmKZ32j7mlBSjF6Bcfr740pytn69PB37\r\naOqCqm2Wgv4RVXlIHiNzXCJIB/+KdxGBFGTF7quBNC1DouilBvgQIIvicTWZ\r\nnH+j677gJjYhX5m2G3yYwbYK1SwUd7fBh4508vbH+4gQiBrMyD1xZWIoYAbJ\r\ncGr56Mg0V2Zr8nACwC7IwQ0GJOoRxEESB2g=\r\n=jmiW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"didando8a","email":"didando8a@gmail.com"},"directories":{},"maintainers":[{"name":"didando8a","email":"didando8a@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gas-bundler-test_1.0.7_1683238480464_0.8223538874173482"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-01T21:39:31.092Z","1.0.4":"2023-05-01T21:39:31.304Z","modified":"2023-05-04T22:14:40.871Z","1.0.5":"2023-05-01T22:18:03.233Z","1.0.6":"2023-05-01T22:56:47.750Z","1.0.7":"2023-05-04T22:14:40.766Z"},"maintainers":[{"name":"didando8a","email":"didando8a@gmail.com"}],"description":"Bundle all files Google App Scripts (GAS) files into one, so it can be tested in nodejs","keywords":["GAS","Google App Scripts","Bundler","Test"],"author":{"name":"didando8a"},"license":"ISC","readme":"# gas-bundler-test\n\nBundle all files Google App Scripts (GAS) files into one,\nso it can be tested in nodejs\n\nGoogle Apps Scripts treats all function define in project\nas global, making it hard to tests our project at development\nlevel.\n\nThe intention of this simple library is to bundle all\nthe files specified by the user in one function or file\nthat can be imported and tested.\n\n## Install\n\n> npm install @didando8a/gas-bundler-test\n\n## How to use\n\nLet's say you project has a src folder where all your\nGoogle App Scripts reside and want to use it for testing purposes in\nyou test/unit files\n\n### Bundling and writing to a file\n\n```javascript\nconst gasBundlerTest = require('@didando8a/gas-bundler-test');\n\n// Create a Bundler class\n// Get all files in src (first parameter) \n// and create a file with the bundled output in test/ specified it as a second parameter\nconst bundler = new gasBundlerTest.Bundler(\"src\", \"tests\");\n\n// Bundle and export all function in the bundle modules specified in the first parameter,\n// In this case export divide_numbers and test_test functions.\n// If there are external libraries used and want to be mocked when testing, specify the into \n// an array as a second parameter so that they are added to the global scope\nbundler.bundle(['divide_numbers', 'test_test'], ['SpreadsheetApp'])\n\n// A file test/gasBundler.js will be created\n// Require the bundle file in other tests so it can be tested\n```\n\n### Bundling without writing to a file (Creating a function)\n```javascript\nconst gasBundlerTest = require('@didando8a/gas-bundler-test');\n\n// Create a Bundler class\n// Get all files in src (first parameter) \n// and create a fucntion with the bundled output\nconst bundler = new gasBundlerTest.Bundler(\"src\");\n\n// Bundle and export all function in the bundle modules specified in the first parameter.\n// If there are external libraries used and want to be mocked when testing, specify the into \n// an array as a second parameter so that they are added to the global scope\nconst gasFiles = bundler.bundle(['divide_numbers'], ['SpreadsheetApp']);\n\n// functions can be tested strait away\ngasFiles.divide_numbers();\n```\n","readmeFilename":"README.md","homepage":"https://github.com/didando8a/gas-bundler-test#readme","repository":{"type":"git","url":"git+https://github.com/didando8a/gas-bundler-test.git"},"bugs":{"url":"https://github.com/didando8a/gas-bundler-test/issues"}}