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

Circular progress: 4 colour support #299

Open
berenddeboer opened this issue Jul 16, 2020 · 7 comments
Open

Circular progress: 4 colour support #299

berenddeboer opened this issue Jul 16, 2020 · 7 comments

Comments

@berenddeboer
Copy link
Collaborator

berenddeboer commented Jul 16, 2020

The 4 colour version is not implemented.

@umohm1
Copy link

umohm1 commented Nov 16, 2020

Would like to pick this up but I'm having trouble compiling after following along with the ReadMe.

@berenddeboer
Copy link
Collaborator Author

We'll need a bit more! What error messages, what have you tried, what are you even compiling? You probably should be compiling the demo.

@umohm1
Copy link

umohm1 commented Nov 21, 2020

After completing the install under building instructions running make build-demo leaves me w/ the following error.
make: *** No rule to make target 'build-demo'. Stop.

@berenddeboer
Copy link
Collaborator Author

What does simply running make do?

What's your OS/shell?

@berenddeboer
Copy link
Collaborator Author

Are you actually in the created elm-mdc directory? What's the output of ls?

@umohm1
Copy link

umohm1 commented Dec 1, 2020

Running make gives me the same output as make build-demo.

mkdir -p build
rsync -r demo/images build
cp demo/page.html build/index.html
cp material-components-web.css build/
cp demo/styles/main.css build/main.css
cp elm-mdc.js build/
(cd demo; elm make --optimize Demo.elm --output ../build/demo.js)
Success!     

    Demo ───> ../build/demo.js

On macOS and ls output is

CHANGELOG.md                    demo                            package-lock.json
CONTRIBUTING.md                 elm-mdc.js                      package.json
LICENSE.md                      elm.json                        shell.nix
Makefile                        examples                        src
README.md                       img                             webpack.config.js
build                           material-components-web.css
build.cmd                       node_modules

@berenddeboer
Copy link
Collaborator Author

Confused, you wrote the error was:

make build-demo leaves me w/ the following error.
make: *** No rule to make target 'build-demo'. Stop.

but the above example you gave says it compiles fine, and that it was the same as make build-demo, so doesn't that mean everything is working? Once you have the demo, you can access it with the browser. I don't think you can open the file and elm reactor won't work with these kind of programs, so what I usually do is create a new virtual host .conf file (I'm using Apache).

Writing this I agree this is possibly harder than it could be, there should be some kind of nodejs http server which could serve this and make this step a bit easier.

Anyway, if you serve the demo with Apache or nginx you should be able to continue.

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

No branches or pull requests

2 participants