Comments (6)
@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.
@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.
@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.
Today I just learned of npm Inc. and Entropic so I may be jumping ship on traditional npm sooner than later..
from mithril-materialized.
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.
Is there non-npm version too? like just include "script:src" and done?
from mithril-materialized.
Related Issues (9)
- Add autofocus property to TextInputs, NumberInputs, etc.
- Is this library available without npm and typescript? HOT 1
- Error : t is not a function
- Add validation option to TextInputs to set the validate valid/invalid class
- SELECT component - id = 0
- Type 'unknown' does not satisfy the constraint 'Lifecycle<ISelectOptions, unknown>'. HOT 1
- Date picker onchange resets other changes
- NumberInput doesn't support float input HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mithril-materialized.