@wework/oui
WeWork.com Styleguide
Last updated 2 years ago by glosch .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @wework/oui 
SYNC missed versions from official npm registry.

npm version

Oui - WeWork.com Styleguide

Setup

  • npm install @wework/oui --save

Directory Structure

|-- app/
    |-- assets/
        |-- fonts/
        |-- images/
    |-- components/
        |-- ...presentational components
        |-- index.js
|-- dist/
|-- docs/
    |-- sections/
        |-- ...sections displaying examples of components
    |-- index.html
    |-- index.js
    |-- styleguide.jsx
    |-- styleguide.scss
|-- webpack/
    |-- base.js
    |-- development.js
    |-- entries.js
    |-- env.js
    |-- paths.js
    |-- production.js
  • app/assets/components is where we create our presentational components (ie. button, grid, footer)
  • dist - generated by npm run prepublish or npm install -- lets us use Oui as a library
  • docs - the documentation/display of our styleguide
    • sections - where to include example usage of components
    • styleguide.jsx - a view of all sections
    • styleguide.scss - styleguide-specific sass
  • webpack - config!

Example Setup with Webpack

// PostCSS plugins
const cssnext = require('postcss-cssnext');
const postcssImport = require('postcss-import');
const postcssReporter = require('postcss-reporter');
const lostGrid = require('lost');

module: {
  loaders: [
    test: /\.s?css$/,
    loader: 'style-loader!css-loader?modules&importLoaders=2&sourceMap!postcss-loader!sass-loader?sourceMap',
    exclude: /(vendor|node_modules)\//,
  ],
},
sassLoader: {
  includePaths: [ jsPath, nodeModulesPath ]
},

postcss: () => [
  postcssImport({ addDependencyTo: webpack }),
  lostGrid(),
  cssnext({
    browsers: [ 'last 2 versions', 'IE > 10' ],
    features: {
      calc: false,
    },
  }),
  postcssReporter({
    clearMessages: true,
  }),
],

Current Tags

  • 0.0.29                                ...           latest (2 years ago)

78 Versions

  • 0.0.29                                ...           2 years ago
  • 0.0.28                                ...           2 years ago
  • 0.0.27                                ...           2 years ago
  • 0.0.26                                ...           2 years ago
  • 0.0.25                                ...           2 years ago
  • 0.0.24                                ...           2 years ago
  • 0.0.23                                ...           2 years ago
  • 0.0.22                                ...           2 years ago
  • 0.0.21                                ...           2 years ago
  • 0.0.20                                ...           2 years ago
  • 0.0.19                                ...           2 years ago
  • 0.0.18                                ...           2 years ago
  • 0.0.17                                ...           2 years ago
  • 0.0.16                                ...           2 years ago
  • 0.0.14                                ...           2 years ago
  • 0.0.11-beta4                                ...           2 years ago
  • 0.0.11-beta3                                ...           2 years ago
  • 0.0.11-beta2                                ...           2 years ago
  • 0.0.11-beta1                                ...           2 years ago
  • 0.0.8-beta6                                ...           2 years ago
  • 0.0.8-beta5                                ...           2 years ago
  • 0.0.8-beta4                                ...           2 years ago
  • 0.0.8-beta3                                ...           3 years ago
  • 0.0.8-beta2                                ...           3 years ago
  • 0.0.8-beta1                                ...           3 years ago
  • 0.0.8                                ...           3 years ago
  • 0.0.7                                ...           3 years ago
  • 0.0.6                                ...           3 years ago
  • 0.0.5                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.1.3                                ...           3 years ago
  • 0.1.2                                ...           3 years ago
  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
  • 0.0.99                                ...           3 years ago
  • 0.0.98                                ...           3 years ago
  • 0.0.97                                ...           3 years ago
  • 0.0.96                                ...           3 years ago
  • 0.0.95                                ...           3 years ago
  • 0.0.94                                ...           3 years ago
  • 0.0.93                                ...           3 years ago
  • 0.0.92                                ...           3 years ago
  • 0.0.91                                ...           3 years ago
  • 0.0.90                                ...           3 years ago
  • 0.0.89                                ...           3 years ago
  • 0.0.88                                ...           3 years ago
  • 0.0.87                                ...           3 years ago
  • 0.0.86                                ...           3 years ago
  • 0.0.84                                ...           3 years ago
  • 0.0.83                                ...           3 years ago
  • 0.0.82                                ...           3 years ago
  • 0.0.81                                ...           3 years ago
  • 0.0.78                                ...           3 years ago
  • 0.0.77                                ...           3 years ago
  • 0.0.75                                ...           3 years ago
  • 0.0.74                                ...           3 years ago
  • 0.0.73                                ...           3 years ago
  • 0.0.72                                ...           3 years ago
  • 0.0.71                                ...           3 years ago
  • 0.0.70                                ...           3 years ago
  • 0.0.69                                ...           3 years ago
  • 0.0.68                                ...           3 years ago
  • 0.0.67                                ...           3 years ago
  • 0.0.66                                ...           3 years ago
  • 0.0.65                                ...           3 years ago
  • 0.0.64                                ...           3 years ago
  • 0.0.63                                ...           3 years ago
  • 0.0.62                                ...           3 years ago
  • 0.0.61                                ...           3 years ago
  • 0.0.60                                ...           3 years ago
  • 0.0.59                                ...           3 years ago
  • 0.0.58                                ...           3 years ago
  • 0.0.57                                ...           3 years ago
  • 0.0.56                                ...           3 years ago
  • 0.0.55                                ...           3 years ago
  • 0.0.54                                ...           3 years ago
  • 0.0.53                                ...           3 years ago
  • 0.0.52                                ...           3 years ago
Downloads
Today 78
This Week 78
This Month 234
Last Day 0
Last Week 156
Last Month 104
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |