
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
generator-gulp-symfony2
Advanced tools
Yeoman generator
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
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.
MIT
FAQs
Yeoman generator
The npm package generator-gulp-symfony2 receives a total of 3 weekly downloads. As such, generator-gulp-symfony2 popularity was classified as not popular.
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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.