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

Using facebookincubator/create-react-app instead of boilerplate #188

Closed
lopezjurip opened this issue Jul 26, 2016 · 4 comments
Closed

Using facebookincubator/create-react-app instead of boilerplate #188

lopezjurip opened this issue Jul 26, 2016 · 4 comments
Labels
Feature Request Request for or introduction of new functionality

Comments

@lopezjurip
Copy link

Even when https://github.com/FormidableLabs/spectacle-boilerplate seems to be a good starting point, it has a lot of code for a simple presentation.

I was able to make presentation/index.js from spectacle-boilerplate work with https://github.com/facebookincubator/create-react-app and now the presentation source code is much more compact and easy to follow.

Currently there is problem when loading external css code, but it has been patched and maybe it will come with the next release.

Steps (when create-react-app gets updated):

npm install -g create-react-app

create-react-app my-app
cd my-app

npm install --save normalize.css spectacle
  • Copy spectacle-boilerplate/presentation/index.js to my-app/src/App.js
  • Copy spectacle-boilerplate/assets/interactive.js to my-app/src/interactive.js
    • Change import Interactive from "../assets/interactive"; to import Interactive from "./interactive"; in my-app/src/App.js.
  • Copy the rest of spectacle-boilerplate/assets to my-app/assets.

I had to remove raw-loader because it's not bundled by default

{/*
          <CodePane
              lang="jsx"
              source={require("raw!../assets/deck.example")} // :(
              margin="20px auto"
            />
*/}

Run my-app with npm start.

image

@kenwheeler
Copy link
Contributor

We are working on a CLI tool much like CRA, but that also includes presentation specific features like remote sync.

@jonasws
Copy link
Contributor

jonasws commented Oct 2, 2016

Any update on the progress of said CLI tool, @kenwheeler?

@kenwheeler
Copy link
Contributor

@jonasws expect it pretty soon. It will likely be based off of https://github.com/FormidableLabs/builder-init/

@kenwheeler kenwheeler added the Feature Request Request for or introduction of new functionality label Oct 11, 2016
@karlhorky
Copy link
Contributor

Now that create-react-app is going away (it's turning into a launcher), I opened an issue to remove the create-react-app option from the tutorial in the docs and consider moving to Next.js:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Request for or introduction of new functionality
Projects
None yet
Development

No branches or pull requests

4 participants