Giter Site home page Giter Site logo

falieson / react-meteor-webpack2 Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 102 KB

A quick & dirty sample project demonstrating use of Webpack2 as the client bundler on a React-Meteor project, using Meteor Client Bundler to bundle Meteor Atmosphere packages for use outside of Meteor Isobuild. For demonstration purposes only.

License: MIT License

HTML 2.64% JavaScript 97.36%

react-meteor-webpack2's Introduction

React-Meteor-Webpack2

This is a fork of Angular-Meteor-Webpack.

FORKED: Angular-Meteor-Webpack

A quick & dirty sample project demonstrating use of Webpack2 as the client bundler on an Angular-Meteor project, specifically the Angular2-Meteor Boilerplate, using Meteor Client Bundler to bundle Meteor Atmosphere packages for use outside of Meteor Isobuild. For demonstration purposes only.

Prerequisities

  • node.js
  • MeteorJS

Usage

After downloading:

npm install

To launch:

npm run start

Open a browser to http://localhost:8080/

NPM Scripts

  • > npm run start - Run the Meteor application, served by webpack-dev-server at http://localhost:8080/.
  • > npm run meteor.reset - Resets Meteor's cache and clears the MongoDB collections.
  • > npm run meteor.run Runs only the Meteor server
  • > npm run webpack.dev Runs only the Angular-Meteor client via webpack-dev-server
  • > npm run meteor.client-bundle Runs meteor-client-bundler, needed when new client Atmosphere packages added`

History

How this project was made:

  • In a privileged command prompt:
git clone https://github.com/bsliran/angular2-meteor-base Angular-Meteor-Webpack
cd Angular-Meteor-Webpack
meteor add mongo
npm install
npm install --global meteor-client-bundler
mkdir meteor
move .meteor meteor\.meteor
move server meteor\server
mklink /d meteor\both both
mklink /d meteor\node_modules node_modules
mklink meteor\typings.d.ts typings.d.ts
mklink meteor\package.json package.json
  • Added meteor-client.config.json:
{
  "import": [
    "meteor-base",
    "mongo",
    "reactive-var",
    "tracker",
    "es5-shim",
    "autopublish",
    "insecure"
  ]
}
  • Bundled Atmosphere packages for loading via Webpack:
meteor-client bundle
  • Modified client\main.ts adding import 'meteor-client'; to add bundled Meteor Atmosphere packages
  • Modified tsconfig.json adding "meteor/**/*" to exclude array
  • Hacked together webpack.config.js based on
  • Modified package.json dependencies & devDependencies via npm install to add Webpack development dependencies used in webpack.config.js
  • Modified package.json scripts to function in new configuration

react-meteor-webpack2's People

Contributors

falieson avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

anymos

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.