Code Monkey home page Code Monkey logo

Comments (8)

lawnsea avatar lawnsea commented on June 8, 2024

Forked and pushed my workaround for this issue: TreehouseJS/CSSStyleDeclaration@9fa65f9b79

from cssstyle.

chad3814 avatar chad3814 commented on June 8, 2024

ugh, yeah ugly, but if that's what's need, that's what's needed. I actually don't push versions from the master branch anymore, but from the 0.2.x or 0.3.x branches. I'll think a little bit about organizing this better. Maybe have a require for CSS2.1 and one for CSS3, and then break them down even more in there, for related properties.

from cssstyle.

lawnsea avatar lawnsea commented on June 8, 2024

Ok, sounds good. Let me know what you decide and I'll integrate my changes if necessary.

from cssstyle.

domenic avatar domenic commented on June 8, 2024

Would be pretty cool to somehow make this work so that we don't have to bundle the separate fork with jsdom for browserify users.

One way to do it is to create a prepublish script that generates those lines ahead of time. You can then make the pretest script be npm run prepublish and such. We did that for the Promises/A+ tests in promises-aplus/promises-tests@e099884

from cssstyle.

chad3814 avatar chad3814 commented on June 8, 2024

my mind is slow today, I'll get this fixed and still have lazy load later today

from cssstyle.

domenic avatar domenic commented on June 8, 2024

Hmm, if it can be done in an easily-maintainable way, maybe use the browser field in package.json so that browser consumers get one file and Node another?


From: chad3814mailto:[email protected]
Sent: ý2014-ý10-ý13 13:44
To: chad3814/CSSStyleDeclarationmailto:[email protected]
Cc: Domenic Denicolamailto:[email protected]
Subject: Re: [CSSStyleDeclaration] Browserify support (#11)

actually, the problem is now it lazy loads the files because of #14https://github.com/chad3814/CSSStyleDeclaration/pull/14 I'm not sure what I can do make both happy...


Reply to this email directly or view it on GitHubhttps://github.com/chad3814/CSSStyleDeclaration/issues/11#issuecomment-58928480.

from cssstyle.

chad3814 avatar chad3814 commented on June 8, 2024

% npm publish

[email protected] prepublish .
node ./scripts/generate_properties.js

npm http PUT https://registry.npmjs.org/cssstyle
npm http 201 https://registry.npmjs.org/cssstyle

from cssstyle.

chad3814 avatar chad3814 commented on June 8, 2024

% npm publish

[email protected] prepublish .
node ./scripts/generate_properties.js

npm http PUT https://registry.npmjs.org/cssstyle
npm http 201 https://registry.npmjs.org/cssstyle

from cssstyle.

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.