GithubHelp home page GithubHelp logo

lauterry / generator-ngtailor Goto Github PK

View Code? Open in Web Editor NEW
104.0 104.0 6.0 570 KB

Offers you a tailor-made workflow for your Angularjs Web App

Home Page: http://lauterry.github.io/generator-ngtailor/

CSS 0.39% JavaScript 98.60% HTML 1.01%

generator-ngtailor's People

Contributors

lauterry avatar violetlight avatar vwxyz 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  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  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

generator-ngtailor's Issues

replace ngmin and add htmlmin

Hi,
Replace ngmin by ngAnnotate (ngmin is deprecated).
Add htmlmin to Grunt.js like this:
htmlmin: {
dist: {
options: {
collapseWhitespace: true,
conservativeCollapse: true,
collapseBooleanAttributes: true,
removeComments: true,
removeCommentsFromCDATA: true,
removeOptionalTags: true
},
files: [{
expand: true,
cwd: '<%= distDir %>',
src: ['index.html',
// 'views/{,/}.html'
],
dest: '<%= distDir %>'
}]
}
},
...
grunt.registerTask('package', [
'jshint',
'clean',
'useminPrepare',
'copy',
'concat',
'ngmin',
'uglify',
'less',
'cssmin',
'rev',
'usemin',
'htmlmin'
]);
Philippe

Configuration to intercept HTTP API request

Hi,

I saw your message on BrowserSync/grunt-browser-sync#11 but can figure out why I still have a 500 response.

My configuration:

  var url = require('url')
    , proxy = require('proxy-middleware');
 var proxyOptions = url.parse('http:/localhost:9090/api');
proxyOptions.route = '/api';

[...]

   browserSync: {
      dev: {
        bsFiles: {
          src: ['<%= assetsDir %>/**/*.html', '<%= assetsDir %>/**/*.js', '.tmp/**/*.css']
        },
        options: {
          watchTask: true,
          ghostMode: {
            clicks: true,
            scroll: true,
            links: false, // must be false to avoid interfering with angular routing
            forms: true
          },
          server: {
            baseDir: [
              '.tmp',
              '<%= assetsDir %>'
            ],
            middleware: [ proxy(proxyOptions) ]
          }
        }
      }
    },

and my backend API is on localhost:9090/api, so I'd like to 'intercept' all /api request to rewrite them to port 9090.

Thanks for your help.

Ng-tailor doesn't make it clear Ruby and Sass need to be installed before hand

I boostraped a project with ng-tailor, and picked the sass preprocessor. Here is the error I get when I run "grunt dev":

Running "sass:all" (sass) task
Warning: You need to have Ruby and Sass installed and in your PATH for
this task to work. More info:
https://github.com/gruntjs/grunt-contrib-sass Use --force to continue.

I falsely believed ng-tailor would install and set it up.

I think ng-tailor should send a clear warning during project creation, if ruby and sass can't be found, that they will be required and the project can't start without them properly installed.

Combine this project with another one

I don't really understand why this project was created instead of improving the other ones.

The real value of a generator is the body of people using exactly the same things as each other. This way, when someone has a problem, it is much more likely they will find someone else who uses the same set of things and can answer their question.

But there are many many other good reasons for having fewer generators and not more generators. Please give this a read and check out the comparison of generators and if you still think that creating a separate project was the better decision, clarify why you think so.

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.