Skip to content

Instantly share code, notes, and snippets.

View ncoden's full-sized avatar

Nicolas Cn ncoden

  • France
View GitHub Profile
---
0 debug pnpm:package-json:
initial:
name: "foundation-sites"
version: "6.4.3"
main: "dist/js/foundation.js"
module: "js/foundation.js"
jsnext:main: "js/foundation.js"
typings: "dist/js/foundation.d.ts"
sideEffects: false
@media screen and (max-width: 39.99875em) {
.button.small-only-expanded {
display: block;
width: 100%;
margin-right: 0;
margin-left: 0; } }
@media screen and (min-width: 40em) and (max-width: 63.99875em) {
.button.medium-only-expanded {
display: block;
width: 100%;
/Library/Ruby/Gems/2.3.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require': Could not load the 'listen' gem. Add `gem 'listen'` to the development group of your Gemfile (LoadError)
from /Library/Ruby/Gems/2.3.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `block in require'
from /Library/Ruby/Gems/2.3.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:249:in `load_dependency'
from /Library/Ruby/Gems/2.3.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `require'
from /Library/Ruby/Gems/2.3.0/gems/activesupport-5.2.0/lib/active_support/evented_file_update_checker.rb:61:in `block in initialize'
from /Library/Ruby/Gems/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/kernel/reporting.rb:15:in `block in silence_warnings'
from /Library/Ruby/Gems/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/kernel/reporting.rb:28:in `with_warnings'
from /Library/Ruby/Gems/2.3.0/gems/activesupport-5.2.0/lib/ac
/Users/ncoden/Documents/Documents/Projects/Programmation/Web/2016/Foundation/foundation-rails/spec/dummy/config/boot.rb:4:in `require': cannot load such file -- bootsnap/setup (LoadError)
from /Users/ncoden/Documents/Documents/Projects/Programmation/Web/2016/Foundation/foundation-rails/spec/dummy/config/boot.rb:4:in `<top (required)>'
from bin/rails:3:in `require_relative'
from bin/rails:3:in `<main>'
➜ foundation-sites git:(develop) ✗ npm -v
5.2.0
➜ foundation-sites git:(develop) ✗ npm i
> husky@0.14.3 install /Users/ncoden/Documents/Documents/Projects/Programmation/Web/2016/Foundation/foundation-sites/node_modules/husky
> node ./bin/install.js
husky
setting up Git hooks
done
➜ foundation-sites git:(develop) ✗ npm i
> fsevents@1.1.3 install /Users/ncoden/Documents/Documents/Projects/Programmation/Web/2016/Foundation/foundation-sites/node_modules/fsevents
> node install
[fsevents] Success: "/Users/ncoden/Documents/Documents/Projects/Programmation/Web/2016/Foundation/foundation-sites/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
> uws@9.14.0 install /Users/ncoden/Documents/Documents/Projects/Programmation/Web/2016/Foundation/foundation-sites/node_modules/uws
> node-gyp rebuild > build_log.txt 2>&1 || exit 0
➜ foundation-sites git:(colin-marshall/chore/update-eslint-to-v4) ✗ npx gulp lint:javascript
[22:48:32] Using gulpfile ~/Documents/Documents/Projects/Programmation/Web/2016/Foundation/foundation-sites/gulpfile.js
[22:48:32] Starting 'lint:javascript'...
[22:48:34]
/Users/ncoden/Documents/Documents/Projects/Programmation/Web/2016/Foundation/foundation-sites/js/foundation.core.js
1:1 warning 'use strict' is unnecessary inside of modules strict
31:21 warning Gratuitous parentheses around expression no-extra-parens
50:19 error A function with a name starting with an uppercase letter should only be used as a constructor new-cap
82:5 error The body of a for-in should be wrapped in an if statement to filter unwanted properties from the prototype guard-for-in
116:19 error ["object"] is better written in dot notation
➜ foundation-sites git:(develop) ✗ npx gulp lint:javascript
[22:40:26] Using gulpfile ~/Documents/Documents/Projects/Programmation/Web/2016/Foundation/foundation-sites/gulpfile.js
[22:40:26] Starting 'lint:javascript'...
[22:40:30]
/Users/ncoden/Documents/Documents/Projects/Programmation/Web/2016/Foundation/foundation-sites/js/foundation.core.js
1:1 warning 'use strict' is unnecessary inside of modules strict
31:21 warning Gratuitous parentheses around expression no-extra-parens
50:19 error A function with a name starting with an uppercase letter should only be used as a constructor new-cap
82:5 error The body of a for-in should be wrapped in an if statement to filter unwanted properties from the prototype guard-for-in
116:19 error ["object"] is better written in dot notation
module.exports = {
entry: {
'exampleCore': './src/example-core',
'examplePlugin': './src/example-plugin',
},
externals: {
'./example-core': {
amd: 'exampleCore',
commonjs: 'exampleCore',
commonjs2: 'exampleCore',
// Filter an object by its keys
exports.objectFilter = function(obj, keys) {
var newObj = {};
var newKeys = Object.keys(obj).filter( (key) => { console.log(keys.indexOf(key)); return keys.indexOf(key) !== -1; });
newKeys.forEach((key) => { newObj[key] = obj[key] });
return newObj;
}