Skip to content

Commit 59763e1

Browse files
authored
WIP: 2.0 (#155)
* Fix: setup new release tag for test releases * update lockfile * working on proper esm support * fork code that is blocking tree-shake * refactoring to es6 * refactor to support tree shake * Fix: formatting * Fix: release-config * update description and tags * strip prerelease setup * move current frontpage to "tests" * preparing to move to styled-components * replace instanceof with element check that works cross iframes and other realms * Support scrolling svg elements into view * really allow 'em svgs * reworking frontpage * refactoring refactoring * nice colors * update to the same image cypress uses internally * upgrade deps * upgrade to latest cypress * test * unable to get the image working for now * upgraded cypress * adding bulma * WIP * add introductions * Setting up alignment options * WIP * another example and more info * wip * config * use new package * keeping it up * working on scroll to block: end logic * block: "end" is done * prettier * block: 'start' is done and stable * inline: "start" | "center" | "end" is implemented * cleanup * cleanup * wip * fix build * first ponyfill version * TS happy again * update a few deps * Sync with Prettier * moving cypress to ts * ignore junit as only ci needs it * shake up * about to use yarn workspaces * prepare monorepo * gitignore needs to be redone * update readmes * cleanup * test new circleci setup * Sync with Prettier * setup pipeline * only on master
1 parent 56fe53f commit 59763e1

Some content is hidden

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

49 files changed

+3964
-1188
lines changed

.circleci/config.yml

+48-50
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,55 @@
1+
2+
aliases:
3+
- &restore-cache
4+
keys:
5+
- v3-dependencies-{{ .Branch }}-{{ checksum "yarn.lock" }}
6+
# Fallback in case checksum fails
7+
- v3-dependencies-{{ .Branch }}-
8+
9+
- &save-cache
10+
paths:
11+
- node_modules
12+
key: v2-dependencies-{{ .Branch }}-{{ checksum "yarn.lock" }}
13+
14+
- &cypress-dependencies-install
15+
run:
16+
name: Install Cypress dependencies
17+
command: sudo apt-get install xvfb libgtk2.0-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2
18+
119
version: 2
220
jobs:
3-
build:
21+
Website:
422
docker:
523
- image: circleci/node:carbon-browsers
6-
7-
working_directory: ~/repo
8-
924
steps:
1025
- checkout
11-
12-
- run: node --version && npm --version && npx --version && yarn --version
13-
14-
- run:
15-
name: Install Cypress dependencies
16-
command: sudo apt-get install xvfb libgtk2.0-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2
17-
18-
- add-ssh-keys:
19-
fingerprints:
20-
- "e1:ca:5d:f0:58:11:c7:ae:b7:ac:4a:1b:cc:3a:0d:4a"
21-
22-
- restore_cache:
23-
keys:
24-
- v3-dependencies-{{ checksum "yarn.lock" }}
25-
- v3-dependencies-
26-
27-
- run: yarn install
28-
29-
- run: yarn build
30-
3126
- run:
32-
command: yarn start
33-
background: true
34-
35-
- run: npx wait-on http://localhost:3000
36-
37-
- run: yarn test
38-
39-
- store_test_results:
40-
path: junit
41-
42-
- store_artifacts:
43-
path: cypress/screenshots
44-
45-
- save_cache:
46-
paths:
47-
- node_modules
48-
key: v3-dependencies-{{ checksum "yarn.lock" }}
49-
50-
- run: yarn semantic-release || true
51-
52-
- run:
53-
name: Maybe deploy to gh-pages
54-
command: |
55-
if [[ $CIRCLE_BRANCH == master ]]; then
56-
yarn docs
57-
fi
27+
name: Report dependency versions included in the docker image
28+
command: node --version && npm --version && npx --version && yarn --version
29+
- *cypress-dependencies-install
30+
- restore-cache: *restore-cache
31+
- run: echo TODO
32+
- save-cache: *save-cache
33+
34+
Semantic Release:
35+
docker:
36+
- image: circleci/node:8
37+
steps:
38+
- checkout
39+
- restore-cache: *restore-cache
40+
- run: echo TODO build
41+
- save-cache: *save-cache
42+
- run: yarn semantic-release
43+
44+
# Workflows enables us to run multiple jobs in parallel
45+
workflows:
46+
version: 2
47+
Build and Deploy:
48+
jobs:
49+
- Website
50+
- Semantic Release:
51+
requires:
52+
- Website
53+
filters:
54+
branches:
55+
only: master

.editorconfig

-9
This file was deleted.

.gitignore

-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1 @@
1-
dist
2-
docs/**/*
3-
!docs/.nojekyll
41
node_modules
5-
cypress/videos
6-
cypress/screenshots
7-
8-
test/bundle.js

.npmignore

-15
This file was deleted.

.prettierignore

-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
node_modules
2-
dist
3-
docs
42
package.json

.vscode/settings.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
{
2-
"files.exclude": {
3-
"example/**/*.js": true
4-
}
2+
"files.exclude": {}
53
}

0 commit comments

Comments
 (0)