希望把下面的原始內容,取出只有在 env('')
裡面的文字,也就是所有用到的環境變數。
grep "env('" config/*s.php
test |
{ | |
"editor.codeActionsOnSave": { | |
"source.fixAll.eslint": true | |
}, | |
"eslint.format.enable": true, | |
"eslint.codeActionsOnSave.mode": "problems", | |
"eslint.validate": ["typescript", "javascript", "javascriptreact", "typescriptreact"], | |
"[javascript]": { | |
"editor.formatOnSave": true, | |
"editor.codeActionsOnSave": { |
# Configuration for Alacritty, the GPU enhanced terminal emulator. | |
# Any items in the `env` entry below will be added as | |
# environment variables. Some entries may override variables | |
# set by alacritty itself. | |
env: | |
# TERM variable | |
# | |
# This value is used to set the `$TERM` environment variable for | |
# each instance of Alacritty. If it is not present, alacritty will |
{ | |
"results": [ | |
{ | |
"_id": "0751e5e663504ca2b82cd297808573b2", | |
"@version": 3, | |
"createdBy": "sRP1UZAg91WThqsNsKNWLtc99Se2", | |
"createdDate": 1626726890173, | |
"data": { | |
"blocks": [ | |
{ |
"postcssSorting.config": { | |
"order": [ | |
"custom-properties", | |
"dollar-variables", | |
{ | |
"type" : "at-rule", | |
"name" : "include", | |
}, | |
{ | |
"type" : "at-rule", |
const _ = require('lodash'); | |
const log = { | |
describe(str) { | |
console.log(`describe: ${str}`); | |
}, | |
it(str) { | |
console.log(`\t it ${str}`); | |
}, |
const _ = require('lodash'); | |
const primary = { colors: ['#123454', '#123223'] }; | |
const info = { colors: ['#EEFF44', '#FF2211'] }; | |
const success = { colors: ['#773388', '#AA3322'] }; | |
const original = [{ primary: primary.colors }, { info: info.colors }, { success: success.colors }]; | |
const expected = { | |
primary: primary.colors, |
const _ = require('lodash'); | |
const log = { | |
describe(str) { | |
console.log(`describe: ${str}`); | |
}, | |
it(str) { | |
console.log(`\t it ${str}`); | |
}, |