Skip to content

Commit

Permalink
Cleanup Dash test packages (#1391)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc-Andre-Rivet committed Sep 2, 2020
1 parent 515c771 commit 9268480
Show file tree
Hide file tree
Showing 13 changed files with 6,305 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ npm-debug*
dash_renderer/
dash_generator_test_component_standard/
dash_generator_test_component_nested/
dash_generator_test_component_sub_nested/
dash_test_components/
inst/
man/
R/
Expand Down
2 changes: 2 additions & 0 deletions @plotly/dash-test-components/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include dash_test_components/**
include package.json
1 change: 1 addition & 0 deletions @plotly/dash-test-components/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Empty
6 changes: 6 additions & 0 deletions @plotly/dash-test-components/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const presets = [
'@babel/preset-env',
'@babel/preset-react'
];

module.exports = { presets };
23 changes: 23 additions & 0 deletions @plotly/dash-test-components/base/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import json
import os as _os

_basepath = _os.path.dirname(__file__)
_filepath = _os.path.abspath(_os.path.join(_basepath, 'package.json'))
with open(_filepath) as f:
package = json.load(f)

package_name = package['name'].replace(' ', '_').replace('-', '_')
__version__ = package['version']

from ._imports_ import * # noqa: F401, F403
from ._imports_ import __all__ # noqa: E402

_js_dist = [
dict(
relative_package_path='dash_test_components.js',
namespace='dash_test_components'
)
]

for _component in __all__:
setattr(locals()[_component], '_js_dist', _js_dist)
Loading

0 comments on commit 9268480

Please sign in to comment.