Skip to content

Commit

Permalink
Merge pull request #534 from Kitware/lerna
Browse files Browse the repository at this point in the history
Enable monorepo building via Lerna
  • Loading branch information
waxlamp committed May 9, 2018
2 parents 0287429 + ba13c9d commit 1e49aa4
Show file tree
Hide file tree
Showing 356 changed files with 3,506 additions and 16,078 deletions.
12 changes: 4 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
*.sw*
*.pyc
node_modules
package-lock.json
node_modules/
docs/static/candela.js
build
coverage
dist
.server.pid
.server.log
npm-debug.log
*-diff.png
*-test.png
.ipynb_checkpoints
docs/static/candela.js
lerna-debug.log
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
16 changes: 0 additions & 16 deletions candela-all.js

This file was deleted.

17 changes: 8 additions & 9 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ dependencies:
# Install flake8 for Python linting.
- sudo pip install flake8

# Install Lerna globally.
- npm install -g lerna@2.10.2

# Inject npm token into environment.
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >>~/.npmrc

cache_directories:
- node_modules

compile:
override:
# Build Candela.
Expand All @@ -26,8 +26,8 @@ compile:
- npm run build:examples

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

test:
override:
Expand All @@ -45,19 +45,18 @@ test:

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

post:
# Gather up the testing images as build artifacts.
- mkdir $CIRCLE_ARTIFACTS/test_images
- find plugins -name '*.png' | xargs -I xxx cp xxx $CIRCLE_ARTIFACTS/test_images
- find packages/examples/test -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:
lerna-publish:
branch: master
commands:
- DEBUG=condition npm run semantic-release
- lerna publish --conventional-commits --yes
73 changes: 0 additions & 73 deletions index.js

This file was deleted.

7 changes: 7 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"lerna": "2.10.2",
"packages": [
"packages/*"
],
"version": "0.19.1"
}

0 comments on commit 1e49aa4

Please sign in to comment.