Skip to content

Commit

Permalink
fix(ui-kit): CSS Export 설정 변경 (#73)
Browse files Browse the repository at this point in the history
* chore(docs): 배포 테스트

* fix(ui-kit): CSS Export 설정 변경
  • Loading branch information
evan-moon authored Apr 11, 2021
1 parent 4fc2860 commit 0d2fce7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
37 changes: 19 additions & 18 deletions lubycon-ui-kit-docs/scripts/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,32 @@ const ghpages = require('gh-pages');
const path = require('path');
const fs = require('fs');

console.log(path.resolve(`./CNAME.alpha`));
const env = process.env.ENV;

const token = process.env.ACCESS_TOKEN;
const deployTarget = env === 'alpha' ? 'ui-kit.alpha.lubycon.io' : 'ui-kit.lubycon.io';

console.log('📦 UI Kit 문서 배포를 준비 중 입니다...');

console.log('🌱 CNAME 만드는 중...');
console.log(path.resolve(`./CNAME.${env}`));
fs.renameSync(path.resolve(`./CNAME.${env}`), path.resolve('./public/CNAME'));
console.log('🌱 CNAME 생성 완료');

// ghpages.publish(
// path.join(__dirname, '../public'),
// {
// branch: 'master',
// remote: 'origin',
// repo: `https://${token}@github.com/Lubycon/${deployTarget}`,
// message: `UI Kit 문서 배포`,
// dotfiles: true,
// },
// (err) => {
// if (err) {
// throw err;
// } else {
// console.log('🚀 UI Kit 문서 배포가 완료되었습니다!');
// }
// }
// );
ghpages.publish(
path.join(__dirname, '../public'),
{
branch: 'master',
remote: 'origin',
repo: `https://${token}@github.com/Lubycon/${deployTarget}`,
message: `UI Kit 문서 배포`,
dotfiles: true,
},
err => {
if (err) {
throw err;
} else {
console.log('🚀 UI Kit 문서 배포가 완료되었습니다!');
}
}
);
1 change: 0 additions & 1 deletion ui-kit/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ function buildCSS(inputFile, outputFile, postCSSOptions = {}) {
plugins: [
postcss({
plugins: [autoprefixer],
sourceMap: true,
extract: true,
extensions: ['.scss', '.css'],
...postCSSOptions,
Expand Down

0 comments on commit 0d2fce7

Please sign in to comment.