evolution7 / generator-symfony Goto Github PK
View Code? Open in Web Editor NEWYeoman generator that scaffolds out a Symfony 2 PHP web app
License: MIT License
Yeoman generator that scaffolds out a Symfony 2 PHP web app
License: MIT License
Following a Grunt "build", a developer must manually clear the Symfony cache to ensure the latest Twig (dist) templates are used in production.
We can further automate the build process by adding a new grunt task to clear the Symfony (production) cache at the end of a build.
Essentially just need to execute:
vagrant ssh -c "/vagrant/app/console cache:clear --env=prod"
Loading "Gruntfile.js" tasks...ERROR
Error: Cannot find module 'time-grunt'
Warning: Task "default" not found. Use --force to continue.
Just wondered if someone could help me out with this
Currently you have to separately enter the github user, repo, and version number which is pretty annoying
Hi, seems the json for composer.json is invalid, missing a comma on line 21, https://raw2.github.com/evolution7/generator-symfony/master/app/templates/symfony/composer.json#
grunt build run with warnig:
Warning: Cannot use 'in' operator to search for 'devFile' in web/bower_components/modernizr/modernizr.js Use --force to continue.
solution:
you need to convert the modernizr task into a multitask & add "files" : {"src": [] },
Gruntfile.js
modernizr: { //https://github.com/Modernizr/grunt-modernizr/issues/48#issuecomment-31007556 dist: { devFile: '<%= yeoman.app %>/bower_components/modernizr/modernizr.js', outputFile: '<%= yeoman.dist %>/bower_components/modernizr/modernizr.js', files:{ //https://github.com/Modernizr/grunt-modernizr#config-options src: [ '<%= yeoman.dist %>/scripts/{,*/}*.js', '<%= yeoman.dist %>/css/{,*/}*.css', '!<%= yeoman.dist %>/scripts/vendor/*' ] }, uglify: true } },
Symfony will throw an error about it being there twice if the used symfony2 project already has it.
I followed the Getting started process and everything works well until i execute the command npm install (required for me to complete the installation).
The process hangs without any error message.
In the root folder of my symfony project, in the file package.json, replace this line:
"grunt-usemin": "git+ssh://[email protected]/yeoman/grunt-usemin.git#v2.0",
by this one:
"grunt-usemin": "~2.1.0",
There is a hardcoded git+ssh
reference for grunt-usemin in app/templates/_package.json
. This should be fixed to become an https connection so people don't need to have an ssh configured in Github to be able to use the generator.
Just a replacement for precise64. Shouldn't cause any problems, but we'll need to test it anyway.
Hello, i'm very new to symfony and yeoman, so please forgive me if it sounds like a noob question.
i followed the gihub read me :
Install: npm install -g generator-symfony
Run: yo symfony
// i run composer install and composer update (here because before i did this it did not work)
Run: 'grunt build' once
Run grunt watch for development, point your browser at app_dev.php
/// app_dev.php did work with missing css and grunt watch did not seem to work (running apache on windows for my config)
// and i did not really get this line(should i just build one more time ? i tried it and still the app.php is not working
Run grunt build for production deployment/access via app.php
any one has encountered such thing ?
thank you
We have quite a bit of code duplication, that should be cleaned up
Currently when a symfony project already contains files we provide, it will ask whether we want to overwrite those files. This should be handled in a clearer manner, either with messages or another way.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.