Skip to content

Commit 60a6861

Browse files
authored
Feat: browser support (#19)
Big undertaking to support Mercury in the browser. Builds are working and all tests are passing both for web and node builds. Most code is closely shared.
1 parent eaea574 commit 60a6861

Some content is hidden

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

66 files changed

+6910
-8090
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
**/fixtures/*
22
dist/*
33
coverage/*
4+
karma.conf.js

circle.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ machine:
33
pre:
44
- mkdir ~/.yarn-cache
55

6-
timezone:
7-
America/New_York
8-
96
node:
107
version:
118
4.3.2
@@ -14,8 +11,10 @@ machine:
1411
dependencies:
1512
pre:
1613
- curl -o- -L https://yarnpkg.com/install.sh | bash
17-
- nvm install 6.9.1
1814
- nvm install 7.0.0
15+
# For some reason phantomjs-prebuild is failing w/yarn, but npm installing works
16+
- npm install phantomjs-prebuilt
17+
1918
cache_directories:
2019
- ~/.yarn-cache
2120
override:
@@ -24,9 +23,11 @@ dependencies:
2423
## Customize test commands
2524
test:
2625
override:
27-
- nvm use 4.3.2 && yarn build && yarn test -- --maxWorkers=4:
26+
# Using 4.3.2 by default
27+
- yarn build && yarn test -- --maxWorkers=4:
2828
parallel: true
29-
- nvm use 6.9 && yarn build && yarn test -- --maxWorkers=4:
29+
# Switch to 7 and lint
30+
- nvm use 7.0 && yarn lint:ci && yarn build && yarn test -- --maxWorkers=4:
3031
parallel: true
31-
- nvm use 7.0 && yarn build && yarn test -- --maxWorkers=4:
32+
- nvm use 7.0 && yarn test:web -- --maxWorkers=4 && yarn build:web -- --maxWorkers=4:
3233
parallel: true

dist/generate-custom-parser.js

+2,017-1,933
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/generate-custom-parser.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)