Git Product home page Git Product logo

generator-symfony's People

Contributors

arjenschwarz avatar ryan0x44 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

generator-symfony's Issues

npm install hangs due to grunt-usemin reference

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.

How to fix it

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",

[Question] CSS files not replaced by compiled ones ?

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

Clear Symfony cache after Grunt build

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"

Error: Cannot find module 'time-grunt'

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

grunt build modernizr Warning: Cannot use 'in' operator to search for 'devFile'

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
            }
        },

Installation requires Github ssh key

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.