Permalink
Browse files

Removing "main" from package.json and creating a root index.js file, …

…so that Webpack properly builds non-React projects. Related ticket… #90
1 parent d660a5f commit 15c1f94b438f76fcf446c27da0ed0f97883554d2 @nathansmith committed May 18, 2016
Showing with 23 additions and 15 deletions.
  1. +0 −12 assets/react/index.js
  2. +1 −1 bower.json
  3. +21 −0 index.js
  4. +1 −2 package.json
View
@@ -1,12 +0,0 @@
-/*global
-exports,
-require
-*/
-
-exports.Grid = require('./grid')
-
-exports.GridClear = require('./grid_clear')
-
-exports.GridContainer = require('./grid_container')
-
-exports.GridOffset = require('./grid_offset')
View
@@ -1,6 +1,6 @@
{
"name": "unsemantic",
- "version": "1.1.2",
+ "version": "1.1.3",
"description": "Fluid grid for mobile, tablet, and desktop.",
"license": [
"GPL",
View
@@ -0,0 +1,21 @@
+/*global
+exports,
+require
+*/
+
+/*
+ // This file exists for use with NPM and React.
+ // It is not meant to be loaded into a browser.
+
+ // Example...
+
+ import { Grid, GridContainer } from 'unsemantic'
+*/
+
+exports.Grid = require('./assets/react/grid')
+
+exports.GridClear = require('./assets/react/grid_clear')
+
+exports.GridContainer = require('./assets/react/grid_container')
+
+exports.GridOffset = require('./assets/react/grid_offset')
View
@@ -1,8 +1,7 @@
{
"name": "unsemantic",
- "version": "1.1.2",
+ "version": "1.1.3",
"description": "Fluid grid for mobile, tablet, and desktop.",
- "main": "./assets/react/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},

0 comments on commit 15c1f94

Please sign in to comment.