This repository was archived by the owner on Dec 5, 2024. It is now read-only.
Commit 4d81a42 1 parent 2e17f32 commit 4d81a42 Copy full SHA for 4d81a42
File tree 3 files changed +9
-16
lines changed
3 files changed +9
-16
lines changed Original file line number Diff line number Diff line change @@ -5,26 +5,16 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
5
5
6
6
# [ 2.0.0-alpha.5] ( https://github.com/hiroppy/fusuma/compare/v2.0.0-alpha.4...v2.0.0-alpha.5 ) (2021-01-19)
7
7
8
-
9
8
### Features
10
9
11
- * ** cli:** add basePath option ([ 1bbee94] ( https://github.com/hiroppy/fusuma/commit/1bbee94ab9f014df26cf9f4ae0f7f0130a7a5ce9 ) )
12
-
13
-
14
-
15
-
10
+ - ** cli:** add basePath option ([ 1bbee94] ( https://github.com/hiroppy/fusuma/commit/1bbee94ab9f014df26cf9f4ae0f7f0130a7a5ce9 ) )
16
11
17
12
# [ 2.0.0-alpha.4] ( https://github.com/hiroppy/fusuma/compare/v2.0.0-alpha.3...v2.0.0-alpha.4 ) (2021-01-19)
18
13
19
-
20
14
### Bug Fixes
21
15
22
- * ** build:** modify screenshot logic ([ 735edfb] ( https://github.com/hiroppy/fusuma/commit/735edfb1bbb13bdbbda4ddab6e798fbc2a917663 ) )
23
- * some bugs ([ 3191dcc] ( https://github.com/hiroppy/fusuma/commit/3191dcc2a8e9c8aab360071d0756ce7141163ee4 ) )
24
-
25
-
26
-
27
-
16
+ - ** build:** modify screenshot logic ([ 735edfb] ( https://github.com/hiroppy/fusuma/commit/735edfb1bbb13bdbbda4ddab6e798fbc2a917663 ) )
17
+ - some bugs ([ 3191dcc] ( https://github.com/hiroppy/fusuma/commit/3191dcc2a8e9c8aab360071d0756ce7141163ee4 ) )
28
18
29
19
# [ 1.16.0] ( https://github.com/hiroppy/fusuma/compare/v1.15.2...v1.16.0 ) (2020-02-17)
30
20
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ async function cli() {
62
62
type : 'deploy' ,
63
63
options : {
64
64
basePath : options . b ,
65
- outputDir : options . i
65
+ outputDir : options . i ,
66
66
} ,
67
67
} ) ;
68
68
} )
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- const { join } = require ( 'path' ) ;
3
+ const { join, isAbsolute } = require ( 'path' ) ;
4
4
const fusuma = require ( '../configs/fusumarc' ) ;
5
5
const init = require ( './init' ) ;
6
6
const start = require ( './start' ) ;
@@ -9,7 +9,10 @@ const deploy = require('./deploy');
9
9
const pdf = require ( './pdf' ) ;
10
10
11
11
async function tasks ( { type, options } ) {
12
- const { basePath, inputDir, outputDir } = options ;
12
+ const { inputDir, outputDir } = options ;
13
+ const basePath = isAbsolute ( options . basePath )
14
+ ? options . basePath
15
+ : join ( process . cwd ( ) , options . basePath ) ;
13
16
const inputDirPath = join ( basePath , inputDir || 'slides' ) ;
14
17
const outputDirPath = join ( basePath , outputDir || 'dist' ) ;
15
18
let config = { } ;
You can’t perform that action at this time.
0 commit comments