Skip to content

Commit

Permalink
Merge pull request #66 from discoveryjs/esbuild
Browse files Browse the repository at this point in the history
Bundling with esbuild, Shadow DOM, preloader and related changes
  • Loading branch information
lahmatiy authored Feb 5, 2021
2 parents a3b68d6 + 54803cc commit 597531f
Show file tree
Hide file tree
Showing 61 changed files with 1,960 additions and 2,094 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"discovery": true
},
"parserOptions": {
"ecmaVersion": 2018,
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": [
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
- name: Cypress run
uses: cypress-io/github-action@v2
with:
start: npm run start:server
wait-on: 'http://localhost:8123'
start: npm run cypress:server
wait-on: 'http://localhost:8124'
record: true
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
## next

- Reworked to use `esbuild` for bundling
- Reworked to use Shadow DOM for style and event isolation
- Added preloader
- Removed quick inspection mode for now, due to annoying in various use cases
- Added JSON parser from `json-ext` library, that's adds support for JSON greater than 512MB on V8
- Improved UX when data loading from a file by showing progress bar
- Added `App#loadDataFromStream()` and `App#loadDataFromFile()` methods
- Added `unsubscribe` as a second parameter for publisher's subscriber handler
- Changed `source` view to highligh using CodeMirror only
- Enabled `source` view syntaxes can be observed on `#views-showcase:source` page
- Removed `Prismjs` and related dependencies
- Moved `source` view to regular views, dropped `complexViews` from exports

## 1.0.0-beta.52 (19-11-2020)

Expand Down
3 changes: 1 addition & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018 Avito Technology
Copyright (c) 2019 Roman Dvornov
Copyright (c) 2018-2021 Roman Dvornov

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
5 changes: 3 additions & 2 deletions cypress.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"projectId": "t2rgkz"
}
"projectId": "t2rgkz",
"includeShadowDom": true
}
2 changes: 1 addition & 1 deletion cypress/integration/single-model/single-model.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
describe('Single model', () => {
it('Visits discovery server', () => {
cy.visit('localhost:8123');
cy.visit('localhost:8124');
});

it('Has model name', () => {
Expand Down
4 changes: 2 additions & 2 deletions cypress/test.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
npx discovery -c ./cypress/fixtures/single-model/.discoveryrc.js &
npm run cypress:server &
PID=$!
cypress run --headless
kill $PID
kill $PID
7 changes: 4 additions & 3 deletions dist/.npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*
!discovery.js
!discovery.*.js
!discovery-preloader.js
# !discovery-preloader.js.map
!discovery.css
!discovery.*.css
!discovery.js
# !discovery.js.map
28 changes: 0 additions & 28 deletions libs/es5toEs6.js

This file was deleted.

92 changes: 0 additions & 92 deletions libs/index.js

This file was deleted.

Loading

0 comments on commit 597531f

Please sign in to comment.