Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
31ed2b8
config: babel env support for commonjs and es
tim-lai Aug 4, 2020
a410581
config(build): define es entry and output path
tim-lai Aug 5, 2020
ae95a90
refactor(es): replace module.exports with export
tim-lai Aug 5, 2020
9d51ad1
feat: index export for es module
tim-lai Aug 6, 2020
2406945
config(webpack): update entry path and remove polyfill
tim-lai Aug 6, 2020
20b6228
config(build): commonjs with entry point update
tim-lai Aug 7, 2020
58260aa
test: webpack browser umd build
tim-lai Aug 7, 2020
9fa235e
config: commonjs entry file
tim-lai Aug 8, 2020
5449900
wip: test for build artifacts
tim-lai Aug 8, 2020
6a497eb
fix(mocha): remove import filename extension
tim-lai Aug 11, 2020
a2555a9
deps(mocha): require mocha-yaml-loader
tim-lai Aug 12, 2020
03cfc4f
feat(build): webpack dist es-bundle, es-bundle-core
tim-lai Aug 12, 2020
3c0ce47
config: package entry point for es module
tim-lai Aug 12, 2020
818c551
fix(mocha): exclude build-artifacts tests
tim-lai Aug 12, 2020
5ad7128
fix(mocha): yaml proper dir exclusion
tim-lai Aug 12, 2020
1293094
fix(mocha): update package script
tim-lai Aug 12, 2020
212875f
build(webpack): disable StatsWriterPlugin
tim-lai Aug 12, 2020
475ddc6
feat(jest): install jest with new build-artifact tests
tim-lai Aug 12, 2020
ab100d3
fix(config): test:artifact scripts
tim-lai Aug 13, 2020
febfe39
docs(webpack): add comments for StatsWriterPlugin
tim-lai Aug 13, 2020
f7a2844
refactor(test): change path of test:artifact away from mocha
tim-lai Aug 13, 2020
4866bfa
config: add test:artifact to test script
tim-lai Aug 13, 2020
c4345e5
refactor(config): remove unused build scripts
tim-lai Aug 13, 2020
faefa67
refactor(deps): remove unneeded mocha deps
tim-lai Aug 13, 2020
18dab4a
eslint: add updated eslint rules to test/build-artifacts
tim-lai Aug 13, 2020
7c2c522
fix(config): update package-lock
tim-lai Aug 13, 2020
7fb79f6
refactor(mocha): remove unneeded config settings
tim-lai Aug 13, 2020
052beb6
refactor(build): remove unneeded commonjs and index files
tim-lai Aug 13, 2020
0facd67
Revert "refactor(build): remove unneeded commonjs and index files"
tim-lai Aug 13, 2020
b7e8b95
refactor: remove unneeded commonjs entry file
tim-lai Aug 13, 2020
5b7ee8c
fix(jest): use jest.expect method for test:artifact
tim-lai Aug 13, 2020
6102e27
fix(lint): add jest env to eslintrc
tim-lai Aug 13, 2020
54360b5
wip: skip test:artifact:umd:bundle
tim-lai Aug 13, 2020
4bcc93c
fix(jest): use @jest/globals for test:artifact
tim-lai Aug 13, 2020
1b18b90
wip: remove umd:bundle from test:artifact script
tim-lai Aug 13, 2020
b06407a
config: remove test:artifact from test script
tim-lai Aug 13, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ env:
browser: true
node: true
es6: true
jest: true
parserOptions:
ecmaFeatures:
jsx: true
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ selenium-debug.log
chromedriver.log
test/e2e/db.json
docs/_book
dist/log*

# dist
flavors/**/dist/*
/lib
/es
dist/log*

# Cypress
test/e2e-cypress/screenshots
Expand Down
1 change: 0 additions & 1 deletion .mocharc.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
recursive: true
require: ['esm','@babel/register','source-map-support', 'test/mocha/setup.js']
# spec: 'test/mocha/**/*.{js,jsx}'
55 changes: 54 additions & 1 deletion babel.config.json → babel.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,58 @@
{
module.exports = {
"env": {
"commonjs": {
"presets": [
[
"@babel/preset-env",
{
"debug": false,
"modules": "commonjs",
"targets": {
"node": "8"
},
"forceAllTransforms": false,
"ignoreBrowserslistConfig": true
}
],
"@babel/preset-react",
],
"plugins": [
[
"@babel/plugin-transform-modules-commonjs",
{
"loose": true
}
],
"@babel/proposal-class-properties",
"@babel/proposal-object-rest-spread",
"@babel/plugin-proposal-optional-chaining",
]
},
"es": {
"presets": [
[
"@babel/preset-env",
{
"debug": false,
"modules": false
}
],
"@babel/preset-react",
],
"plugins": [
[
"@babel/plugin-transform-runtime",
{
"absoluteRuntime": false,
"corejs": 2,
"version": "^7.10.4"
}
],
"@babel/proposal-class-properties",
"@babel/proposal-object-rest-spread",
"@babel/plugin-proposal-optional-chaining",
]
},
"development": {
"presets": [
[
Expand Down
8 changes: 8 additions & 0 deletions config/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"rules": {
"import/no-unresolved": 0,
"import/extensions": 0,
"quotes": ["error", "single"],
"semi": ["error", "always"]
}
}
7 changes: 7 additions & 0 deletions config/jest/jest.artifact-es-bundle-core.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const path = require('path');

module.exports = {
rootDir: path.join(__dirname, '..', '..'),
testEnvironment: 'jsdom',
testMatch: ['**/test/build-artifacts/es-bundle-core.js'],
};
7 changes: 7 additions & 0 deletions config/jest/jest.artifact-es-bundle.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const path = require('path');

module.exports = {
rootDir: path.join(__dirname, '..', '..'),
testEnvironment: 'jsdom',
testMatch: ['**/test/build-artifacts/es-bundle.js'],
};
7 changes: 7 additions & 0 deletions config/jest/jest.artifact-umd-bundle.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const path = require('path');

module.exports = {
rootDir: path.join(__dirname, '..', '..'),
testEnvironment: 'jsdom',
testMatch: ['**/test/build-artifacts/umd.js'],
};
Loading