diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-02-22 02:27:19 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-02-22 02:27:19 +0900 |
| commit | 8b341d5fc7f78df3e08a3340ea93c25324dbb552 (patch) | |
| tree | 4f181b878e84f885a885ef38dec833a0d435f878 /gulpfile.ts | |
| parent | Merge pull request #193 from syuilo/no-tag-ls (diff) | |
| download | sharkey-8b341d5fc7f78df3e08a3340ea93c25324dbb552.tar.gz sharkey-8b341d5fc7f78df3e08a3340ea93c25324dbb552.tar.bz2 sharkey-8b341d5fc7f78df3e08a3340ea93c25324dbb552.zip | |
wip
Diffstat (limited to 'gulpfile.ts')
| -rw-r--r-- | gulpfile.ts | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/gulpfile.ts b/gulpfile.ts index 30812bead9..863ca44770 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -33,15 +33,6 @@ if (isDebug) { console.log(chalk.yellow.bold('!!!注意!!! 開発モードが有効です。(成果物の圧縮などはスキップされます)')); } -if (!fs.existsSync('./.config/default.yml')) { - console.log('npm run configを実行して設定ファイルを作成してください'); - process.exit(); -} - -(global as any).MISSKEY_CONFIG_PATH = '.config/default.yml'; -import { Config } from './src/config'; -const config = eval(require('typescript').transpile(require('fs').readFileSync('./src/config.ts').toString()))() as Config; - const tsProject = ts.createProject('tsconfig.json'); gulp.task('build', [ @@ -102,7 +93,9 @@ gulp.task('build:about:docs', () => { path: page, license: licenseHtml, thirdpartyLicenses: thirdpartyLicensesHtml - }, config) + }, { + themeColor: '#f76d6c' + }) })) .pipe(gulp.dest('./built/web/about/pages/' + Path.parse(page).dir)); }); @@ -154,7 +147,7 @@ gulp.task('build:client:scripts', () => new Promise(async (ok) => { // Get commit info const commit = await prominence(git).getLastCommit(); - let stream = webpack(require('./webpack.config.js')(config, commit, env), require('webpack')); + let stream = webpack(require('./webpack.config.js')(commit, env), require('webpack')); // TODO: remove this block if (isProduction) { @@ -220,7 +213,7 @@ gulp.task('build:client:pug', [ gulp.src('./src/web/app/*/view.pug') .pipe(pug({ locals: { - themeColor: config.themeColor + themeColor: '#f76d6c' } })) .pipe(gulp.dest('./built/web/app/')) |