lauterry / generator-ngtailor Goto Github PK
View Code? Open in Web Editor NEWOffers you a tailor-made workflow for your Angularjs Web App
Home Page: http://lauterry.github.io/generator-ngtailor/
Offers you a tailor-made workflow for your Angularjs Web App
Home Page: http://lauterry.github.io/generator-ngtailor/
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
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.
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.
When Sass or Less is wanted,
Sass or Less are not automatically compiled when files are modified.
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.
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.