Porting Angular app with Cordova also using Bower - angularjs

I've installed the iOS and Android build tools for Cordova and after I have run cordova build in my main directory I get an empty www folder. My Angular source is normally managed by bower, should I manually copy them into the source directory for the new build?

Cordova Documentation for Cordova Build Command
The cordova prepare step (which should run when you use cordova build), copies files from your project-wide www/ folder, and then compiles the project. When I use grunt or gulp with my ionic/cordova project, I build my javascript/html project into the main www/ folder before running cordova build, which would include copying/concatenating bower dependencies.

Related

Javascript files are not included in React when project is built

I've this directories and I'm trying to deploy my website using firebase hosting
When I do
npm run build
I get this build folder as result
As you can see my javascript files are not included in the build project.
When I run
firebase deploy
it deploys only the index.html with the css files.
What is going on?

Maven war plugin overlays and eclipse

I am using overlays for adding war dependencies. I have to exclude one jar from parent war lib before packaging war again. added excludes for overlays.
It works fine if I deploy the application using maven/Gradle script, But it fails as soon as I deploy from eclipse.
Reason: overlays unpack parent war in folder war/work and it has got all the lib. Eclipse is using this folder.
Is there any way I can fix this problem.

How to publish Angular project?

I maked angular project. I used this generator:
https://github.com/swiip/generator-gulp-angular#readme
I have serwer and domain. My question is: How publish this working project on serwer? Should I use Apache http?
Since you used Gulp, you can check its docs to find out exactly you can build your Gulp application and deploy it to server.
On your command line run this in your working directory of the app
gulp //to build an optimized files to be deployed on to the server
Now in your dist folder in your root of your working directory, you'll find all the files and folders that have been created by gulp task default.
Now you can deploy this on with Apache or node or Nginx or any other server you want. Simply paste all the files to the to the
path/of/the/root/on/server
You can also preview your app the browser and watching for files changing and auto-reloading the browser to review changes by running
gulp serve
More grunt tasks here.

Sencha app build development does not copy JS files to /build folder

I am working with EXTJS6/sencha cmd 6.1.
I am running sencha app build development on my application but it does not copy my javascript files to the build folder. I searched and learnt that QA & Production builds minifies the JS files and copy it to the build where as Development build does not. I believe, using copy task in build.xml we can copy the JS files in the build folder.
Since, the JS Files are copied in the build folder, I can not send the DEV build from build folder to Server.Can someone has an example or guide me on how to write the copy task in build.xml or are there any other alternatives?
Thanks,
gendaful
I believe that what sencha app build development has changed. in previous versions, it created a development build directory. Now, it just minifies the data in your root directory so that you can run it directly from there.
My workflow is now I just do "Sencha App Watch" and run from my root while doing development. When I want to test my production build I do sencha app build production and the folder gets created as before.
HTH's.

Deploy AngularJS app on tomcat

I created an AngularJS app with the yeoman angular generator. Now I want to host it using Apache tomcat.
I already ran "grunt build" and have all my assets ready in the "dist"-folder. Is there a way to create a .war-file or can I just copy the files to a folder inside tomcat?
Just copy paste your all files in your project folder e.g. $TOMCAT_PATH/webapps/your-project-root/
Cheers!!

Resources