If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"
npm adduser
#!/usr/bin/env bash | |
# Declare variables of type array to gather information regarding packages | |
name="$1" | |
with_jetstream=false | |
stack='' | |
teams=false | |
with_livewire=false | |
with_inertia=false | |
with_vue=false |
# Map the Header Accept to the webp format | |
map $http_accept $webp_suffix { | |
"~*webp" ".webp"; | |
} | |
# Path to the directory to store the fastcgi cache files | |
fastcgi_cache_path /tmp/cache/example levels=1:2 keys_zone=pmquest:23m max_size=1g inactive=60m; | |
# redirect http to https | |
server { | |
listen 80; |
function omixin(target, ...sources) { | |
//This function works only when the target is an object | |
if(typeof target === 'object') { | |
sources.forEach(source => { | |
//When merging from another object | |
if(typeof source === 'object') { | |
function cmixin(target, ...sources) { | |
if(typeof target === 'function') { | |
sources.forEach(source => { | |
//When composing from an object | |
if(typeof source === 'object') { | |
Object.getOwnPropertyNames(source).forEach(prop => { | |
let descriptor = Object.getOwnPropertyDescriptor(source, prop); | |
Object.defineProperty(target, prop, descriptor); |
function mixin(target, ...sources) { | |
sources.forEach(source => { | |
let descriptors = Object.keys(source).reduce((descriptors, key) => { | |
descriptors[key] = Object.getOwnPropertyDescriptor(source, key); | |
return descriptors; | |
}, {}); | |
Object.getOwnPropertySymbols(source).forEach(sym => { |