Skip to content

Commit 0fe297c

Browse files
authored
Merge pull request #18 from plotly/generated_components
Add core elements of Dash API, support generated components
2 parents cd5c520 + a8d89de commit 0fe297c

File tree

93 files changed

+49535
-1383
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+49535
-1383
lines changed

.circleci/config.yml

+28-5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ version: 2
33
jobs:
44

55
test:
6-
working_directory: /root/project/Dash
7-
6+
working_directory: ~/dashjl
87
docker:
9-
- image: julia:latest
10-
8+
- image: plotly/julia:ci
9+
environment:
10+
PERCY_PARALLEL_TOTAL: '-1'
11+
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 'True'
12+
1113
steps:
1214
- checkout
1315

@@ -26,7 +28,28 @@ jobs:
2628
- run:
2729
name: 🔎 Unit tests
2830
command: |
29-
julia -e 'using Pkg; Pkg.update(); Pkg.add(PackageSpec(path=pwd())); Pkg.build("Dash"); Pkg.test("Dash", coverage=true);'
31+
julia -e 'using Pkg; Pkg.update(); Pkg.add(PackageSpec(url="https://github.com/plotly/Dash.jl.git", rev=ENV["CIRCLE_BRANCH"])); Pkg.add(PackageSpec(url="https://github.com/waralex/dash-html-components.git", rev="jl_generator_test")); Pkg.add(PackageSpec(url="https://github.com/waralex/dash-core-components.git", rev="jl_generator_test")); Pkg.build("Dash"); Pkg.build("DashHtmlComponents"); Pkg.build("DashCoreComponents"); Pkg.test("Dash", coverage=true); function precompile_pkgs(); for pkg in collect(keys(Pkg.installed())); if !isdefined(Symbol(pkg), :Symbol) && pkg != "Compat.jl"; @info("Importing $(pkg)..."); try (@eval import $(Symbol(pkg))) catch end; end; end; end; precompile_pkgs()'
32+
33+
- run:
34+
name: ⚙️ Integration tests
35+
command: |
36+
python -m venv venv
37+
. venv/bin/activate
38+
git clone --depth 1 https://github.com/plotly/dash.git -b add-julia-runner dash-main
39+
cd dash-main && pip install -e .[dev,testing] --progress-bar off && cd ~/dashjl
40+
export PATH=$PATH:/home/circleci/.local/bin/
41+
pytest --headless --nopercyfinalize --junitxml=test-reports/dashjl.xml --percy-assets=test/assets/ test/integration/
42+
- store_artifacts:
43+
path: test-reports
44+
- store_test_results:
45+
path: test-reports
46+
- store_artifacts:
47+
path: /tmp/dash_artifacts
48+
49+
- run:
50+
name: 🦔 percy finalize
51+
command: npx percy finalize --all
52+
when: always
3053

3154
workflows:
3255
version: 2

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ components/*
88
lib/*
99
Manifest.toml
1010
.DS_Store
11-
docs/build
11+
docs/build
12+
venv
13+
*.pyc
14+
tmp

Project.toml

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,25 @@ authors = ["Alexandr Romanenko"]
44
version = "0.1.0"
55

66
[deps]
7+
CodecZlib = "944b1d66-785c-5afd-91f1-9de20f533193"
78
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
89
HTTP = "cd3eb016-35fb-5094-929b-558a96fad6f3"
910
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
1011
JSON2 = "2535ab7d-5cd8-5a07-80ac-9b1792aadce3"
11-
CodecZlib = "944b1d66-785c-5afd-91f1-9de20f533193"
1212
LibGit2 = "76f85450-5226-5b5a-8eaa-529ad045b433"
13+
MD5 = "6ac74813-4b46-53a4-afec-0b5dc9d7885c"
1314
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
1415
PlotlyBase = "a03496cd-edff-5a9b-9e67-9cda94a718b5"
1516
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1617

1718
[compat]
18-
julia = "1.1"
1919
DataStructures = "0.17.5"
20-
HTTP = "0.8.6"
20+
HTTP = "0.8.10"
2121
JSON = "0.21.0"
2222
JSON2 = "0.3.1"
2323
MacroTools = "0.5.1"
2424
PlotlyBase = "0.3.0"
25+
julia = "1.1"
2526

2627
[extras]
2728
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

component_sources.json

-28
This file was deleted.

components_meta.json

-60
This file was deleted.

deps/build.jl

-13
This file was deleted.

0 commit comments

Comments
 (0)