Skip to content

Commit

Permalink
Examples (#68)
Browse files Browse the repository at this point in the history
* doc(examples): initial setup for parcel+jit example

* chore(jit-parcel): remove requirejs

* chore(all): add jit-parcel example to lerna, change to peerDependencies

* chore(jit-parcel): use normal dependencies

* chore(all): add npm pack script & use the packages for the example

* fix(jit-parcel): remove else for now, fix instructions

* fix(template-compiler): wrap the nodes in a fragment

* chore(examples): add convenience wrapper script to setup examples

* fix(jit-parcel): remove path mappings from tsconfig

* chore(all): remove examples from lerna and init script

* chore(jit-parcel): update package-lock

* fix(template-compiler): use firstElementChild instead of wrapper

* feat(observers): auto-enable collection observers and make the toggles idempotent

* fix(template-compiler): various small tweaks and fixes, make example work

* fix(jit-parcel): make the example work with something simple

* fix(aurelia): set isStarted=true after tasks have finished

* test(jit-parcel): add e2e tests

* chore(ci): configure e2e tests for circleci / organize a bit

* fix(e2e): move publish into e2e job

* fix(ci): fix typo

* fix(ci): set the correct path before each cmd

* fix(ci): try a different approach for the workspaces
  • Loading branch information
fkleuver authored and EisenbergEffect committed Aug 19, 2018
1 parent c1dd8e0 commit d6a10b5
Show file tree
Hide file tree
Showing 37 changed files with 9,643 additions and 5,977 deletions.
76 changes: 48 additions & 28 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ jobs:
node --version
npm --version
- checkout
- run: npm ci -dd
- run:
name: "Install npm packages"
command: |
npm ci -dd
- save_cache:
key: *cache_key
paths:
Expand All @@ -31,12 +34,21 @@ jobs:
- checkout
- restore_cache:
key: *cache_key
- run: npm run bootstrap
- run: npm run build
- run:
name: "Bootstrap and build the packages"
command: |
npm run bootstrap
npm run build
- run:
name: "Create tarballs from the build outputs"
command: |
npm run publish:local
- persist_to_workspace:
root: .
paths: packages/*/dist
paths: packages/*/node_modules
root: ~/repo
paths:
- packages/*/dist
- packages/*/node_modules
- packages/*/*.tgz

unit_tests:
<<: *defaults
Expand All @@ -49,7 +61,9 @@ jobs:
# environment:
# TS_NODE_PROJECT: tsconfig.json
- run:
command: "npm run test"
name: "Run unit tests"
command: |
npm run test
environment:
JUNIT_REPORT_PATH: ./junit/
JUNIT_REPORT_NAME: test-results.xml
Expand Down Expand Up @@ -114,24 +128,30 @@ jobs:
- store_artifacts:
path: ./packages/plugin-svg/coverage

#e2e_tests:
# <<: *defaults
# steps:
# - checkout
# - restore_cache:
# key: *cache_key
# - attach_workspace:
# at: .
# - run:
# name: Selenium Start
# background: true
# command: webdriver-manager start
# - run:
# name: App Start
# background: true
# command: http-server -c-1 -p 8000 .
# - run:
# command: "protractor protractor.conf.js"
e2e_tests:
<<: *defaults
steps:
- checkout
- restore_cache:
key: *cache_key
- attach_workspace:
at: ~/repo
- run:
name: Install jit-parcel
command: |
cd ./packages/examples/jit-parcel
npm install
- run:
name: Serve jit-parcel in the background
background: true
command: |
cd ./packages/examples/jit-parcel
npm run serve
- run:
name: Run the e2e tests
command: |
cd ./packages/examples/jit-parcel
npm run e2e
workflows:
version: 2
Expand All @@ -144,7 +164,7 @@ workflows:
- unit_tests:
requires:
- install
#- e2e_tests:
# requires:
# - build
- e2e_tests:
requires:
- build

Loading

0 comments on commit d6a10b5

Please sign in to comment.