Skip to content

Commit a76b56f

Browse files
committed
config changes
1 parent c6efa6d commit a76b56f

File tree

6 files changed

+7
-130
lines changed

6 files changed

+7
-130
lines changed

.babelrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const env = process.env.NODE_ENV;
22

33
if (env === 'commonjs' || env === 'es') {
44
module.exports = {
5-
ignore: ['*.test.js', 'src/tests.js'],
5+
ignore: ['*.test.*'],
66
plugins: ['transform-runtime'],
77
presets: [['env', { modules: false }], 'react', 'stage-2'],
88
};

example/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@
5757
"predeploy": "npm run build && npm run build:storybook --prefix ..",
5858
"deploy": "surge ./build react-sortable-tree.surge.sh",
5959
"build": "node scripts/build.js",
60-
"postbuild": "rimraf 'build/**/*.map'",
61-
"test": "node scripts/test.js --env=jsdom"
60+
"postbuild": "rimraf 'build/**/*.map'"
6261
},
6362
"jest": {
6463
"collectCoverageFrom": [

example/scripts/test.js

-27
This file was deleted.

package.json

+4-5
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,21 @@
88
"build:umd": "npm run clean:umd && cross-env NODE_ENV=rollup rollup -c",
99
"build:es": "npm run clean:es && cross-env NODE_ENV=es babel src --out-dir dist/es",
1010
"build:commonjs": "npm run clean:commonjs && cross-env NODE_ENV=commonjs babel src --out-dir dist/commonjs",
11-
"build:storybook": "npm run clean:storybook && build-storybook -o build",
11+
"build:storybook": "npm run clean:storybook && build-storybook -o example/build/storybook",
1212
"clean:storybook": "rimraf build",
1313
"clean:commonjs": "rimraf dist/commonjs",
1414
"clean:es": "rimraf dist/es",
1515
"clean:umd": "rimraf dist/umd",
16-
"start": "cross-env NODE_ENV=development webpack-dev-server --hot",
17-
"lint": "eslint src examples",
18-
"prettier": "prettier --single-quote --trailing-comma es5 --write \"{src,examples}/**/*.{js,css,md}\"",
16+
"lint": "eslint src",
17+
"prettier": "prettier --write \"{src,example/src,stories}/**/*.{js,css,md}\"",
1918
"prepublishOnly": "npm run lint && npm run test && npm run build",
2019
"release": "standard-version",
2120
"test": "cross-env NODE_ENV=test jest",
2221
"test:watch": "cross-env NODE_ENV=test jest --watchAll",
2322
"deploy": "npm run build:storybook && gh-pages -d build",
2423
"storybook": "start-storybook -p ${PORT:-3001} -h 0.0.0.0"
2524
},
26-
"main": "dist/commonjs/index.js",
25+
"main": "dist/umd/react-sortable-tree.js",
2726
"module": "dist/es/index.js",
2827
"jsnext:main": "dist/es/index.js",
2928
"babel": {

stories/tree-data-io.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
import React, { Component } from 'react';
2-
import SortableTree, {
3-
getFlatDataFromTree,
4-
getTreeFromFlatData,
5-
} from '../src';
2+
import SortableTree, { getFlatDataFromTree, getTreeFromFlatData } from '../src';
63
// In your own app, you would need to use import styles once in the app
74
// import 'react-sortable-tree/styles.css';
85

webpack.config.js

-91
This file was deleted.

0 commit comments

Comments
 (0)