Skip to content

Commit f333ac6

Browse files
committed
chore: upgrading project to latest ARC standards
1 parent 3a1c1fe commit f333ac6

14 files changed

+5383
-1206
lines changed

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
coverage/
2+
_site/
3+
dist/

.eslintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: ['@advanced-rest-client/eslint-config', 'eslint-config-prettier'].map(require.resolve)
3+
};

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,4 @@ $RECYCLE.BIN/
5555
.nfs*
5656

5757
node_modules
58-
build
59-
dist
6058
coverage

.npmignore

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
coverage/
22
test/
3+
demo/
34
gen-tsd.json
4-
wct.conf.json
55
CONTRIBUTING.md
6-
analysis.json
7-
demo/
8-
bower.json
96
.travis.yml
107
index.html
118
polymer.json
9+
karma.*
10+
husky.*
11+
commitlint.*
12+
.*
13+
*.config.*
14+
prettier.config.js

commitlint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: ['@commitlint/config-conventional']
3+
};

gen-tsd.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
{
22
"excludeFiles": [
3-
"tasks/*",
43
"demo/*",
54
"test/*",
6-
"index.html",
7-
"karma.*"
5+
"coverage/*",
6+
"karma.*",
7+
"prettier.config.js",
8+
"husky.config.js",
9+
"commitlint.config.js",
10+
"prettier.config.js",
11+
".*"
812
]
913
}

husky.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
hooks: {
3+
'pre-commit': 'lint-staged',
4+
'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS'
5+
}
6+
};

index.html

Lines changed: 0 additions & 9 deletions
This file was deleted.

karma.conf.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable import/no-extraneous-dependencies */
2-
const createDefaultConfig = require('@open-wc/testing-karma/default-config');
3-
const merge = require('webpack-merge');
2+
const { createDefaultConfig } = require('@open-wc/testing-karma');
3+
const merge = require('deepmerge');
44

55
module.exports = (config) => {
66
config.set(
@@ -17,6 +17,12 @@ module.exports = (config) => {
1717
}
1818
],
1919

20+
// see the karma-esm docs for all options
21+
esm: {
22+
// if you are using 'bare module imports' you will need this option
23+
nodeResolve: true
24+
},
25+
2026
coverageIstanbulReporter: {
2127
thresholds: {
2228
global: {
@@ -27,12 +33,6 @@ module.exports = (config) => {
2733
}
2834
}
2935
},
30-
31-
coverageReporter: {
32-
exclude: [
33-
'test/**/*.test.js'
34-
]
35-
}
3636
})
3737
);
3838
return config;

karma.sl.config.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,17 @@ const slSettings = require('@advanced-rest-client/testing-karma-sl/sl-settings.j
44
const createBaseConfig = require('./karma.conf.js');
55

66
module.exports = (config) => {
7-
const cnf = slSettings(config);
7+
const cnf = slSettings();
88
cnf.sauceLabs.testName = 'api-resource-example-document';
99
cnf.browsers = [
1010
'SL_Chrome',
1111
'SL_Chrome-1',
1212
'SL_Firefox',
1313
'SL_Firefox-1',
1414
'SL_Safari',
15-
'SL_Safari-1',
15+
// 'SL_Safari-1',
1616
'SL_EDGE'
1717
];
18-
19-
cnf.captureTimeout = 0;
20-
cnf.sauceLabs.commandTimeout = 600;
2118
if (process.env.TRAVIS) {
2219
const buildLabel = 'TRAVIS #' + process.env.TRAVIS_BUILD_NUMBER + ' (' + process.env.TRAVIS_BUILD_ID + ')';
2320

@@ -30,9 +27,7 @@ module.exports = (config) => {
3027
cnf.sauceLabs.tunnelIdentifier = process.env.TRAVIS_JOB_NUMBER;
3128
}
3229

33-
config.set(
34-
merge(createBaseConfig(config), cnf)
35-
);
30+
config.set(merge(createBaseConfig(config), cnf));
3631

3732
return config;
3833
};

0 commit comments

Comments
 (0)