Skip to content

Commit 8ed319f

Browse files
author
Amir Tocker
committed
Move index.js to the src folder
1 parent a80615d commit 8ed319f

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

index.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"name": "cloudinary-react",
33
"version": "1.0.0-rc1",
44
"description": "Present Cloudinary images and videos using React components",
5-
"main": "index.js",
5+
"main": "lib/index.js",
66
"scripts": {
77
"test": "node_modules/.bin/mocha test/.setup.js test/*Test.js",
8-
"compile": "node_modules/.bin/babel src -d lib",
8+
"compile": "node_modules/.bin/babel src -d lib && cd src && find . -name package.json -exec cp --parents '{}' ../lib \\; -print",
99
"dist": "node_modules/.bin/webpack",
1010
"storybook": "start-storybook -p 6006",
1111
"build-storybook": "build-storybook"

src/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import React from 'react';
2+
import CloudinaryContext from './components/CloudinaryContext';
3+
import Image from './components/Image';
4+
import Transformation from './components/Transformation';
5+
import Video from './components/Video';
6+
7+
export { CloudinaryContext, Image, Transformation, Video};

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
entry: './index.js',
2+
entry: './src/index.js',
33
output: {
44
path: './dist',
55
filename: 'cloudinary-react.js',

0 commit comments

Comments
 (0)