GithubHelp home page GithubHelp logo

Comments (12)

ckundo avatar ckundo commented on September 25, 2024

I propose we create a grunt "release" task that will create a versioned branch with static version of axs_testing.js in a tracked folder. For now, devs can point to the raw file on from the release branch on github to include the tests. Further out, maybe we can get the rules hosted on a CDN.

from accessibility-developer-tools.

alice avatar alice commented on September 25, 2024

SGTM

from accessibility-developer-tools.

ckundo avatar ckundo commented on September 25, 2024

@alice the following npm package for closure compiler supports compiling both debug and production versions more easily than the one we're using, and seems like it has more activity. I think we should consider using it for this approach. It has an MIT license, if that makes any difference. https://npmjs.org/package/grunt-closure-compiler

from accessibility-developer-tools.

ckundo avatar ckundo commented on September 25, 2024

I've created a release branch where we can rebuild and tag release versions. Github tracks the releases based on the tag:

https://github.com/GoogleChrome/accessibility-developer-tools/releases

I'll work on a grunt task to make this automated. @alice, any word on the MIT licensed package from the previous comment?

from accessibility-developer-tools.

alice avatar alice commented on September 25, 2024

Apologies; checking with the Open Source team now.

On Thu, Sep 12, 2013 at 6:30 AM, Cameron Cundiff
[email protected]:

I've created a release branch where we can rebuild and tag release
versions. Github tracks the releases based on the tag:

https://github.com/GoogleChrome/accessibility-developer-tools/releases

I'll work on a grunt task to make this automated. @alicehttps://github.com/alice,
any word on the MIT licensed package from the previous comment?


Reply to this email directly or view it on GitHubhttps://github.com//issues/39#issuecomment-24318825
.

from accessibility-developer-tools.

alice avatar alice commented on September 25, 2024

Yep, all good!

On Thu, Sep 12, 2013 at 8:04 AM, Alice Boxhall [email protected] wrote:

Apologies; checking with the Open Source team now.

On Thu, Sep 12, 2013 at 6:30 AM, Cameron Cundiff <[email protected]

wrote:

I've created a release branch where we can rebuild and tag release
versions. Github tracks the releases based on the tag:

https://github.com/GoogleChrome/accessibility-developer-tools/releases

I'll work on a grunt task to make this automated. @alicehttps://github.com/alice,
any word on the MIT licensed package from the previous comment?


Reply to this email directly or view it on GitHubhttps://github.com//issues/39#issuecomment-24318825
.

from accessibility-developer-tools.

alice avatar alice commented on September 25, 2024

One thing: this grunt task doesn't seem to include the closure compiler, so
we'd have to go back to including the closure jar in the repository as far
as I can tell.

On Thu, Sep 12, 2013 at 10:03 AM, Alice Boxhall [email protected] wrote:

Yep, all good!

On Thu, Sep 12, 2013 at 8:04 AM, Alice Boxhall [email protected]:

Apologies; checking with the Open Source team now.

On Thu, Sep 12, 2013 at 6:30 AM, Cameron Cundiff <
[email protected]> wrote:

I've created a release branch where we can rebuild and tag release
versions. Github tracks the releases based on the tag:

https://github.com/GoogleChrome/accessibility-developer-tools/releases

I'll work on a grunt task to make this automated. @alicehttps://github.com/alice,
any word on the MIT licensed package from the previous comment?


Reply to this email directly or view it on GitHubhttps://github.com//issues/39#issuecomment-24318825
.

from accessibility-developer-tools.

ckundo avatar ckundo commented on September 25, 2024

@alice, are we using closure-compiler for anything other that requiring, concatenating, and minifying? Node had built in filesystem tools for requiring, and there are other tools that we can use to concat and minify.

from accessibility-developer-tools.

ckundo avatar ckundo commented on September 25, 2024

Sorry, I wrote that last comment too early in the morning. I realize we're using closure compiler extensively for building objects. Disregard!

from accessibility-developer-tools.

alice avatar alice commented on September 25, 2024

Yeah - it's primarily used in a linting capacity, with a side effect of
moderate minification/concatenation. I started using it because I was going
crazy trying to debug javascript errors caused by typos etc, plus it forces
you to rigorously document the inputs/outputs of functions and checks that
you're using it correctly.

A couple of times I've looked into using other JS build tools but I haven't
yet found one that does as good a job at picking up that type of error (for
example, I ran closure over the Polymer codebase, which uses uglifyjs, and
immediately found a bug that their tooling hadn't picked up).

One thing in the back of my mind is considering switching to full
minification using the closure compiler - i.e. switching to
ADVANCED_OPTIMIZATIONS - but this would require rethinking much of the code
structure and being more rigorous about what is considered part of the
public API. I think that would be a good exercise to go through at some
point, though.

On Sun, Sep 15, 2013 at 11:04 AM, Cameron Cundiff
[email protected]:

Sorry, I wrote that last comment too early in the morning. I realize we're
using closure compiler extensively for building objects. Disregard!


Reply to this email directly or view it on GitHubhttps://github.com//issues/39#issuecomment-24476500
.

from accessibility-developer-tools.

ckundo avatar ckundo commented on September 25, 2024

I discovered a configuration option in the existing closurecompiler library that creates a debug version of the file. I do think that if we wanted to use another linting library, we can capture any method input/output issues by unit testing more thoroughly, but right now what we have will do fine.

from accessibility-developer-tools.

ckundo avatar ckundo commented on September 25, 2024

I agree about refining the public API and more aggressively minifying. I've been poking around https://github.com/jquery/jquery and https://github.com/twbs/bootstrap to get cues on best practices and strategies for this kind of library.

We should consider it further for a future release.

from accessibility-developer-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.