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

Optimize tutorial #1101

Merged
merged 5 commits into from
Sep 22, 2016
Merged

Optimize tutorial #1101

merged 5 commits into from
Sep 22, 2016

Conversation

chris-rock
Copy link
Contributor

@chris-rock chris-rock commented Sep 19, 2016

This PR is doing some PR improvements:

  • copy&paste of commands
  • simplify xterm angular 2 abstraction
  • move from angular 2 event handling to xterm event handling
  • restructure command.json, includes information about the shell
  • updates html

Still to do:

  • support multiline inspec shell commands
  • filter content for inspec shell commands
  • update generator and prep docker container for commands like inspec shell -c 'sshd_config.Protocol' or inspec exec examples/inheritance
  • improve html handling
  • add all supermarket commands

fixes #1045
fixes #1089
fixes #957
fixes #1086
addresses most issues from #851

screen shot 2016-09-21 at 2 04 10 am

@arlimus
Copy link
Contributor

arlimus commented Sep 21, 2016

huge work, thank you!!

Let's sync on this, it currently fails to build the static site.

"start": "node --max-old-space-size=4096 ./node_modules/webpack-dev-server/bin/webpack-dev-server --config config/webpack.config.js & open http://localhost:8080/",
"dev": "node --max-old-space-size=4096 ./node_modules/webpack-dev-server/bin/webpack-dev-server --config config/webpack.config.js --inline --progress --hot --profile --colors --watch --display-error-details --display-cachedwebpack-dev-server & open http://localhost:8080/"
"start": "open http://localhost:8080/ && node --max-old-space-size=4096 ./node_modules/webpack-dev-server/bin/webpack-dev-server --config config/webpack.config.js",
"dev": "open http://localhost:8080/ && node --max-old-space-size=4096 ./node_modules/webpack-dev-server/bin/webpack-dev-server --config config/webpack.config.js --inline --progress --hot --profile --colors --watch --display-error-details --display-cachedwebpack-dev-server"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The open command doesn't work across systems. This will essentially fail the build to display anything.

@arlimus
Copy link
Contributor

arlimus commented Sep 21, 2016

The default seems a bit tiny, there's also a search-bar on the right hand side (not sure this is new, but meh 😁 )

screenshot from 2016-09-21 19-49-34

@arlimus
Copy link
Contributor

arlimus commented Sep 21, 2016

I really like the small logo, well done!!

@arlimus
Copy link
Contributor

arlimus commented Sep 21, 2016

Also, I'd prefer not to have any plugins as part of the online demo (but let's discuss).
If we keep them, we should keep these much shorter.

@arlimus
Copy link
Contributor

arlimus commented Sep 22, 2016

Thank you for the countless improvements in this one!

@arlimus arlimus merged commit 25424e2 into master Sep 22, 2016
@arlimus arlimus deleted the chris-rock/optimize-tutorial branch September 22, 2016 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants