Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

get rid of webpack-serve馃憢 #53

Merged
merged 3 commits into from Mar 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -112,16 +112,16 @@ This page is the next page of the title.
## Usage

```sh
fusuma 0.5.3 - CLI for easily make slides with markdown
fusuma.js 0.10.2 - CLI for easily make slides with markdown

USAGE

fusuma <command> [options]
fusuma.js <command> [options]

COMMANDS

init Create a configure file
start Start with webpack-serve
start Start with webpack-dev-server
build Build with webpack
deploy Deploy to GitHub pages
pdf Export as PDF
Expand Down
13 changes: 13 additions & 0 deletions __tests__/src/webpack/__snapshots__/webpack.config.js.snap
Expand Up @@ -2,6 +2,13 @@

exports[`webpack.config should return settings when NODE_ENV is development 1`] = `
Object {
"devServer": Object {
"contentBase": ".",
"hot": true,
"inline": true,
"port": 8080,
"quiet": true,
},
"devtool": "inline-cheap-module-source-map",
"entry": Array [
"babel-polyfill",
Expand Down Expand Up @@ -163,6 +170,12 @@ Object {
},
},
},
HotModuleReplacementPlugin {
"fullBuildTimeout": 200,
"multiStep": undefined,
"options": Object {},
"requestTimeout": 10000,
},
],
"resolve": Object {
"modules": Array [
Expand Down
15 changes: 15 additions & 0 deletions __tests__/src/webpack/__snapshots__/webpack.dev.config.js.snap
Expand Up @@ -2,10 +2,25 @@

exports[`webpack.dev should match settings 1`] = `
Object {
"devServer": Object {
"contentBase": ".",
"hot": true,
"inline": true,
"port": 8080,
"quiet": true,
},
"devtool": "inline-cheap-module-source-map",
"mode": "development",
"output": Object {
"filename": "bundle.js",
},
"plugins": Array [
HotModuleReplacementPlugin {
"fullBuildTimeout": 200,
"multiStep": undefined,
"options": Object {},
"requestTimeout": 10000,
},
],
}
`;
2 changes: 1 addition & 1 deletion bin/fusuma.js
Expand Up @@ -13,7 +13,7 @@ prog
await taskProcess('init');
})

.command('start', 'Start with webpack-serve')
.command('start', 'Start with webpack-dev-server')
.option('-d <directory>', 'Directory to load')
.action(async (args, options, logger) => {
await taskProcess('start', { dir: options.d });
Expand Down
2 changes: 1 addition & 1 deletion bin/task-process.js
Expand Up @@ -29,7 +29,7 @@ async function initProcess() {
}

async function startProcess(basePath) {
const spinner = ora('Starting with webpack-serve').start();
const spinner = ora('Starting with webpack-dev-server').start();
const config = await read(basePath);
const remoteOrigin = await getRemoteOriginUrl(basePath);

Expand Down