You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+7
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
13
13
### Changed
14
14
-[#1679](https://github.com/plotly/dash/pull/1679) Restructure `dash`, `dash-core-components`, `dash-html-components`, and `dash-table` into a singular monorepo and move component packages into `dash`. This change makes the component modules available for import within the `dash` namespace, and simplifies the import pattern for a Dash app. From a development standpoint, all future changes to component modules will be made within the `components` directory, and relevant packages updated with the `dash-update-components` CLI command.
15
15
-[#1707](https://github.com/plotly/dash/pull/1707) Change the default value of the `compress` argument to the `dash.Dash` constructor to `False`. This change reduces CPU usage, and was made in recognition of the fact that many deployment platforms (e.g. Dash Enterprise) already apply their own compression. If deploying to an environment that does not already provide compression, the Dash 1 behavior may be restored by adding `compress=True` to the `dash.Dash` constructor.
16
+
-[#1734](https://github.com/plotly/dash/pull/1734) Added `npm run build` script to simplify build process involving `dash-renderer` and subcomponent libraries within `dash`.
17
+
16
18
17
19
## Dash Core Components
18
20
### Added
@@ -24,6 +26,11 @@ This project adheres to [Semantic Versioning](https://semver.org/).
24
26
25
27
-[#1729](https://github.com/plotly/dash/pull/1729) Include F#, C#, and MATLAB in markdown code highlighting, for the upcoming .NET and MATLAB flavors of dash.
26
28
29
+
## Dash HTML Components
30
+
### Removed
31
+
32
+
-[#1734](https://github.com/plotly/dash/pull/1734) Removed the following obsolete `html` elements - `<command>`, `<element>`, `<isindex>`, `<listing>`, `<multicol>`, `<nextid>`. These are obsolete and had been previously removed from the reference table.
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+9-12
Original file line number
Diff line number
Diff line change
@@ -15,18 +15,15 @@ $ python3 -m venv .venv/dev
15
15
$ source .venv/dev/bin/activate
16
16
# install dash and dependencies
17
17
$ pip install -e .[testing,dev] # in some shells you need \ to escape []
18
-
$ cd dash-renderer
19
-
# build renderer bundles, this will build all bundles from source code
20
-
# the only true source of npm version is defined in package.json
21
18
$ npm install
22
-
$ npm run build # or `renderer build`
23
-
# install dash-renderer for development
24
-
$ pip install -e .
19
+
# this script will build the dash-core-components, dash-html-components, dash-table,
20
+
# and renderer bundles; this will build all bundles from source code in their
21
+
# respective directories. The only true source of npm version is defined
22
+
# in package.json for each package.
23
+
$ npm run build # runs `renderer build` and `npm build` in dcc, html, table
25
24
# build and install components used in tests
26
-
$ cd .. # should be back in dash/ root directory
27
-
$ npm install
28
25
$ npm run setup-tests.py # or npm run setup-tests.R
29
-
# you should see both dash and dash-renderer are pointed to local source repos
26
+
# you should see dash points to a local source repo
30
27
$ pip list | grep dash
31
28
```
32
29
@@ -38,20 +35,20 @@ If you want to contribute or simply dig deeper into Dash, we encourage you to pl
38
35
39
36
For contributors with a primarily **Python** or **R** background, this section might help you understand more details about developing and debugging in JavaScript world.
40
37
41
-
As of Dash 1.2, the renderer bundle and its peer dependencies can be packed and generated from the source code. The `dash-renderer\package.json` file is the one version of the truth for dash renderer version and npm dependencies. A build tool `renderer`, which is a tiny Python script installed by Dash as a command-line tool, has a few commands:
38
+
As of Dash 1.2, the renderer bundle and its peer dependencies can be packed and generated from the source code. The `dash-renderer\package.json` file is the one version of the truth for dash renderer version and npm dependencies. A build tool `renderer`, which is a tiny Python script installed by Dash as a command-line tool, has a few commands which can be run from within the `dash/dash-renderer` directory:
42
39
43
40
1.`renderer clean` deletes all the previously generated assets by this same tool.
44
41
2.`renderer npm` installs all the npm modules using this `package.json` files. Note that the `package-lock.json` file is the computed reference product for the versions defined with tilde(~) or caret(^) syntax in npm.
45
42
3.`renderer bundles` parses the locked version JSON, copies all the peer dependencies into dash_renderer folder, bundles the renderer assets, and generates an `__init__.py` to map all the resources. There are also a list of helpful `scripts` property defined in `package.json` you might need to do some handy tasks like linting, syntax format with prettier, etc.
46
43
4.`renderer digest` computes the content hash of each asset in `dash_renderer` folder, prints out the result in logs, and dumps into a JSON file `digest.json`. Use this when you have a doubt about the current assets in `dash_renderer`, and compare it with previous result in one shot by this command.
47
44
5.`renderer build` runs 1, 2, 3, 4 in sequence as a complete build process from scratch.
48
-
6.`renderer build local` runs the same order as in 5 and also generates source maps for debugging purposes. You also need to install dash-renderer with editable mode: `pip install -e .`.
45
+
6.`renderer build local` runs the same order as in 5 and also generates source maps for debugging purposes.
49
46
50
47
When a change in renderer code doesn't reflect in your browser as expected, this could be: confused bundle generation, caching issue in a browser, Python package not in `editable` mode, etc. The new tool reduces the risk of bundle assets by adding the digest to help compare asset changes.
51
48
52
49
### Development of `dash-core-components`, `dash-html-components`, and `dash_table`
53
50
54
-
Specific details on making updates and contributions to `dcc`, `html`, and `dash_table` can be found within their respective sub-directories in the `components` directory. Once changes have been made in the specific directories, the `dash-update-components` command line tool can be used to update the build artifacts and dependencies of the respective packages within Dash. For example, if a change has been made to `dash-core-components`, use `dash-update-components "dash-core-components"` to move the build artifacts to Dash. By default, this is set to update `all` packages.
51
+
Specific details on making changes and contributing to `dcc`, `html`, and `dash_table` can be found within their respective sub-directories in the `components` directory. Once changes have been made in the specific directories, the `dash-update-components` command line tool can be used to update the build artifacts and dependencies of the respective packages within Dash. For example, if a change has been made to `dash-core-components`, use `dash-update-components "dash-core-components"` to move the build artifacts to Dash. By default, this is set to update `all` packages.
0 commit comments