GithubHelp home page GithubHelp logo

generated example about neutrino HOT 4 CLOSED

eliperelman avatar eliperelman commented on August 16, 2024
generated example

from neutrino.

Comments (4)

eliperelman avatar eliperelman commented on August 16, 2024

From @gasolin on December 22, 2016 6:25

Here is the minimum required skeleton that would run with npm start

package.json

{
  "name": "projectname",
  "version": "1.0.0",
  "description": "doh",
  "main": "index.js",
  "scripts": {
    "start": "PORT=4000 neutrino start",
    "build": "neutrino build",
    "test": "neutrino test"
  },
  "author": "",
  "license": "ISC",
  "config": {
    "preset": "neutrino-preset-react"
  },
  "devDependencies": {
    "neutrino": "^3.0.3",
    "neutrino-preset-react": "^2.1.0"
  },
  "dependencies": {
    "react": "^15.4.1",
    "react-dom": "^15.4.1"
  }
}

src/index.js

import React from 'react';
import ReactDOM from 'react-dom';

function Main() {
  return (
    <div>Hello World</div>
  );
}

const hook = document.getElementById('root');
ReactDOM.render(<Main/>, hook);

from neutrino.

eliperelman avatar eliperelman commented on August 16, 2024

From @gasolin on December 24, 2016 8:36

created a minimum workable generator for react project https://github.com/gasolin/generator-neutrino-react

@eliperelman if you provide the project permission I can transfer this project to mozilla-neutrino org

from neutrino.

eliperelman avatar eliperelman commented on August 16, 2024

I'm going to create an examples repo showing how each of the presets could work with an initialization step, like what you have with the generator. I like the generator idea, and we can talk about moving that over soon. Good idea!

from neutrino.

eliperelman avatar eliperelman commented on August 16, 2024

We have a few starter repos listed at https://neutrino.js.org/learning-resources.html#starter-repositories

from neutrino.

Related Issues (20)

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.