@codespec/react-toolset
Set of common React UI components
Last updated 3 years ago by masonshin .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @codespec/react-toolset 
SYNC missed versions from official npm registry.
React Toolset

React Toolset

Build Status npm npm

Independent set of React UI Components for your application.

Install

# npm users
$ npm i --save @codespec/react-toolset

# yarn users
$ yarn add @codespec/react-toolset

Documentation

How to use

When using compiled source

import { Button } from '@codespec/react-toolset'

When using not complied source

  1. Set up Webpack configuration
// Add this loaders in your webpack.config.js
// You should not exclude node_modules directory from it.
// This is just an example.
module: {
  loaders: [
    {
      test: /\.jsx?$/,
      loader: 'babel-loader',
      query: {
        cacheDirectory: true,
        presets: ['es2015', 'react'],
      },
    },
    {
      test: /\.scss$/,
      use: [
        { loader: 'style-loader' },
        {
          loader: 'css-loader',
          options: {
            modules:true,
            localIdentName: '[local]-[hash:base64:5]'
          }
        },
        {
          loader: 'sass-loader',
          options: {
            plugins: () => [require('autoprefixer')]
          }
        }
      ]
    },
  ]
}
  1. Import individual component from your application
import { Button } from '@codespec/react-toolset/src'

If you are using create-react-app, use need to follow this.

  1. Eject your predefined configuration
yarn eject
  1. Configure the Webpack like as follow
// Process JS with Babel.
{
  test: /\.(js|jsx)$/,
  include: [paths.appSrc, /node_modules\/@codespec/],     // add @codespec module to include
  loader: require.resolve('babel-loader'),
  options: {

    // This is a feature of `babel-loader` for webpack (not Babel itself).
    // It enables caching results in ./node_modules/.cache/babel-loader/
    // directory for faster rebuilds.
    cacheDirectory: true,
  },
},
  1. Configure SCSS as above

Current Tags

  • 0.1.6                                ...           latest (3 years ago)

40 Versions

  • 0.1.6                                ...           3 years ago
  • 0.1.5                                ...           3 years ago
  • 0.1.4                                ...           3 years ago
  • 0.1.3                                ...           3 years ago
  • 0.1.2                                ...           3 years ago
  • 0.0.34                                ...           3 years ago
  • 0.0.33                                ...           3 years ago
  • 0.0.32                                ...           3 years ago
  • 0.0.31                                ...           3 years ago
  • 0.0.30                                ...           3 years ago
  • 0.0.29                                ...           3 years ago
  • 0.0.28                                ...           3 years ago
  • 0.0.27                                ...           3 years ago
  • 0.0.26                                ...           3 years ago
  • 0.0.25                                ...           3 years ago
  • 0.0.24                                ...           3 years ago
  • 0.0.23                                ...           3 years ago
  • 0.0.22                                ...           3 years ago
  • 0.0.21                                ...           3 years ago
  • 0.0.20                                ...           3 years ago
  • 0.0.19                                ...           3 years ago
  • 0.0.18                                ...           3 years ago
  • 0.0.17                                ...           3 years ago
  • 0.0.16                                ...           3 years ago
  • 0.0.15                                ...           3 years ago
  • 0.0.14                                ...           3 years ago
  • 0.0.13                                ...           3 years ago
  • 0.0.12                                ...           3 years ago
  • 0.0.11                                ...           3 years ago
  • 0.0.10                                ...           3 years ago
  • 0.0.9                                ...           3 years ago
  • 0.0.8                                ...           3 years ago
  • 0.0.6                                ...           3 years ago
  • 0.0.5                                ...           3 years ago
  • 0.0.4                                ...           3 years ago
  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
Downloads
Today 0
This Week 0
This Month 41
Last Day 0
Last Week 40
Last Month 2
Dependencies (19)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |