Skip to content

Commit 9f350cd

Browse files
Yatskovmxsnq
andauthored
Added webpack and es6 support. (#8)
* First commit for webpack build. * More edits for webpack commit. * Updated SelectorTable after it merge to webpack. And removed old files. * Fixed options. * Browser polyfill now es6 imports. * Added support for Id hints. (#11) * Id hints moved to webpack. * Made hints work. * Current Selector id fix. * Quick fix for empty model. * Fixed some bugs connected with sitemap model validation and existing selector change in sitemap when changed type. * fixed bug with sitemap id updates * moved model_example to templates * fixed selectors and graph being not available after scrape Co-authored-by: Max Varlamov <47754003+mxsnq@users.noreply.github.com> * Quick fix for charsets. * fix to validate URLs with date/numeric ranges (#12) * fix to validate URLs with date/numeric ranges * rewritten using URL module * Import validation (#14) * Fixed validation for import sitemap. * Version ++ and merge urls into branch. * start urls must not be empty Co-authored-by: Max Varlamov <47754003+mxsnq@users.noreply.github.com> Co-authored-by: Max Varlamov <47754003+mxsnq@users.noreply.github.com>
1 parent 74ec3f8 commit 9f350cd

File tree

166 files changed

+25839
-42571
lines changed

Some content is hidden

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

166 files changed

+25839
-42571
lines changed

.babelrc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"plugins": [
3+
"@babel/plugin-proposal-optional-chaining"
4+
],
5+
"presets": [
6+
["@babel/preset-env", {
7+
"useBuiltIns": "usage",
8+
"corejs": 3,
9+
"targets": {
10+
// https://jamie.build/last-2-versions
11+
"browsers": ["> 0.25%", "not ie 11", "not op_mini all"]
12+
}
13+
}]
14+
]
15+
}

.eslintrc.js

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
module.exports = {
2+
root: true,
3+
parserOptions: {
4+
parser: 'babel-eslint',
5+
},
6+
env: {
7+
browser: true,
8+
webextensions: true,
9+
},
10+
extends: ['airbnb-base', 'plugin:prettier/recommended'],
11+
settings: {
12+
'import/resolver': {
13+
webpack: {
14+
config: './webpack.config.js',
15+
},
16+
},
17+
},
18+
// add your custom rules here
19+
rules: {
20+
// don't require .vue extension when importing
21+
'import/extensions': [
22+
'error',
23+
'always',
24+
{
25+
js: 'never',
26+
},
27+
],
28+
// disallow reassignment of function parameters
29+
// disallow parameter object manipulation except for specific exclusions
30+
'no-param-reassign': [
31+
'error',
32+
{
33+
props: true,
34+
ignorePropertyModificationsFor: [
35+
'acc', // for reduce accumulators
36+
'e', // for e.returnvalue
37+
],
38+
},
39+
],
40+
// disallow default export over named export
41+
'import/prefer-default-export': 'off',
42+
// allow debugger during development
43+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
44+
},
45+
};

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
.idea
22
projectFilesBackup
33
extension.zip
4+
dist
5+
node_modules
46

57
/.vs/web-scraper-chrome-extension/v15/.suo
68
/.vs/web-scraper-chrome-extension/v15

.gitmodules

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

.prettierrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"arrowParens": "avoid",
3+
"bracketSpacing": true,
4+
"printWidth": 180,
5+
"semi": true,
6+
"singleQuote": true,
7+
"tabWidth": 4,
8+
"trailingComma": "es5",
9+
"useTabs": true
10+
}

0 commit comments

Comments
 (0)