
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
generator-gulp-symfony2
Advanced tools
Yeoman generator
bundle install
after generate (if use bundle).gulp_symfony2_proxy: 'example.com'
.Trick question. It's not a thing. It's this guy:
Basically, he wears a top hat, lives in your computer, and waits for you to tell him what kind of application you wish to create.
Not every new computer comes with a Yeoman pre-installed. He lives in the npm package repository. You only have to ask for him once, then he packs up and moves into your hard drive. Make sure you clean up, he likes new and shiny things.
npm install -g yo
Yeoman travels light. He didn't pack any generators when he moved in. You can think of a generator like a plug-in. You get to choose what type of application you wish to create, such as a Backbone application or even a Chrome extension.
To install generator-gulp-symfony2 from npm, run:
npm install -g generator-gulp-symfony2
Finally, go to symfony2 root project and initiate the generator:
yo gulp-symfony2
.
├── app
│ └── Resources
│ └── public
│ ├── fonts
│ │ └── roboto
│ │ ├── RobotoCondensed-Regular.eot
│ │ ├── RobotoCondensed-Regular.ttf
│ │ └── RobotoCondensed-Regular.woff
│ ├── images
│ │ └── yeoman.png
│ ├── scripts
│ │ └── bar.js
│ ├── styles
│ │ ├── bar.css
│ │ └── bar.scss
│ └── vendor
├── bower.json
├── config.rb
├── Gemfile
├── Gemfile.lock
├── gulpfile.js
├── gulp-symfony2.yml
├── node_modules
├── package.json
└── web
├── fonts
│ ├── RobotoCondensed-Regular.eot
│ ├── RobotoCondensed-Regular.ttf
│ └── RobotoCondensed-Regular.woff
├── images
│ └── yeoman.png
├── scripts
│ └── foo.js
└── styles
└── foo.css
gulp-symfony2.yml
:
styles:
foo.css:
- app/Resources/public/styles/bar.scss
scripts:
foo.js:
- app/Resources/public/scripts/bar.js
Twig:
...
{% block stylesheets %}
<link rel="stylesheet" href="/styles/foo.css">
{% endblock %}
...
{% block javascripts %}
<script src="/scripts/foo.js"></script>
{% endblock %}
...
...
Build:
gulp build
Watch & rebuild file changed (dev):
gulp serve
MIT
FAQs
Yeoman generator
We found that generator-gulp-symfony2 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
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.