This file contains 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
Show hidden characters
{ | |
"presets": [ | |
[ | |
"@babel/preset-env", | |
{ | |
"modules": false, | |
"loose": true | |
} | |
], | |
"@babel/preset-react" |
This file contains 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
/** | |
* @description - development configuration | |
* @author - yang.yuncai <[email protected]> | |
*/ | |
// dependency | |
const presets = require('@coco-platform/webpack-preset'); | |
const convert = require('koa-connect'); | |
const history = require('connect-history-api-fallback'); | |
const proxy = require('http-proxy-middleware'); |
This file contains 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 req = require.context('../src/stories', true, /\.story\.jsx?$/); | |
req.keys().forEach((filename) => req(filename)); |
This file contains 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
# use bootcdn.cn as external resources host | |
library: | |
- name: 'web-animations-js' | |
linkage: 'https://unpkg.com/[email protected]/web-animations.min.js' | |
environment: | |
development: | |
- name: 'babel-polyfill' | |
linkage: 'https://cdn.bootcss.com/babel-polyfill/6.26.0/polyfill.js' | |
- name: 'react' | |
linkage: 'https://cdn.bootcss.com/react/16.3.2/umd/react.development.js' |
This file contains 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
# 获取所有网络 | |
# 替换下列 Ethernet | |
networksetup -listnetworkserviceorder; | |
# Set the SOCKS proxy to local SSH tunnel | |
networksetup -setsocksfirewallproxy "Ethernet" 127.0.0.1 1086 | |
#To clear the domain and port | |
networksetup -setsocksfirewallproxy "Ethernet" 127.0.0.1 1086 |
This file contains 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
gzip on; | |
gzip_min_length 1k; | |
gzip_buffers 4 16k; | |
gzip_http_version 1.1; | |
gzip_comp_level 5; | |
gzip_proxied any; | |
gzip_types text/plain text/css application/javascript application/x-javascript application/xml; | |
gzip_vary on; |
This file contains 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
/** | |
* @description - karma test entry | |
* @author - bornkiller <[email protected]> | |
*/ | |
/* eslint-disable */ | |
'use strict'; | |
// resolve test spec files |