Skip to content

Commit

Permalink
Added webpack and es6 support. (#8)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

* 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 <[email protected]>

Co-authored-by: Max Varlamov <[email protected]>
  • Loading branch information
Yatskov and mxsnq authored Feb 27, 2020
1 parent 74ec3f8 commit 9f350cd
Show file tree
Hide file tree
Showing 166 changed files with 25,839 additions and 42,571 deletions.
15 changes: 15 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"plugins": [
"@babel/plugin-proposal-optional-chaining"
],
"presets": [
["@babel/preset-env", {
"useBuiltIns": "usage",
"corejs": 3,
"targets": {
// https://jamie.build/last-2-versions
"browsers": ["> 0.25%", "not ie 11", "not op_mini all"]
}
}]
]
}
45 changes: 45 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint',
},
env: {
browser: true,
webextensions: true,
},
extends: ['airbnb-base', 'plugin:prettier/recommended'],
settings: {
'import/resolver': {
webpack: {
config: './webpack.config.js',
},
},
},
// add your custom rules here
rules: {
// don't require .vue extension when importing
'import/extensions': [
'error',
'always',
{
js: 'never',
},
],
// disallow reassignment of function parameters
// disallow parameter object manipulation except for specific exclusions
'no-param-reassign': [
'error',
{
props: true,
ignorePropertyModificationsFor: [
'acc', // for reduce accumulators
'e', // for e.returnvalue
],
},
],
// disallow default export over named export
'import/prefer-default-export': 'off',
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
},
};
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.idea
projectFilesBackup
extension.zip
dist
node_modules

/.vs/web-scraper-chrome-extension/v15/.suo
/.vs/web-scraper-chrome-extension/v15
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

10 changes: 10 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"arrowParens": "avoid",
"bracketSpacing": true,
"printWidth": 180,
"semi": true,
"singleQuote": true,
"tabWidth": 4,
"trailingComma": "es5",
"useTabs": true
}
Loading

0 comments on commit 9f350cd

Please sign in to comment.