Code Monkey home page Code Monkey logo

Comments (6)

erikvullings avatar erikvullings commented on May 30, 2024 1

@rebootcode it is better to open a new issue, as this is another subject, but anyways, you can always get npm packages directly from unpkg. So in this case, it is:
https://unpkg.com/[email protected]/dist/index.js

from mithril-materialized.

erikvullings avatar erikvullings commented on May 30, 2024

@ericop Thanks for the feedback.

I've just checked the package.json files, and I believe they are correct. parcel and tslib are devDependencies, so they should have been installed. Did you follow the instructions in the README.md?

npm i -g pnpm
pnpm m i
npm start

Should be all that is needed to first install pnpm globally (alternative to npm), run pnpm to install all packages (this is a mono-repo with two packages in the packages folder, the example project and the lib itself), and start it.

If you want a quick start, indeed, mithril does not have a CLI, but if you copy the packages/example folder to a new project folder, and run pnpm i and npm start, it should work. Running it separately, it will install the mithril-materialized lib from npm instead of linking it to packages/lib.

A few pointers: layout.ts contains the nav menu stuff. dashboard-service.ts is used for managing the pages and setting the routes (in app.ts). You should change the app title in index.html, create a new favicon.ico in the assets and root folder, and change the git repo, author name, etc. in package.json. If you run into any issues, let me know, and I'll try to help you.

from mithril-materialized.

ericop avatar ericop commented on May 30, 2024

@erikvullings thanks for the tip. I don't use pnpm so I didn't use that in my trial, but that might have been the missing link. Again it proves so weird that npm and pnpm have different results. I used to get the same thing with angular and other projects.

Thanks for explaining the layout a little bit too.

from mithril-materialized.

ericop avatar ericop commented on May 30, 2024

Today I just learned of npm Inc. and Entropic so I may be jumping ship on traditional npm sooner than later..

from mithril-materialized.

erikvullings avatar erikvullings commented on May 30, 2024

Interesting read, albeit a bit too long. It could use a TLDR section at the start. Another alternative, btw, is github itself, which is doing something similar.

from mithril-materialized.

rebootcode avatar rebootcode commented on May 30, 2024

Is there non-npm version too? like just include "script:src" and done?

from mithril-materialized.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.