You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by OmPrakash Muppirala <bi...@gmail.com> on 2015/05/27 19:45:11 UTC

[FlexJS] Build question - JSHint, Linter

Sorry if this was asked and answered, but I am having trouble getting the
Linter and JSHint installed on my Windows machine.  The README says this:

================================================================
    *6) The JSHint utility installed by following the instructions here:
            http://www.jshint.com/install/

        JSHint will also be automatically available.  No need to change
paths or
        environment variables.  On OSX some folks had permission issues
after
        the install.  See their documentation on using -g and sudo.
================================================================

But the page http://www.jshint.com/install/ just mentions that we should
run "npm install jshint".  So, is npm a dependency for FlexJS now?

Again, with the Google Closure Linter, the README says:

================================================================
    *4) The Google Closure Linter can be found here:
            http://code.google.com/p/closure-linter/downloads/list

        Follow the instructions here to install it.  It should automatically
        make the linter available.  No need to change paths or environment
        variables.  Some folks on OSX had permission issues after the
install.
        See their support channels for assistance.
================================================================

But there are no instructions on that page.  Also, when I download the
linter, all I see is a bunch of Python files.  Again, is Python a
dependency for FlexJS.

Should we be more explicit about these dependencies in the README?

Thanks,
Om

Re: [FlexJS] Build question - JSHint, Linter

Posted by Michael Schmalle <te...@gmail.com>.
On Wed, May 27, 2015 at 2:36 PM, Alex Harui <ah...@adobe.com> wrote:

> FWIW, there should be no.lint flag to skip linting.  I considered skipping
> by default since it is relevant to building the release package, only for
> verifying changes to the code, but I figured it would be too much hassle
> to hassle anyone making mods to the source to install and turn on the
> linter.
>
> Also note that, if we actually execute on Josh’s idea of a pure AS/JS
> cross compiler we might write all of the FlexJS JS in AS and not need
> linting anymore.
>
>
Well we need linting but it's called the Falcon compiler. :)

... waiting patiently for your epic explanation of what I need to do/create
Alex. :)

Mike



> -Alex
>
> On 5/27/15, 11:23 AM, "OmPrakash Muppirala" <bi...@gmail.com> wrote:
>
> >On Wed, May 27, 2015 at 11:05 AM, Erik de Bruin <er...@ixsoftware.nl>
> >wrote:
> >
> >> > So, npm is a dependency, then.  I will update the README mentioning
> >>this
> >> > add well.
> >>
> >> IIRC, the linters are only used for SDK development, NOT for
> >> 'production' projects... So, yes, a dependency, but only for FlexJS
> >> SDK devs, not the application programmers using FlexJS.
> >>
> >
> >So are Ant, etc.  We do mention them in the README.
> >
> >And I thought the README was for folks who want to build with the source,
> >right?  If not, they would end up using the Installer.
> >
> >Thanks,
> >Om
> >
> >
> >>
> >> EdB
> >>
> >>
> >>
> >> --
> >> Ix Multimedia Software
> >>
> >> Jan Luykenstraat 27
> >> 3521 VB Utrecht
> >>
> >> T. 06-51952295
> >> I. www.ixsoftware.nl
> >>
>
>

Re: [FlexJS] Build question - JSHint, Linter

Posted by OmPrakash Muppirala <bi...@gmail.com>.
On Wed, May 27, 2015 at 12:01 PM, Alex Harui <ah...@adobe.com> wrote:

>
>
> On 5/27/15, 11:39 AM, "OmPrakash Muppirala" <bi...@gmail.com> wrote:
>
> >On Wed, May 27, 2015 at 11:36 AM, Alex Harui <ah...@adobe.com> wrote:
> >
> >> FWIW, there should be no.lint flag to skip linting.  I considered
> >>skipping
> >> by default since it is relevant to building the release package, only
> >>for
> >> verifying changes to the code, but I figured it would be too much hassle
> >> to hassle anyone making mods to the source to install and turn on the
> >> linter.
> >>
> >
> >So it must mentioned that this is optional then?  Right now, it is listed
> >as a prerequisite for building FlexJS.
>
> IMO, I wouldn’t spend too much time worrying about it.  It is the default
> for now but could change soon.
>
>
Okay, updated the README a little bit to make things a bit clearer.

Thanks,
Om


> -Alex
>
>

Re: [FlexJS] Build question - JSHint, Linter

Posted by Alex Harui <ah...@adobe.com>.

On 5/27/15, 11:39 AM, "OmPrakash Muppirala" <bi...@gmail.com> wrote:

>On Wed, May 27, 2015 at 11:36 AM, Alex Harui <ah...@adobe.com> wrote:
>
>> FWIW, there should be no.lint flag to skip linting.  I considered
>>skipping
>> by default since it is relevant to building the release package, only
>>for
>> verifying changes to the code, but I figured it would be too much hassle
>> to hassle anyone making mods to the source to install and turn on the
>> linter.
>>
>
>So it must mentioned that this is optional then?  Right now, it is listed
>as a prerequisite for building FlexJS.

IMO, I wouldn’t spend too much time worrying about it.  It is the default
for now but could change soon.

-Alex


Re: [FlexJS] Build question - JSHint, Linter

Posted by OmPrakash Muppirala <bi...@gmail.com>.
On Wed, May 27, 2015 at 11:36 AM, Alex Harui <ah...@adobe.com> wrote:

> FWIW, there should be no.lint flag to skip linting.  I considered skipping
> by default since it is relevant to building the release package, only for
> verifying changes to the code, but I figured it would be too much hassle
> to hassle anyone making mods to the source to install and turn on the
> linter.
>

So it must mentioned that this is optional then?  Right now, it is listed
as a prerequisite for building FlexJS.

Thanks,
Om



> Also note that, if we actually execute on Josh’s idea of a pure AS/JS
> cross compiler we might write all of the FlexJS JS in AS and not need
> linting anymore.
>
> -Alex
>
> On 5/27/15, 11:23 AM, "OmPrakash Muppirala" <bi...@gmail.com> wrote:
>
> >On Wed, May 27, 2015 at 11:05 AM, Erik de Bruin <er...@ixsoftware.nl>
> >wrote:
> >
> >> > So, npm is a dependency, then.  I will update the README mentioning
> >>this
> >> > add well.
> >>
> >> IIRC, the linters are only used for SDK development, NOT for
> >> 'production' projects... So, yes, a dependency, but only for FlexJS
> >> SDK devs, not the application programmers using FlexJS.
> >>
> >
> >So are Ant, etc.  We do mention them in the README.
> >
> >And I thought the README was for folks who want to build with the source,
> >right?  If not, they would end up using the Installer.
> >
> >Thanks,
> >Om
> >
> >
> >>
> >> EdB
> >>
> >>
> >>
> >> --
> >> Ix Multimedia Software
> >>
> >> Jan Luykenstraat 27
> >> 3521 VB Utrecht
> >>
> >> T. 06-51952295
> >> I. www.ixsoftware.nl
> >>
>
>

Re: [FlexJS] Build question - JSHint, Linter

Posted by Alex Harui <ah...@adobe.com>.
FWIW, there should be no.lint flag to skip linting.  I considered skipping
by default since it is relevant to building the release package, only for
verifying changes to the code, but I figured it would be too much hassle
to hassle anyone making mods to the source to install and turn on the
linter.

Also note that, if we actually execute on Josh’s idea of a pure AS/JS
cross compiler we might write all of the FlexJS JS in AS and not need
linting anymore.

-Alex

On 5/27/15, 11:23 AM, "OmPrakash Muppirala" <bi...@gmail.com> wrote:

>On Wed, May 27, 2015 at 11:05 AM, Erik de Bruin <er...@ixsoftware.nl>
>wrote:
>
>> > So, npm is a dependency, then.  I will update the README mentioning
>>this
>> > add well.
>>
>> IIRC, the linters are only used for SDK development, NOT for
>> 'production' projects... So, yes, a dependency, but only for FlexJS
>> SDK devs, not the application programmers using FlexJS.
>>
>
>So are Ant, etc.  We do mention them in the README.
>
>And I thought the README was for folks who want to build with the source,
>right?  If not, they would end up using the Installer.
>
>Thanks,
>Om
>
>
>>
>> EdB
>>
>>
>>
>> --
>> Ix Multimedia Software
>>
>> Jan Luykenstraat 27
>> 3521 VB Utrecht
>>
>> T. 06-51952295
>> I. www.ixsoftware.nl
>>


Re: [FlexJS] Build question - JSHint, Linter

Posted by OmPrakash Muppirala <bi...@gmail.com>.
On Wed, May 27, 2015 at 11:05 AM, Erik de Bruin <er...@ixsoftware.nl> wrote:

> > So, npm is a dependency, then.  I will update the README mentioning this
> > add well.
>
> IIRC, the linters are only used for SDK development, NOT for
> 'production' projects... So, yes, a dependency, but only for FlexJS
> SDK devs, not the application programmers using FlexJS.
>

So are Ant, etc.  We do mention them in the README.

And I thought the README was for folks who want to build with the source,
right?  If not, they would end up using the Installer.

Thanks,
Om


>
> EdB
>
>
>
> --
> Ix Multimedia Software
>
> Jan Luykenstraat 27
> 3521 VB Utrecht
>
> T. 06-51952295
> I. www.ixsoftware.nl
>

Re: [FlexJS] Build question - JSHint, Linter

Posted by Erik de Bruin <er...@ixsoftware.nl>.
> So, npm is a dependency, then.  I will update the README mentioning this
> add well.

IIRC, the linters are only used for SDK development, NOT for
'production' projects... So, yes, a dependency, but only for FlexJS
SDK devs, not the application programmers using FlexJS.

EdB



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FlexJS] Build question - JSHint, Linter

Posted by OmPrakash Muppirala <bi...@gmail.com>.
On Wed, May 27, 2015 at 10:52 AM, Erik de Bruin <er...@ixsoftware.nl> wrote:

> For Closure Linter:
>
> https://developers.google.com/closure/utilities/docs/linter_howto
>
>
This link is much better. I will add this to the README.


> And JSHint:
>
> http://jshint.com/install/


So, npm is a dependency, then.  I will update the README mentioning this
add well.

Thanks,
Om


>
>
> HTH,
>
> EdB
>
>
>
> On Wed, May 27, 2015 at 7:45 PM, OmPrakash Muppirala
> <bi...@gmail.com> wrote:
> > Sorry if this was asked and answered, but I am having trouble getting the
> > Linter and JSHint installed on my Windows machine.  The README says this:
> >
> > ================================================================
> >     *6) The JSHint utility installed by following the instructions here:
> >             http://www.jshint.com/install/
> >
> >         JSHint will also be automatically available.  No need to change
> > paths or
> >         environment variables.  On OSX some folks had permission issues
> > after
> >         the install.  See their documentation on using -g and sudo.
> > ================================================================
> >
> > But the page http://www.jshint.com/install/ just mentions that we should
> > run "npm install jshint".  So, is npm a dependency for FlexJS now?
> >
> > Again, with the Google Closure Linter, the README says:
> >
> > ================================================================
> >     *4) The Google Closure Linter can be found here:
> >             http://code.google.com/p/closure-linter/downloads/list
> >
> >         Follow the instructions here to install it.  It should
> automatically
> >         make the linter available.  No need to change paths or
> environment
> >         variables.  Some folks on OSX had permission issues after the
> > install.
> >         See their support channels for assistance.
> > ================================================================
> >
> > But there are no instructions on that page.  Also, when I download the
> > linter, all I see is a bunch of Python files.  Again, is Python a
> > dependency for FlexJS.
> >
> > Should we be more explicit about these dependencies in the README?
> >
> > Thanks,
> > Om
>
>
>
> --
> Ix Multimedia Software
>
> Jan Luykenstraat 27
> 3521 VB Utrecht
>
> T. 06-51952295
> I. www.ixsoftware.nl
>

Re: [FlexJS] Build question - JSHint, Linter

Posted by Erik de Bruin <er...@ixsoftware.nl>.
For Closure Linter:

https://developers.google.com/closure/utilities/docs/linter_howto

And JSHint:

http://jshint.com/install/

HTH,

EdB



On Wed, May 27, 2015 at 7:45 PM, OmPrakash Muppirala
<bi...@gmail.com> wrote:
> Sorry if this was asked and answered, but I am having trouble getting the
> Linter and JSHint installed on my Windows machine.  The README says this:
>
> ================================================================
>     *6) The JSHint utility installed by following the instructions here:
>             http://www.jshint.com/install/
>
>         JSHint will also be automatically available.  No need to change
> paths or
>         environment variables.  On OSX some folks had permission issues
> after
>         the install.  See their documentation on using -g and sudo.
> ================================================================
>
> But the page http://www.jshint.com/install/ just mentions that we should
> run "npm install jshint".  So, is npm a dependency for FlexJS now?
>
> Again, with the Google Closure Linter, the README says:
>
> ================================================================
>     *4) The Google Closure Linter can be found here:
>             http://code.google.com/p/closure-linter/downloads/list
>
>         Follow the instructions here to install it.  It should automatically
>         make the linter available.  No need to change paths or environment
>         variables.  Some folks on OSX had permission issues after the
> install.
>         See their support channels for assistance.
> ================================================================
>
> But there are no instructions on that page.  Also, when I download the
> linter, all I see is a bunch of Python files.  Again, is Python a
> dependency for FlexJS.
>
> Should we be more explicit about these dependencies in the README?
>
> Thanks,
> Om



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FlexJS] Build question - JSHint, Linter

Posted by Michael Schmalle <te...@gmail.com>.
I remember two years ago when Erik started with the GCC, I had to install
Python. I am pretty sure something in the tool chain you are speaking of
calls python.

Mike

On Wed, May 27, 2015 at 1:45 PM, OmPrakash Muppirala <bi...@gmail.com>
wrote:

> Sorry if this was asked and answered, but I am having trouble getting the
> Linter and JSHint installed on my Windows machine.  The README says this:
>
> ================================================================
>     *6) The JSHint utility installed by following the instructions here:
>             http://www.jshint.com/install/
>
>         JSHint will also be automatically available.  No need to change
> paths or
>         environment variables.  On OSX some folks had permission issues
> after
>         the install.  See their documentation on using -g and sudo.
> ================================================================
>
> But the page http://www.jshint.com/install/ just mentions that we should
> run "npm install jshint".  So, is npm a dependency for FlexJS now?
>
> Again, with the Google Closure Linter, the README says:
>
> ================================================================
>     *4) The Google Closure Linter can be found here:
>             http://code.google.com/p/closure-linter/downloads/list
>
>         Follow the instructions here to install it.  It should
> automatically
>         make the linter available.  No need to change paths or environment
>         variables.  Some folks on OSX had permission issues after the
> install.
>         See their support channels for assistance.
> ================================================================
>
> But there are no instructions on that page.  Also, when I download the
> linter, all I see is a bunch of Python files.  Again, is Python a
> dependency for FlexJS.
>
> Should we be more explicit about these dependencies in the README?
>
> Thanks,
> Om
>