+`;
+document.body.appendChild(forkme);
diff --git a/package.json b/package.json
index 8deccf0..00fe2e8 100644
--- a/package.json
+++ b/package.json
@@ -4,14 +4,16 @@
"description": "Build CSV files on the fly basing on Array/literal object of data ",
"main": "index.js",
"scripts": {
- "compile": "babel --presets es2015,stage-0,react -d lib/ src/",
- "prepublish": "npm run compile",
+ "cdn": "node cdn/generator.js",
+ "compile": "babel -d lib/ src/ --no-comments",
+ "prepublish": "npm run compile && npm run cdn",
"pretest": "npm run compile",
"test2": "node_modules/.bin/_mocha test",
"test": "node_modules/.bin/babel-node node_modules/.bin/babel-istanbul cover node_modules/.bin/_mocha -- test/*.js",
"coverage": "istanbul cover _mocha -- --ui bdd -R spec -t 5000;open ./coverage/lcov-report/index.html",
"cover": "node_modules/.bin/babel-node node_modules/.bin/babel-istanbul cover node_modules/.bin/_mocha",
- "coveralls": "npm run cover -- --report lcovonly && cat ./coverage/lcov.info | coveralls"
+ "coveralls": "npm run cover -- --report lcovonly && cat ./coverage/lcov.info | coveralls",
+ "docgen": "documentation build src/** -f html -o docs"
},
"repository": {
"type": "git",
@@ -40,14 +42,24 @@
"babel-cli": "^6.18.0",
"babel-core": "^6.18.2",
"babel-istanbul": "^0.11.0",
+ "babel-loader": "^6.2.8",
+ "babel-plugin-react-html-attrs": "^2.0.0",
+ "babel-plugin-syntax-decorators": "^6.13.0",
+ "babel-plugin-transform-class-properties": "^6.19.0",
+ "babel-plugin-transform-decorators-legacy": "^1.3.4",
+ "babel-plugin-transform-es2015-modules-commonjs": "^6.18.0",
"babel-polyfill": "^6.16.0",
"babel-preset-es2015": "^6.18.0",
"babel-preset-react": "^6.16.0",
- "babel-preset-stage-0": "^6.16.0",
+ "babel-preset-stage-3": "^6.16.0",
+ "browserify": "^13.3.0",
"console-info": "0.0.4",
"coveralls": "^2.11.15",
+ "css-loader": "^0.26.1",
"enzyme": "^2.6.0",
"expect": "^1.20.2",
+ "extract-text-webpack-plugin": "^1.0.1",
+ "isparta-loader": "^2.0.0",
"jsdom": "9.8.3",
"jsdom-global": "2.1.0",
"mocha": "^3.2.0",
@@ -55,9 +67,13 @@
"react": "^15.4.1",
"react-addons-test-utils": "^15.4.1",
"react-dom": "^15.4.1",
- "sinon": "^1.17.6"
- },
- "dependencies": {
- "x-object": "^1.0.10"
+ "sass-loader": "^4.0.2",
+ "sinon": "^1.17.6",
+ "style-loader": "^0.13.1",
+ "uglify-js": "^2.7.5",
+ "webpack": "^1.13.3",
+ "webpack-dev-middleware": "^1.8.4",
+ "webpack-dev-server": "^1.16.2",
+ "webpack-hot-middleware": "^2.13.2"
}
}
diff --git a/sample-site/README.md b/sample-site/README.md
new file mode 100644
index 0000000..6f7e4bf
--- /dev/null
+++ b/sample-site/README.md
@@ -0,0 +1,23 @@
+# Overview :
+
+This is a sample website built with React. It aimes to prove the feature of this package in the client side (browser).
+
+# Run the sample :
+
+```bash
+
+git clone https://github.com/abdennour/react-csv.git ;
+cd react-csv;
+npm install;
+npm run start;
+
+```
+
+Then , navigate to :
+
+[http://localhost:8008/](http://localhost:8008/)
+
+```
+...running 🏃🏿 🏃🏻
+🌏 Listening at http://localhost:8008 👏 👏 👌
+```
diff --git a/sample-site/index.html b/sample-site/index.html
new file mode 100644
index 0000000..72016a4
--- /dev/null
+++ b/sample-site/index.html
@@ -0,0 +1,18 @@
+
+
+
+
+