Giter Club home page Giter Club logo

create-mithril-app's People

Contributors

highmountaintea avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

create-mithril-app's Issues

Feature requests (Rollup)

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.

/usr/bin/env: ‘node\r’: No such file or directory

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.

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.