Skip to content

Commit

Permalink
change build (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc-Andre-Rivet committed Jun 20, 2019
1 parent f1f8aa5 commit 3024449
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
1 change: 1 addition & 0 deletions packages/dash-table/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ jobs:
. venv/bin/activate
git clone --depth 1 [email protected]:plotly/dash.git dash-main
pip install -e ./dash-main --quiet
cd dash-main/dash-renderer && npm install --ignore-scripts && npm run build && pip install -e . && cd ../..
- run:
name: Install test requirements
Expand Down
10 changes: 5 additions & 5 deletions packages/dash-table/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"pretest.standalone": "run-s private::build:js-test",
"private::build": "node --max_old_space_size=4096 node_modules/webpack/bin/webpack --display-reasons --bail",
"private::build:js": "run-s \"private::build -- --mode production\"",
"private::build:js-dev": "run-s \"private::build -- --mode development\"",
"private::build:js-test": "run-s \"private::build -- --config webpack.test.config.js\"",
"private::build:js-test-watch": "run-s \"private::build -- --config webpack.test.config.js --watch\"",
"private::build:js-dev": "run-s \"private::build -- --mode development --config webpack.dev.config.js\"",
"private::build:js-test": "run-s \"private::build -- --mode development --config webpack.test.config.js\"",
"private::build:js-test-watch": "run-s \"private::build -- --mode development --config webpack.test.config.js --watch\"",
"private::build:py": "dash-generate-components src/dash-table/dash/DataTable.js dash_table -p package-info.json",
"private::host_dash8081": "python tests/cypress/dash/v_be_page.py",
"private::host_dash8082": "python tests/cypress/dash/v_copy_paste.py",
Expand All @@ -37,7 +37,7 @@
"private::test.unit": "cypress run --browser chrome --spec 'tests/cypress/tests/unit/**/*'",
"private::test.server": "cypress run --browser chrome --spec 'tests/cypress/tests/server/**/*'",
"private::test.standalone": "cypress run --browser chrome --spec 'tests/cypress/tests/standalone/**/*'",
"build.watch": "webpack-dev-server --content-base dash_table --mode development",
"build.watch": "webpack-dev-server --content-base dash_table --mode development --config webpack.dev.config.js",
"build": "run-s private::build:js private::build:py",
"lint": "run-s private::lint:*",
"test.server": "run-p --race private::host* private::test.server",
Expand Down Expand Up @@ -108,4 +108,4 @@
"node": ">=8.11.0",
"npm": ">=6.1.0"
}
}
}
5 changes: 4 additions & 1 deletion packages/dash-table/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
module.exports = require('./.config/webpack/base.js')();
let config = require('./.config/webpack/base.js')();
config.externals['prop-types'] = 'PropTypes';

module.exports = config;
4 changes: 1 addition & 3 deletions packages/dash-table/webpack.test.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,4 @@ const options = {
mode: 'development'
};

const config = require('./.config/webpack/base.js')(options);

module.exports = config;
module.exports = require('./.config/webpack/base.js')(options);

0 comments on commit 3024449

Please sign in to comment.