Skip to content

Commit

Permalink
refactor(storefront): STRF-8607 Updated deps on babel, webpack, eslin…
Browse files Browse the repository at this point in the history
…t, replaced karma with jest
  • Loading branch information
jairo-bc committed Sep 1, 2020
1 parent 2db0f9e commit d7623b8
Show file tree
Hide file tree
Showing 45 changed files with 9,175 additions and 11,312 deletions.
9 changes: 6 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@
"no-alert": 0,
"consistent-return": 0,
"max-len": 0,
"prefer-rest-params": 0
"prefer-rest-params": 0,
"class-methods-use-this": 0
},
"env": {
"es6": true,
"browser": true
"browser": true,
"jest": true
},
"extends": "airbnb/base"
"extends": "airbnb-base",
"parser": "babel-eslint"
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea
node_modules/
.DS_Store
.coverage
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ sudo: false
install:
- npm install
script:
- npx grunt eslint
- npx grunt karma
- npm run lint
- npm run test
10 changes: 0 additions & 10 deletions Gruntfile.js

This file was deleted.

12 changes: 12 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
presets: [
[
'@babel/preset-env',
{
targets: {
node: 'current',
},
},
],
],
};
1 change: 0 additions & 1 deletion dist/stencil-utils.min.js

This file was deleted.

44 changes: 0 additions & 44 deletions grunt/build.js

This file was deleted.

6 changes: 0 additions & 6 deletions grunt/eslint.js

This file was deleted.

5 changes: 0 additions & 5 deletions grunt/karma.js

This file was deleted.

12 changes: 12 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
collectCoverage: true,
collectCoverageFrom: [
'src/**',
],
verbose: true,
coverageDirectory: '.coverage',
testMatch: [
'<rootDir>/spec/**',
],
transformIgnorePatterns: ['<rootDir>/node_modules/'],
};
50 changes: 0 additions & 50 deletions karma.conf.js

This file was deleted.

Loading

0 comments on commit d7623b8

Please sign in to comment.