Skip to content

Commit

Permalink
Merge pull request #503 from Kitware/slim-bundle
Browse files Browse the repository at this point in the history
Update infrastructure to avoid "fat" Candela bundle
  • Loading branch information
Roni Choudhury committed Jul 7, 2017
2 parents 9c8a1b2 + 237f28b commit 9a3c04e
Show file tree
Hide file tree
Showing 241 changed files with 1,519 additions and 937 deletions.
26 changes: 17 additions & 9 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
app
build
config
build/
docs/
examples/
python/
R/
script/
test/
**/test/
candela-all.js
!dist/candela.js
circle.yml
CONTRIBUTING.md
coverage
docs
python
R
requirements-dev.txt
script
tests.bundle.js
shell.nix
webpack.config.js
.babelrc
.npmignore
.server.pid
.server.log
2 changes: 1 addition & 1 deletion R/candela/inst/htmlwidgets/lib/candela/candela.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var s = document.createElement('script');
s.type = 'text/javascript';
s.src = '//unpkg.com/candela';
s.src = '//unpkg.com/candela/dist/candela.min.js';
document.head.appendChild(s);
10 changes: 0 additions & 10 deletions app/examples/date-histogram/index.js

This file was deleted.

25 changes: 0 additions & 25 deletions app/examples/geodots/index.js

This file was deleted.

5 changes: 0 additions & 5 deletions app/examples/index.jade

This file was deleted.

6 changes: 0 additions & 6 deletions app/examples/index.js

This file was deleted.

10 changes: 0 additions & 10 deletions app/examples/tree-heatmap/index.js

This file was deleted.

2 changes: 0 additions & 2 deletions app/examples/util/showComponent/index.jade

This file was deleted.

16 changes: 0 additions & 16 deletions app/examples/util/showComponent/index.js

This file was deleted.

16 changes: 16 additions & 0 deletions candela-all.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import './plugins/geojs/load';
import './plugins/glo/load';
import './plugins/lineup/load';
import './plugins/mixin/load';
import './plugins/onset/load';
import './plugins/sententree/load';
import './plugins/similaritygraph/load';
import './plugins/trackerdash/load';
import './plugins/treeheatmap/load';
import './plugins/upset/load';
import './plugins/vega/load';

import candela from '.';

export default candela;
export * from '.';
9 changes: 0 additions & 9 deletions candela.js

This file was deleted.

18 changes: 14 additions & 4 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,16 @@ dependencies:

compile:
override:
# Build Candela.
- npm run build

# Build the examples.
- npm run build:examples

# Build the unit test and coverage test bundles.
- npm run build:test:unit
- npm run build:test:coverage

test:
override:
# Lint tests.
Expand All @@ -34,17 +41,20 @@ test:
CANDELA_DUMP_IMAGE: all

# Coverage tests.
- npm run cover
- npm run codecov
- npm run test:coverage
- npm run test:coverage:codecov

post:
# Gather up the testing images as build artifacts.
- mkdir $CIRCLE_ARTIFACTS/test_images
- find components -name '*.png' | xargs -I xxx cp xxx $CIRCLE_ARTIFACTS/test_images
- find plugins -name '*.png' | xargs -I xxx cp xxx $CIRCLE_ARTIFACTS/test_images

# Copy the html coverage report to the artifacts directory as well.
- mkdir $CIRCLE_ARTIFACTS/coverage
- cp -r build/coverage/html $CIRCLE_ARTIFACTS/coverage

deployment:
semantic-release:
branch: master
commands:
- npm run dist
- npm run semantic-release || true
9 changes: 0 additions & 9 deletions components/LineChart/test/linechart-points.image.js

This file was deleted.

25 changes: 0 additions & 25 deletions config/karma-base.conf.js

This file was deleted.

39 changes: 0 additions & 39 deletions config/karma-coverage.conf.js

This file was deleted.

12 changes: 0 additions & 12 deletions config/karma-testing.conf.js

This file was deleted.

25 changes: 0 additions & 25 deletions config/webpack-coverage.config.js

This file was deleted.

0 comments on commit 9a3c04e

Please sign in to comment.