Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
generator-zf5
Advanced tools
Yeoman generator for Zurb Foundation 5.
$ npm install -g yo
To install generator-zf5 from npm, run:
$ npm install -g generator-zf5
Finally, initiate the generator:
$ yo zf5
Grunt tasks:
..for validating javascript
$ grunt validate-js
..for injecting bower libraries (also in default grunt task)
$ grunt bower-install
..for compiling Sass files
$ grunt compile-sass
..for watching (Sass, Server on 0.0.0.0:9000 with LiveReload)
$ grunt
..for publishing project (dist directory)
$ grunt publish
..for dist directory preview (server on 0.0.0.0:9001)
$ grunt server-dist
For LiveReload call 'grunt' (watching) command and go to http://0.0.0.0:9000
Read more about grunt-usemin
Now you can install your libraries much faster. Example:
bower search magnific-popup
...
bower install magnific-popup --save
...
grunt bower-install
This should inject the proper js and css paths into your html files. But you should be careful and check what was injected. 'grunt publish' will then minify and concatenate them into a clean (libraries.min.css and libraries.min.js) files. Instead of a 'bower install' with '--save' you can manualy edit the bower.json file and then run a 'grunt bower-install'. It is also included in the default task - 'grunt'.
<!-- build:js js/mfpopup/mfpopup.min.js -->
<script src="js/mfpopup/mfpopup.js"></script>
<!-- endbuild -->
and
<!-- build:css css/mfpopup/mfpopup.min.js -->
<script src="js/mfpopup/mfpopup.js"></script>
<script src="js/mfpopup/other_script.js"></script>
<!-- endbuild -->
you can add new ones
You can test it and tell me please if something is not working.
Yeoman has a heart of gold. He's a person with feelings and opinions, but he's very easy to work with. If you think he's too opinionated, he can be easily convinced.
If you'd like to get to know Yeoman better and meet some of his friends, Grunt and Bower, check out the complete Getting Started Guide.
Maybe someone (English speaker) would like to prepare tutorial for zf5 generator? I will be very thankful :)
@juliancwirko | julian.cwirko@gmail.com
FAQs
Yeoman generator for Zurb Foundation 5
The npm package generator-zf5 receives a total of 5 weekly downloads. As such, generator-zf5 popularity was classified as not popular.
We found that generator-zf5 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.