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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no dev host/port provided #1

Open
thedannywahl opened this issue Feb 22, 2019 · 2 comments
Open

no dev host/port provided #1

thedannywahl opened this issue Feb 22, 2019 · 2 comments

Comments

@thedannywahl
Copy link

It seems like after the migration from webpack-dev-server to grunt webpack in 5585ad8 that there's no dev server option anymore.

Previously npm start or nodemon start would start webpack-dev-server on localhost:8080. Now using npm start gives the following:

npm start -dd
npm info it worked if it ends with ok
npm verb cli [ '/usr/local/Cellar/node/11.10.0/bin/node',
npm verb cli   '/usr/local/bin/npm',
npm verb cli   'start',
npm verb cli   '-dd' ]
npm info using [email protected]
npm info using [email protected]
npm verb run-script [ 'prestart', 'start', 'poststart' ]
npm info lifecycle [email protected]~prestart: [email protected]
npm info lifecycle [email protected]~start: [email protected]

> [email protected] start /Users/dwahl/Scripts/sentimony2/sentimony-2
> grunt -v webpack --verbose

Initializing
Command-line options: --verbose

Reading "Gruntfile.js" Gruntfile...OK

Registering Gruntfile tasks.
Reading package.json...OK
Parsing package.json...OK
Initializing config...OK

Registering "grunt-contrib-clean" local Npm module tasks.
Reading /Users/dwahl/Scripts/sentimony2/sentimony-2/node_modules/grunt-contrib-clean/package.json...OK
Parsing /Users/dwahl/Scripts/sentimony2/sentimony-2/node_modules/grunt-contrib-clean/package.json...OK
Loading "clean.js" tasks...OK
+ clean

Registering "grunt-contrib-concat" local Npm module tasks.
Reading /Users/dwahl/Scripts/sentimony2/sentimony-2/node_modules/grunt-contrib-concat/package.json...OK
Parsing /Users/dwahl/Scripts/sentimony2/sentimony-2/node_modules/grunt-contrib-concat/package.json...OK
Loading "concat.js" tasks...OK
+ concat

Registering "grunt-contrib-copy" local Npm module tasks.
Reading /Users/dwahl/Scripts/sentimony2/sentimony-2/node_modules/grunt-contrib-copy/package.json...OK
Parsing /Users/dwahl/Scripts/sentimony2/sentimony-2/node_modules/grunt-contrib-copy/package.json...OK
Loading "copy.js" tasks...OK
+ copy

Registering "grunt-contrib-uglify" local Npm module tasks.
Reading /Users/dwahl/Scripts/sentimony2/sentimony-2/node_modules/grunt-contrib-uglify/package.json...OK
Parsing /Users/dwahl/Scripts/sentimony2/sentimony-2/node_modules/grunt-contrib-uglify/package.json...OK
Loading "uglify.js" tasks...OK
+ uglify

Registering "grunt-shell" local Npm module tasks.
Reading /Users/dwahl/Scripts/sentimony2/sentimony-2/node_modules/grunt-shell/package.json...OK
Parsing /Users/dwahl/Scripts/sentimony2/sentimony-2/node_modules/grunt-shell/package.json...OK
Loading "shell.js" tasks...OK
+ shell

Registering "grunt-tslint" local Npm module tasks.
Reading /Users/dwahl/Scripts/sentimony2/sentimony-2/node_modules/grunt-tslint/package.json...OK
Parsing /Users/dwahl/Scripts/sentimony2/sentimony-2/node_modules/grunt-tslint/package.json...OK
Loading "tslint.js" tasks...OK
+ tslint

Registering "grunt-webpack" local Npm module tasks.
Reading /Users/dwahl/Scripts/sentimony2/sentimony-2/node_modules/grunt-webpack/package.json...OK
Parsing /Users/dwahl/Scripts/sentimony2/sentimony-2/node_modules/grunt-webpack/package.json...OK
Loading "webpack-dev-server.js" tasks...OK
+ webpack-dev-server
Loading "webpack.js" tasks...OK
+ webpack

Registering "@ephox/swag" local Npm module tasks.
Reading /Users/dwahl/Scripts/sentimony2/sentimony-2/node_modules/@ephox/swag/package.json...OK
Parsing /Users/dwahl/Scripts/sentimony2/sentimony-2/node_modules/@ephox/swag/package.json...OK
Loading "rollup.js" tasks...OK
+ rollup
Loading "Gruntfile.js" tasks...OK
+ default, version

Running tasks: webpack

Running "webpack" task
Live Reload listening on port 35729

Hash: 6abe0dfa33e3ae8153ae                                                    c Version: webpack 4.29.5 / grunt-webpack 3.1.3
Time: 395ms
Built at: 02/22/2019 7:02:38 AM
      Asset      Size  Chunks             Chunk Names
    demo.js  4.96 KiB    main  [emitted]  main
demo.js.map   4.7 KiB    main  [emitted]  main
Entrypoint main = demo.js demo.js.map
[./src/demo/ts/Demo.ts] 166 bytes {main} [built]
[./src/main/ts/Plugin.ts] 427 bytes {main} [built]

(I modified the package.json to enable verbose output)

It's clearly running as modifying any of the plugin files triggers the Live Reload. Should webpack-dev-server be added as a start option in the gruntfile?

fyrkant pushed a commit that referenced this issue Jun 17, 2019
…master

* commit '4c43814576e5dd0eb582c4fca3b09ea7a3085635':
  TINY-3689: Switched to using yarn and fixed tsc compile error
  TINY-3689: Updated the plugin generator to include the new structure so that Plugin doesn't have import side effects
@jdus
Copy link

jdus commented Jul 16, 2019

Just wanted to use yeoman for creating new plugins and ran into the same issue. For new developers it must be confusing, since the website suggests using yeoman.

@mikejw
Copy link

mikejw commented Jan 8, 2022

bump.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants