{"_id":"sites","_rev":"7-f949d462164b78f6a40e17f2eb07de07","name":"sites","description":"Super simple static sites","dist-tags":{"latest":"1.0.2"},"versions":{"0.0.1":{"name":"sites","version":"0.0.1","description":"Placeholder for site build scripts. Coming soon!","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"","license":"BSD-3-Clause","_id":"sites@0.0.1","_shasum":"5e2e32033e018da9e172d8f90cf254dd565db40b","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"daniel15","email":"npm@dan.cx"},"dist":{"shasum":"5e2e32033e018da9e172d8f90cf254dd565db40b","tarball":"https://registry.npmjs.org/sites/-/sites-0.0.1.tgz","integrity":"sha512-jVRb+oQPzXDniiyllENB759ERgbaAYri8M4zfTJ+tu4tHLDOj0yOy4C72Xcnak9YmIrn3G0Klnb+Afm+9EpngA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID5KIoTYb4YbblKYwsSzxrxOMx6yJvoZnFyDeUZs8rG5AiEAjuj4s4V4r7o7CHajhqfQtZ0Y1VqEf21Wf1A9CE4vHPY="}]},"maintainers":[{"name":"daniel15","email":"npm@dan.cx"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sites-0.0.1.tgz_1498440199213_0.6336849054787308"}},"1.0.0":{"name":"sites","version":"1.0.0","description":"Super simple static sites","main":"index.js","homepage":"https://dl.vc/sites","repository":{"type":"git","url":"git+https://github.com/Daniel15/sites.git"},"author":{"name":"Daniel Lo Nigro","email":"daniel@dan.cx","url":"https://dan.cx/"},"license":"BSD-3-Clause","dependencies":{"autoprefixer":"^7.1.1","browser-sync":"^2.18.12","gulp":"^3.9.1","gulp-clean":"^0.3.2","gulp-csso":"^3.0.0","gulp-if":"^2.0.2","gulp-newer":"^1.3.0","gulp-postcss":"^7.0.0","gulp-rev":"^7.1.2","gulp-rev-replace":"^0.4.3","gulp-sass":"^3.1.0","gulp-sourcemaps":"^2.6.0","gulp-useref":"^3.1.2","lazypipe":"^1.0.1","postcss-url":"^7.0.0","run-sequence":"^2.0.0"},"gitHead":"7dc2b9c02462dc4a5a0f4ce684a93e6df0c86350","bugs":{"url":"https://github.com/Daniel15/sites/issues"},"_id":"sites@1.0.0","scripts":{},"_shasum":"0c0bcb689afb7bea3abafbafc24cdd326aa2a4f4","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"daniel15","email":"npm@dan.cx"},"dist":{"shasum":"0c0bcb689afb7bea3abafbafc24cdd326aa2a4f4","tarball":"https://registry.npmjs.org/sites/-/sites-1.0.0.tgz","integrity":"sha512-lh27wwspbTZlf1b/NaMXndze7AEkSQMEYgg5NxMbVM8Ja5w9Vr0hB1NJ2Rqa0O2v509J6Lb07/a2tsrSCsy4Hw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHI61AaihJhBIJYopX3Yp2oxvEFlI23+wrphqbJ/voi9AiB5VAGOiPYyESDNWne2ueEACUPQGmoFk5v3AgXmSfq0Gg=="}]},"maintainers":[{"name":"daniel15","email":"npm@dan.cx"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sites-1.0.0.tgz_1498980685012_0.5032856054604053"}},"1.0.1":{"name":"sites","version":"1.0.1","description":"Super simple static sites","main":"index.js","homepage":"https://dl.vc/sites","repository":{"type":"git","url":"git+https://github.com/Daniel15/sites.git"},"author":{"name":"Daniel Lo Nigro","email":"daniel@dan.cx","url":"https://dan.cx/"},"license":"BSD-3-Clause","dependencies":{"autoprefixer":"^7.1.1","babel-preset-env":"^1.5.2","browser-sync":"^2.18.12","gulp":"^3.9.1","gulp-babel":"^6.1.2","gulp-clean":"^0.3.2","gulp-csso":"^3.0.0","gulp-if":"^2.0.2","gulp-newer":"^1.3.0","gulp-postcss":"^7.0.0","gulp-rev":"^7.1.2","gulp-rev-replace":"^0.4.3","gulp-sass":"^3.1.0","gulp-sourcemaps":"^2.6.0","gulp-uglify":"^3.0.0","gulp-useref":"^3.1.2","lazypipe":"^1.0.1","postcss-url":"^7.0.0","run-sequence":"^2.0.0","uglify-es":"^3.0.23"},"gitHead":"87652477afdebdb2d2ef673da9ecc7c11acac558","bugs":{"url":"https://github.com/Daniel15/sites/issues"},"_id":"sites@1.0.1","scripts":{},"_shasum":"a30292c80758f2e3c5c48619fbadfda8b069e275","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"daniel15","email":"npm@dan.cx"},"dist":{"shasum":"a30292c80758f2e3c5c48619fbadfda8b069e275","tarball":"https://registry.npmjs.org/sites/-/sites-1.0.1.tgz","integrity":"sha512-l2m+ZmfrElbAkvS2LtbLPOsl2JjLdsYVsGiHUoIs/aBFQIREkVkDuPmdnwhLc9YHiA/f7ODWL2RlUuqYAEHj5g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0jpn4y7G5jU3sFEwo94wFb+jrd++rzlPbiUTBsKn/eAIhAL65xRnM6i/363H0nKrxJivP/LJH+CB+VeA1bRfOrO82"}]},"maintainers":[{"name":"daniel15","email":"npm@dan.cx"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sites-1.0.1.tgz_1499147889086_0.4441670924425125"}},"1.0.2":{"name":"sites","version":"1.0.2","description":"Super simple static sites","main":"index.js","homepage":"https://dl.vc/sites","repository":{"type":"git","url":"git+https://github.com/Daniel15/sites.git"},"author":{"name":"Daniel Lo Nigro","email":"daniel@dan.cx","url":"https://dan.cx/"},"license":"BSD-3-Clause","dependencies":{"autoprefixer":"^7.1.6","babel-core":"^6.26.0","babel-preset-env":"^1.6.1","browser-sync":"^2.18.13","gulp":"^3.9.1","gulp-babel":"^7.0.0","gulp-clean":"^0.3.2","gulp-csso":"^3.0.0","gulp-if":"^2.0.2","gulp-newer":"^1.3.0","gulp-postcss":"^7.0.0","gulp-rev":"^8.0.0","gulp-rev-replace":"^0.4.3","gulp-sass":"^3.1.0","gulp-sourcemaps":"^2.6.1","gulp-uglify":"^3.0.0","gulp-useref":"^3.1.2","lazypipe":"^1.0.1","postcss-url":"^7.1.2","run-sequence":"^2.2.0","uglify-es":"^3.1.5"},"gitHead":"731f2908064a58af54c17e04b542313b916121f8","bugs":{"url":"https://github.com/Daniel15/sites/issues"},"_id":"sites@1.0.2","_npmVersion":"5.4.2","_nodeVersion":"8.8.1","_npmUser":{"name":"daniel15","email":"npm@dan.cx"},"dist":{"integrity":"sha512-rhvZlM6WH4A5poY3ia4P6XBcy/IIg6/CDMZJP+LP2hIVb/lZSL35MV+qJf/CkPHg0CrMap7T0OcDXNViyyIV7g==","shasum":"6e6a11be91e86fe26b9ca517f1c1175a4548fae1","tarball":"https://registry.npmjs.org/sites/-/sites-1.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCEosYnTRQTSO6Es13Nct+osCXjOxK3+fT9pV/YRNz5TwIhAM3riuQ+PYVNBMpS3KtCFxOyoRJdnr6lcXFX+cwYQnx8"}]},"maintainers":[{"name":"daniel15","email":"npm@dan.cx"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sites-1.0.2.tgz_1509231897825_0.7291454037185758"}}},"readme":"Sites\r\n=====\r\nSites is a small collection of useful utilities for building static websites, without having to configure complex build tools. It works out-of-the-box with close to zero configuration required.\r\n\r\nFeatures\r\n========\r\nSites includes everything you need for a modern static website, out-of-the-box:\r\n- [SASS](http://sass-lang.com/).\r\n- Minification and combination for CSS and JS.\r\n- Live reloading via [Browsersync](https://www.browsersync.io/).\r\n- Cache busting hashes are inserted into filenames for all static files, optimal caching via [far-future expires headers](https://developer.yahoo.com/performance/rules.html#expires).\r\n\r\nUsage\r\n=====\r\ntl;dr: See the `example` directory in this repo for a sample site.\r\n\r\n1. Add the required npm packages to your site, by running `yarn add --dev gulp sites` (or `npm install --save-dev gulp sites` if using npm rather than Yarn).\r\n\r\n2. Create basic directory structure:\r\n    - `assets` for any static files that do not need any processing (images, web fonts, etc).\r\n    - `css` for SASS files. These are compiled into the `_output/css` directory.\r\n\r\n3. Create `gulpfile.js` with the following contents:\r\n\r\n    ```js\r\n    const gulp = require('gulp');\r\n    const sites = require('sites');\r\n\r\n    sites.installTasks(gulp);\r\n    ```\r\n\r\n4. Build static HTML files, referencing CSS files from `_output/css`:\r\n\r\n    ```html\r\n    <!DOCTYPE html>\r\n    <html>\r\n    <head>\r\n      <title>Hello world!</title>\r\n      <link href=\"_output/css/main.css\" rel=\"stylesheet\">\r\n    </head>\r\n    <body>\r\n      <h1>Hello world!</h1>\r\n    </body>\r\n    </html>\r\n    ```\r\n\r\n5. Run `gulp serve` to open the site in your browser. This uses BrowserSync, so any edits to the CSS or HTML files will automatically refresh the browser!\r\n\r\n6. Configure CSS combination by adding some comments to the HTML file:\r\n\r\n    ```html\r\n    <!-- build:css css/combined.css -->\r\n    <link href=\"_output/css/main.css\" rel=\"stylesheet\">\r\n    <!-- endbuild -->\r\n    ```\r\n\r\n7. Run `gulp build` to build the production version of the site. The `_output` directory is now fully optimized and ready to push to production!\r\n\r\n\r\nChangelog\r\n=========\r\n1.0.2 - 28th October 2017\r\n-------------------------\r\n- Copy regular .css files to the output directory, in addition to compiling Sass\r\n- Live reload Sass file when  `css/modules` and `css/partials` directories change\r\n\r\n1.0.1 - 3rd July 2017\r\n---------------------\r\n- Added support for JavaScript. JS files are compiled using Babel\r\n- Include source maps for combined files\r\n\r\n1.0 - 2nd July 2017\r\n-------------------\r\n- Initial release\r\n","maintainers":[{"name":"daniel15","email":"npm@dan.cx"}],"time":{"modified":"2022-06-26T20:23:58.595Z","created":"2017-06-26T01:23:19.315Z","0.0.1":"2017-06-26T01:23:19.315Z","1.0.0":"2017-07-02T07:31:25.118Z","1.0.1":"2017-07-04T05:58:09.194Z","1.0.2":"2017-10-28T23:04:57.911Z"},"license":"BSD-3-Clause","readmeFilename":"README.md","homepage":"https://dl.vc/sites","repository":{"type":"git","url":"git+https://github.com/Daniel15/sites.git"},"author":{"name":"Daniel Lo Nigro","email":"daniel@dan.cx","url":"https://dan.cx/"},"bugs":{"url":"https://github.com/Daniel15/sites/issues"},"users":{"daniel15":true}}