Skip to content
This repository has been archived by the owner on Nov 3, 2017. It is now read-only.

Automate the build process using grunt #5

Closed
mmoayyed opened this issue Feb 22, 2013 · 5 comments
Closed

Automate the build process using grunt #5

mmoayyed opened this issue Feb 22, 2013 · 5 comments
Assignees
Labels

Comments

@mmoayyed
Copy link
Member

Ideas and suggestions we can discuss:

  • Build process should support two directories. A source (src) directory where all our uncompressed code lives and a public (www) directory where all our production ready code gets pushed.
  • Automate which SessionTracker.js or SessionTrackerMock.js (formally mobile-plugin-android.js & mobile-plugin-web.js ) file gets added to the build. This can be done with config.js files that get imported into our grunt build.
  • Automate which cordova-iphone.js or cordova-android.js file gets added to the build. This can be done with config.js files that get imported into our grunt build.
  • Build process would ideally cover the following:
    • Linting JavaScript files.
    • Compile css using less framework ( *Not implemented )
    • Execute JavaScript unit tests with Jasmine and PhantomJS on the command-line ( *Not implemented )
    • Collect, optimize and concatenate JavaScript libraries and source files.
    • Copy production-ready resources to www directory.
@ghost ghost assigned mmoayyed Feb 22, 2013
@cousquer
Copy link
Member

see comment on #16

@matguerin
Copy link

Am I the only one who's getting a warning when running the imagemin task?

It seems like the issue is with the "images/icons" directory because it has too many images... when I have more than 75 images in the directory, I get the following warning (which stops the build when not using the --force flag):

Running "imagemin:minimizeImages" (imagemin) task
Warning: spawn EMFILE Use --force to continue.

Removing two random images from this folder seems to be enough to make to task run ok though (gruntjs/grunt-contrib-imagemin#13 ?)

@mpolizzotti
Copy link

Mathilde,

We are in the process of removing the imagemin. The plugin seems to have some bugs in it. As a side note, the code your playing with isn't really ready for consumption yet. It is still moving and shifting. Once its proven and we have solidified the code we will move the code out of the develop branch.

Matt

----- Original Message -----
From: "Mathilde Guérin" [email protected]
To: "Jasig/umobile-app-phonegap" [email protected]
Sent: Wednesday, February 27, 2013 9:06:22 AM
Subject: Re: [umobile-app-phonegap] Automate the build process using grunt (#5)

Am I the only one who has an issue with the imagemin:minimizeImages task?

It seems like the issue is with the "images/icons" directory because it has too many images... when I have more than 75 images in the directory, I get the following warning (which stops the build when not using the --force tag):

Running "imagemin:minimizeImages" (imagemin) task
Warning: spawn EMFILE Use --force to continue.

Removing two random images from this folder seems to be enough to make to task run ok though ( gruntjs/grunt-contrib-imagemin#13 ?)


Reply to this email directly or view it on GitHub .

Matthew Polizzotti
U.X.Architect | Unicon, Inc.
480.558.2450 (o) | 480.558.2320 (f)
[email protected]

@matguerin
Copy link

Yeah I'm aware this is a WIP but since the issue is marked as solved I figured it wouldn't hurt to notify you of this potential issue.

@mpolizzotti
Copy link

Mathilde,

Sorry about that. I didn't realize we closed it. I appreciate you smoke testing our work though. Makes it easier to find bugs! :)

Thanks,
Matt

----- Original Message -----
From: "Mathilde Guérin" [email protected]
To: "Jasig/umobile-app-phonegap" [email protected]
Cc: "mpolizzotti" [email protected]
Sent: Thursday, February 28, 2013 12:48:48 AM
Subject: Re: [umobile-app-phonegap] Automate the build process using grunt (#5)

Yeah I'm aware this is a WIP but since the issue is marked as solved I figured it wouldn't hurt to notify you of this potential issue.


Reply to this email directly or view it on GitHub .

Matthew Polizzotti
U.X.Architect | Unicon, Inc.
480.558.2450 (o) | 480.558.2320 (f)
[email protected]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants