Skip to content
Snippets Groups Projects
Commit 40484268 authored by syuilo's avatar syuilo
Browse files

✌️

parent 86424be9
No related branches found
No related tags found
No related merge requests found
...@@ -26,11 +26,16 @@ import * as rimraf from 'rimraf'; ...@@ -26,11 +26,16 @@ import * as rimraf from 'rimraf';
import * as escapeHtml from 'escape-html'; import * as escapeHtml from 'escape-html';
import prominence = require('prominence'); import prominence = require('prominence');
import promiseify = require('promiseify'); import promiseify = require('promiseify');
import * as chalk from 'chalk';
const env = process.env.NODE_ENV; const env = process.env.NODE_ENV;
const isProduction = env === 'production'; const isProduction = env === 'production';
const isDebug = !isProduction; const isDebug = !isProduction;
if (isDebug) {
console.log(chalk.yellow.bold('!!!注意!!! 開発モードでのビルドです。(成果物の圧縮などはスキップされます)'));
}
if (!fs.existsSync('./.config/default.yml')) { if (!fs.existsSync('./.config/default.yml')) {
console.log('npm run configを実行して設定ファイルを作成してください'); console.log('npm run configを実行して設定ファイルを作成してください');
process.exit(); process.exit();
...@@ -147,13 +152,7 @@ gulp.task('build:client', [ ...@@ -147,13 +152,7 @@ gulp.task('build:client', [
'build:client:styles', 'build:client:styles',
'build:client:pug', 'build:client:pug',
'copy:client' 'copy:client'
], () => { ]);
gutil.log('ビルドが終了しました。');
if (isDebug) {
gutil.log('!!!注意!!! 開発モードでのビルドです。(成果物の圧縮などはスキップされます)');
}
});
gulp.task('build:client:scripts', () => new Promise(async (ok) => { gulp.task('build:client:scripts', () => new Promise(async (ok) => {
// Get commit info // Get commit info
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment