What is difference between grunt.file.copy and grunt-contrib-copy. I am new to grunt. Please be kind - gruntjs

On the grunt official page I could see grunt.file.copy and there is separate module grunt. Contrib.copy. are these two different or grunt.contrib.copy used grunt.file.copy.
Also, when are these both used if they are different .
Can someone please clarify.

Related

hosting gulp based project with multiple directories with firebase

I have a template based on a gulp, I want to host project on firebase, I tried to create a simple project and it went well, but with so many directories and also considering the fact that my main project is built on gulp, I ran into a problem.
this is my project's folder structure:
so, question is how I can modify firebase.json so that everything work fine and I don't have to change the whole gulp file ?
sorry I didn't describe everything in details but I think get the point of my problem.

How auto package installation of Grunt, Karma, package.json in one process

This is more of a question without code so, please forgive me.
Is there a way programatically create a Package.json, karma.conf.js and gruntfile.js without building them individually.
I want to automate the process without having to build each one individually.
Also, the same for creating a Spec.js file for describe testing
You could look into Yeoman generators to see if any of the pre-existing ones are in line with what you are aiming to create. It's a fairly straight forward node tool that scaffolds out an app skeleton for you.
http://yeoman.io/generators/
If not, there's a fair bit of information available on how to write your own generator here:
http://yeoman.io/authoring/

Frontend build tools: different asset includes for different environment

As asked previously in Have Grunt include different Javascript files in development and production and Have Grunt generate index.html for different setups
I want expanded assets includes for development:
<script src="js/lib-1.js"></script>
<script src="js/lib-2.js"></script>
<script src="js/lib-3.js"></script>
...
And for production or staging:
<script src="js/all-files-in-one.js"></script>
However, I don't want to synchronize my include code in two places. For most of the available answers, I have to specify the list of files in grunt task first and then replicate the include code again in the html. The closest solution I could find is this answer: https://stackoverflow.com/a/21488659/515585, in which I only need to maintain an array of files in the grunt task. And all the answers requires a daunting amount of setup to make it work.
An even better solution would allow me to use sprocket syntax to require other asset files right in the context of the code (instead of using a build file) a la Rails asset pipeline. And expand them with a single switch of variable, so I could debug each individual file in development. I've looked at the grunt-sprockets-directives, but I don't see it offer the expanding option. Maybe it does?
I would like to not use asset pipeline from my backend framework, and I am asking for any front end build tools, not just grunt specifically. Gulp, Yeoman, or even better Broccoli.js answers are also appreciated.

Export a jar file from Eclipse or Command Line

This is my first post ever but I intend to use this more often in the future so please be critical if I do something wrong.
I have done research on the topic and have already attempted everything from using the command line to Eclipse's File>export>jar and choosing the appropriate options.
Basically I have attempted everything suggested in the following two links:
Java: export to an .jar file in eclipse
http://docs.oracle.com/javase/tutorial/deployment/jar/basicsindex.html
The results of my efforts are:
1) a jar file is created
2) when I try to run it the error is "Failed to load Main-Class manifest attribute from test.jar"
I assure you that I have indeed created a "manifest.txt" file in my project that consists of
"Main-Class: Login
"
I even include a newline because I hear that is necessary in some instances.
Does anyone know what I could be missing? Or better yet can anyone please provide an extremely detailed explanation of how to create a jar. This could be either from command line or eclipse.
My current project is setup where I have three java files in my workspace: Login, NewFrame, and NewUser. Login has the main method which will eventually call the other files. These three files are in the default package. The projects name is JavaVersion.
Thanks.
Thank you Antimony for your interest and help. After more tinkering I was able to figure it out for myself. Turns out I was never correctly defining the entry point. For anyone looking to export a jar in Eclipse I would also like to recommend this link.
How do you build a JAR in eclipse with a custom manifest file?

How to resolve website references with MSBuild without building website?

I have a solution that contains web-site and couple of dependent projects. I need to build this solution with MSBuild. The issue is that I need to build site itself only to resolve references and then just throw away results of build. I've taken a look on the solution .metaproj file, but it only contains target that allows me to build site. I'm using it, as it also resolves that references. It's not a critical issue, but in my case it takes two minutes of total fife to build that site itself.
Sure I can build dependent projects manually and then just copy build results... But every time new reference is added it will require modifications of build file.
So is there smart way doing this?
Just build it. Consider building it in parallel with /m, but other than writing your own half-compiler, you should just let the build system do this for you.

Resources