![Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack](https://cdn.sanity.io/images/cgdhsj6q/production/6af25114feaaac7179b18127c83327568ff592d1-1024x1024.webp?w=800&fit=max&auto=format)
Security News
Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
generator-zf5
Advanced tools
Changelog
0.10.0 (04.10.2015)
Readme
Yeoman generator for Zurb Foundation 5.
Foundation 5 and Yeoman generator-zf5
Default option here will be Sass with Libsass (for now). But you can choose Ruby version on startup.
$ npm install -g yo
To install generator-zf5 from npm, run:
$ npm install -g generator-zf5
Finally, initiate the generator:
$ yo zf5
run project (compile Jade, compile Sass, bower install, livereload (server on 127.0.0.1:9000), watch)
$ grunt
publishing project (into dist directory) (compile Jade, compile Sass, validate-js, copy, concatenation, minifications)
$ grunt publish
dist directory preview (server on 127.0.0.1:9001)
$ grunt server-dist
..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 compiling Jade files
$ grunt compile-jade
From version 0.7.0 you can use Ruby version of Sass with Compass. If you want to use Ruby version first of all you need to install compass by 'gem install compass' (it will install Sass gem too).
You don't need to use the config.rb file, all is configured in Gruntfile.js (Sass block). There will be also Compass imports in _appstyles.scss (You can modify it). If you have any problems with using Sass with Compass it is good to uninstall any of your Sass gems and Compass gems and install only Compass gem again. It will fetch proper version of Sass gem.
Ruby Sass config info: https://github.com/gruntjs/grunt-contrib-sass
You can also use Libsass version (default) which is very fast, but it is compatible with only older Sass 3.3. For Foundation it is ok. And I think soon it will be improved.
Node Sass config info: https://github.com/sindresorhus/grunt-sass
Please test this and send issues if any.
From version 0.8.0 you can use Jade templating engine (option). It gives you clean and simple html syntax and (whats important) it allows you to use partials includes like header or footer. Example:
html(class="no-js", lang="en")
include partials/header
body
div.row
div(class="small-12 columns panel radius")
h1 Yo Foundation 5!
h2(class="text-right")
a(href="https://github.com/juliancwirko/generator-zf5")
i(class="fa fa-twitter")
include partials/footer
More about Jade: http://jade-lang.com/
For LiveReload call 'grunt' (watching) command and go to http://127.0.0.1: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'.
yo zf5
You should run npm cache clean
sudo chown -R `whoami` ~/.npm
hostname: '[your hostname]'
line to options: {...}
<!-- 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.
@juliancwirko | julian.cwirko@gmail.com
..see CHANGELOG.md file
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
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.
Security News
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.