Remeber to use git config core.ignorecase false while you are on case insensitive partition
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fs = require('fs-extra') | |
| const path = require('path') | |
| const glob = require('glob') | |
| const prettier = require('prettier') | |
| const components = glob | |
| .sync('src/*/*/*.js', { ignore: '**/*.{stories,stories_,spec}.js' }) | |
| .map(file => ({ | |
| src: file, | |
| name: path.basename(file) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| // Enable js minification with Uglify. Uncomment this out during development tomake builds faster | |
| optimize: 'none', | |
| inlineText: true, | |
| baseUrl: '/Users/igloczek/Sites/magento2-bundling/pub/static/frontend/Magento/luma/source', | |
| dir: '/Users/igloczek/Sites/magento2-bundling/pub/static/frontend/Magento/luma/en_US', | |
| // Shim configuration for non-AMD modules. Copied from requirejs-config | |
| shim: { | |
| 'jquery/jquery-migrate': ['jquery'], | |
| 'jquery/jquery.hashchange': ['jquery', 'jquery/jquery-migrate'], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const glob = require('glob') | |
| const fs = require('fs') | |
| glob('core/components/**/*.js', (temp, files) => { | |
| files.forEach(path => { | |
| // const file = require('./' + path) | |
| console.log(path) | |
| let file = fs.readFileSync('./' + path, 'utf8') | |
| file = file.replace(/import Vue from 'vue'\n/gm, '') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window.domReady = function(callback) { | |
| var ready = false; | |
| var detach = function() { | |
| if(document.addEventListener) { | |
| document.removeEventListener("DOMContentLoaded", completed); | |
| window.removeEventListener("load", completed); | |
| } | |
| else { | |
| document.detachEvent("onreadystatechange", completed); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const css = require('css'), | |
| fs = require('fs'), | |
| specificity = require('specificity'); | |
| function getSelectorsWithHighSpecificity(cssFilePath, maxSpecificity) { | |
| const cssFile = fs.readFileSync(cssFilePath, 'utf8'), | |
| output = []; | |
| css.parse(cssFile).stylesheet.rules.forEach(rule => { | |
| if (rule.type === 'rule') { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <form class="form"> | |
| <h2 class="form__header"></h2> | |
| <p class="form__description"></p> | |
| <div class="form__field field"> | |
| <label class="field__label"></label> | |
| <input class="field__input"> | |
| </div> | |
| <div class="form__field field"> | |
| <label class="field__label"></label> | |
| <input class="field__input"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = function() { | |
| // global vars | |
| var gulp = this.gulp, | |
| plugins = this.opts.plugins, | |
| config = this.opts.configs; | |
| // local plugins | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const mkdirp = require('mkdirp'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window.addEventListener("beforeunload", function () { | |
| document.body.classList.add("animate-out"); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| env: | |
| node: true | |
| browser: true | |
| amd: true | |
| es6: true | |
| jquery: true | |
| prototypejs: true | |
| rules: | |
| indent: 0 | |
| brace-style: [2, "1tbs"] |