@madgex/design-system
Advanced tools
Comparing version 1.6.0 to 1.7.0
@@ -5,3 +5,6 @@ module.exports = { | ||
'import/no-extraneous-dependencies': ['error', { devDependencies: ['*.js', 'tasks/*.js'] }] | ||
}, | ||
env: { | ||
browser: true | ||
} | ||
}; |
@@ -8,2 +8,3 @@ module.exports = { | ||
node: 'current', | ||
ie: '11', | ||
}, | ||
@@ -10,0 +11,0 @@ }, |
/** | ||
* Do not edit directly | ||
* Generated on Wed, 19 Jun 2019 11:37:04 GMT | ||
* Generated on Mon, 24 Jun 2019 15:26:32 GMT | ||
*/ | ||
@@ -5,0 +5,0 @@ |
@@ -7,3 +7,3 @@ const gulp = require('gulp'); | ||
return gulp | ||
.src('src/js/common.js') | ||
.src('src/js/index.js') | ||
.pipe( | ||
@@ -13,3 +13,3 @@ gulpWebpack( | ||
output: { | ||
filename: 'common.js', | ||
filename: 'index.js', | ||
}, | ||
@@ -16,0 +16,0 @@ // watch: true, |
@@ -20,3 +20,3 @@ const gulp = require('gulp'); | ||
gulp.watch('src/icons/**/*.svg', gulp.series(svgsprite, fractalBuild)); | ||
// gulp.watch('./assets/js/**/*', gulp.series(scriptsLint, scripts)); | ||
gulp.watch('./assets/js/**/*', gulp.series(jsbundle)); | ||
} | ||
@@ -23,0 +23,0 @@ |
{ | ||
"name": "@madgex/design-system", | ||
"version": "1.6.0", | ||
"version": "1.7.0", | ||
"scripts": { | ||
@@ -22,3 +22,5 @@ "clean": "rimraf dist public tokens/build", | ||
}, | ||
"dependencies": {}, | ||
"dependencies": { | ||
"@babel/polyfill": "^7.4.4" | ||
}, | ||
"devDependencies": { | ||
@@ -25,0 +27,0 @@ "@babel/core": "^7.4.5", |
@@ -1,11 +0,16 @@ | ||
// This file is the webpack entry point | ||
document.addEventListener('DOMContentLoaded', () => { | ||
document.body.classList.add('js'); | ||
}); | ||
// Here you can import your components, icons, etc. | ||
// For example: | ||
// | ||
// import modal from 'components/Modal'; | ||
// import 'icons/home.svg'; | ||
// | ||
// Webpack will automatically look for files relative to `assets/scripts/` and `assets/`. | ||
window.addEventListener( | ||
'hashchange', | ||
() => { | ||
const anchor = window.location.hash.trim(); | ||
const links = Array.from(document.querySelectorAll(`a[href='${anchor}']`)); | ||
console.log('MDS bundle loaded.'); | ||
links.forEach((element) => { | ||
element.click(); | ||
}); | ||
}, | ||
false | ||
); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
193746
93
1870
1
+ Added@babel/polyfill@^7.4.4
+ Added@babel/polyfill@7.12.1(transitive)
+ Addedcore-js@2.6.12(transitive)
+ Addedregenerator-runtime@0.13.11(transitive)