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 opentype = require('opentype.js') | |
const getUnicodeRanges = function (fontSource) { | |
// 유니코드 포맷으로 변환 | |
const formatUnicode = (unicode) => { | |
unicode = unicode.toString(16) | |
if (unicode.length > 4) { | |
return ('000000' + unicode.toUpperCase()).substr(-6) | |
} else { | |
return ('0000' + unicode.toUpperCase()).substr(-4) |
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
import typescript from '@rollup/plugin-typescript' | |
import vue from 'rollup-plugin-vue' | |
import resolve from '@rollup/plugin-node-resolve' | |
import commonjs from '@rollup/plugin-commonjs' | |
import babel from 'rollup-plugin-babel' | |
import autoprefixer from 'autoprefixer' | |
import url from 'postcss-url' | |
import renameExtensions from '@betit/rollup-plugin-rename-extensions' | |
// 플러그인의 실행 순서에 따라 다른 결과가 발생할 수 있으므로 주의 |
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
module.exports = api => { | |
const isTest = api.env('test') | |
return { | |
sourceType: 'unambiguous', // import/ export문이 있으면 파일을 모듈로 간주하도록 설정 | |
presets: [ | |
'@babel/preset-typescript', | |
[ | |
'@babel/preset-env', | |
{ |
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
{ | |
"main": "dist/index.js", // umd | |
"module": "dist/esm/src/index.js", // esm : import 호출 시 main 보다 우선시 된다. | |
"sideEffects": [ | |
// 기본적으로 트리쉐이킹 지원 모듈은 sideEffects: false 를 사용해야 하지만, | |
// vue-cli의 개발 환경에서는 이를 사용하면 안되기 때문에 개발 환경인 src 폴더만 sideEffects 를 허용한다. | |
// https://cli.vuejs.org/guide/build-targets.html#library | |
"src/**/*.*" | |
] | |
} |
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
#!/bin/bash | |
set -e | |
mongo <<EOF | |
use $MONGO_INITDB_DATABASE | |
db.createUser({ | |
user: '$MONGO_INITDB_ROOT_USERNAME', | |
pwd: '$MONGO_INITDB_ROOT_PASSWORD', | |
roles: [{ | |
role: 'readWrite', |
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
version: "3" | |
services: | |
mongo: | |
container_name: mongo | |
image: mongo | |
restart: always | |
environment: | |
MONGO_INITDB_ROOT_USERNAME: "${MONGODB_USER}" | |
MONGO_INITDB_ROOT_PASSWORD: "${MONGODB_PASS}" |