Giter Club home page Giter Club logo

patternlab-node's Issues

Gulp support

Remaining todo to ship this:

  • Update gulpfile to omit scss where possible as a default
  • Revert project back to grunt-first
  • Update readme with browsersync
  • Update readme installation instructions to help users wanting to init with gulp. Mention Windows caveat
  • Update readme to help users switch to gulp
  • Create upgrade instructions
  • Create known issue section in readme for the other device page follow problems using the menu.
  • Changelog
  • Make sure gulp files are properly cited as deriving form oscar-g's work
  • Create ticket for small optimization to better target grunt watches more efficiently
  • Remove sass from package jsons, instead include directions to include and turn on

Clean up the README

Still references to patternlab php wiki documents. Better to use patternlab.io or my own.

Use bower for managing dependencies?

Enhancement Idea: Just throwing it out there, what do you think about using bower to manage dependencies like jquery, modernizr, and anything else that is in bower? Since it's a node project it seems to make sense. If not I might just do it for my own personal use πŸ˜„

Async patternbuilder

Is this possible?

Been a while since I dead async node for realZ, should be fun πŸ‘Š

Remove grunt dependencies from builder/patternlab.js

Converting the builder to straight-up node will decouple the core components from the build tool.

  • Helps with unit testing and single responsibility
  • More easily allows patternlab-node to be reused, in, say, something like gulp

"Code" option not working and some icons not showing

screen shot 2014-04-03 at 3 40 15 pm

Above is a screen shot of the icons not showing. They do work when I install the php version, so I'm not sure where to start debugging. The "Code" option that shows code also works right off the bat in the php version but I haven't been able to get it working in the node version.

Might be relevant: My dev tools is showing on line 453 of styleguide.js, event.data.lineage is returning undefined.

Any suggestions?

Consider shipping patternlab-node with connect task

As tridnguyen pointed out on twitter:

@bmuenzenmeyer hey is there a reason why there’s no connect task to serve static files for patternlab-node?

β€” Tri Nguyen (@tridnguyen) July 15, 2014
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>

There may not be a good reason. He goes on to state that out of the box, pl ships a means to compile templates to generate files, but no way to view them in a "production" setting.

A question to @dmolsen and @bradfrost and @benedfit, do you see any downside to including mini-webservers with patternlab?

Pros
  • A decision made for end-users is a good one if it reduces barrier to entry
  • More precise analog to actual web server than filesystem
Cons
  • A decision made for end-users is something not everyone may want (see pattern-only discussions)
  • Shipping more complexity

It's fairly easy for a savvy designer/developer to add or remove grunt tasks for connect, so the decision really falls, in my mind, to what's best for those new to the space.

Also - is this something the spec should address?

Document pl node features on patternlab.io

Pattern Lab Node 1.2

Drive progress toward adherence to the Pattern Lab specification:

  • #35 4.1. Atomic Design Naming Convention Not Required
  • #6 4.6.3. Annotations
  • #36 5.5. Version Command
  • #37 5.6. Help Command

Miscellaneous Fixes and Improvements

  • #26 Code Option Not Working and Some Icons Not Showing
  • #30 Version Mustache with NPM
  • #31 Published to NPM
  • Pattern compilation only support

Update stated dependencies

Ran into an issue in which grunt-contrib sass was out of date.

Check to make sure the package.json file is constructed to specify latest version.

Native Controls

Original inspiration: pattern-lab/patternlab-php#21

We should create some command files that users can double-click to perform common tasks. This would reduce the need to know the command line as much.

  • Grunt Install
  • Gulp Install
  • Build Pattern Lab - Grunt
  • Build Pattern Lab - Gulp
  • Build,Serve, And Watch Pattern Lab - Grunt
  • Build,Serve, And Watch Pattern Lab - Gulp
  • Stop Server
  • Get Version
  • Check for updates?

Focus would be on Mac and Windows environments, initially.

Question: How much task processing do you want to include?

Hey Brian, love that we are getting the grunt and gulp versions up and running!

Shoptology was previously running patternlab-php and we built out some great workflow items for building out the style guide as the "true source" of the design templates for an app. We build out all our styles for components before exporting the finished css and image assets to our app for real world usage.

My question is to what degree would you like to include any of the following in the grunt or gulp projects? Happy to pull request for any of these elements if you think they would be beneficial for the project.

https://github.com/shoptology/patternlab-php/blob/master/Gruntfile.js

We have BrowserSync, which lets you open the styleguide in unlimited number of devices and keeps them all in sync with navigation and source changes, great for building out responsive components in the style guide.
https://github.com/shakyShane/grunt-browser-sync

For testing the condition of your styles:
https://github.com/peterkeating/grunt-csscss
https://github.com/phamann/grunt-css-metrics

Visual regression tests (lets you visually test differences between versions of your style guide as your team makes changes)
https://github.com/BBC-News/wraith

UnCSS works perfectly with Patternlab, can scan all the pages and remove any css that wasn't used on the pages. We've seen 30-40% file size savings on Bootstrap projects, as has Addy Osmani who started the grunt plugin.
https://github.com/addyosmani/grunt-uncss

We also have some scripts that help with optimizing images as they come in and building sprite sheets.

.DS_Store are still compiled

Hi, I have my config/config.json configured like this:

 {
    "patterns" : {
        "source" : "/../../source/_patterns/",
        "public" : "/../../public/patterns/"
    },
    "ignored-extensions" : ["scss", "DS_Store", "less"],
    "ignored-directories" : ["scss"],
    "contentSyncPort" : 8002,
    "navSyncPort" : 8003
 }

but the .DS_Store files are still being picked up by the compiler. Am I doing something wrong?

Published to NPM.

I've published this package to NPM and will maintain it so long as it's okay with the core team. I would like to make a change which is swapping devDependencies to dependencies.

Using this project within an existing Grunt project is as easy as configuring the grunt-hub plugin to point to this project nested within node_modules.

Version Mustache with NPM.

Does it make sense to manage mustache.js within NPM using the latest stable? Opposed to checking in the entirety of Mustache.js within the builder/lib directory.

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.