highmountaintea / create-mithril-app Goto Github PK
View Code? Open in Web Editor NEWSets up a mithril.js project with webpack
Sets up a mithril.js project with webpack
Really this is not a feature request, is a recommendation (second order) to bear in mind Rollup.
As a beginner this tool (CMA) is appreciated, and learning JS ecosystem is a little confusing, so i try to standing on the shoulders of giants. It is a suggestion based on these 4 interviews by @CarlMungazi, where 3 of them (@barneycarroll @tivac @orbitbot) use rollup, and the other (@porsager) has not delivered an opinion on them.
I also recommend this article, where he argues that rollup is simpler and as powerful as webpack after the last updates (code splitting).
Rollup seems to have Mithril's philosophy, simple and effective.
PD: i did not find a way to contact you.
I am on linux, and i use yarn to install it.
$ yarn global add create-mithril-app
It is installed in:
~/.config/yarn/global/node_modules/create-mithril-app
├── deployapi.js
├── index.js
├── node_modules
├── package.json
├── README.md
├── roadmap.md
├── sampleAPI
│ ├── index.js
│ └── package.json
├── sampleApp
│ ├── client
│ │ ├── index.js
│ │ ├── MainView.js
│ │ └── model.js
│ ├── package.json
│ ├── public
│ │ ├── favicon.ico
│ │ ├── favicon.png
│ │ └── index.html
│ ├── README.md
│ ├── webpack.build.js
│ └── webpack.dev.js
├── server-setup.md
└── test
└── deployapi.js
testing i got
~$ create-mithril-app test1
/usr/bin/env: ‘node\r’: No such file or directory
I fixed index.js following the issue #58 in darkguy2008/parallelshell
then i test again and...
~$ create-mithril-app test1
{ Error: ENOENT: no such file or directory, lstat '~/.config/yarn/global/node_modules/.bin/sampleApp'
errno: -2,
code: 'ENOENT',
syscall: 'lstat',
path: '~/.config/yarn/global/node_modules/.bin/sampleApp' }
Unable to copy sampleApp into newly created directory.
I tried doing a symbolic link but it doesn't work.
~/.config/yarn/global/node_modules/.bin$ ln -s ../create-mithril-app/sampleApp sampleApp
~$ create-mithril-app test1
{ Error: EEXIST: file already exists, symlink '../create-mithril-app/sampleApp' -> '~/test1'
errno: -17,
code: 'EEXIST',
syscall: 'symlink',
path: '../create-mithril-app/sampleApp',
dest: '~/test1' }
Unable to copy sampleApp into newly created directory.
I have replaced absolute path with "~/" to be brief.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.