Git Product home page Git Product logo

marionette-integrations's Introduction

Build Status

Example marionette apps using multiple dependency tools.

Currently Implemented

MarionetteJS with test frameworks

Bonus

Want to try examples fast (not released yet)?

  • npm install -g yo
  • npm install -g generator-marionette-integrations

Commands

  • yo marionette-integrations:app --vanilla
  • yo marionette-integrations:app --browserify
  • yo marionette-integrations:app --browserify-gulp
  • yo marionette-integrations:app --browserify-grunt
  • yo marionette-integrations:app --brunch
  • yo marionette-integrations:app --casperjs
  • yo marionette-integrations:app --cypress
  • yo marionette-integrations:app --jasmine
  • yo marionette-integrations:app --mocha

Each command will generate for you related application example.

marionette-integrations's People

Contributors

denar90 avatar jdaudier avatar jeffreycahyono avatar jefo avatar lexeek avatar lvv83 avatar nicknaso avatar ozio avatar paulfalgout avatar royling avatar samccone avatar scott-w avatar sopo-to-iki avatar stephanebachelier avatar wbinnssmith 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

marionette-integrations's Issues

Add marionettejs + sw-precache

I think we need to add simple progressive web app example with marionette.
How to run sw-precache in simple marionette app.

Config travis for running builds

I think we need travis here to run build all example which we have here. It will be easy to check if new changes don't break anything.
We already have travis.yaml but need to add

env:
  - secure:

to run travis-runner.sh

@samccone can you take care of this?

webpack2 module fails lint checks

When running npm run build in the webpack2 module, eslint throws parsing errors:

/data/git/identity/ui-tests/webpack2/app/components/App.js
  1:1  error  Parsing error: The keyword 'import' is reserved

/data/git/identity/ui-tests/webpack2/app/components/ItemView.js
  1:1  error  Parsing error: The keyword 'import' is reserved

/data/git/identity/ui-tests/webpack2/app/initialize.js
  1:1  error  Parsing error: The keyword 'import' is reserved

This prevents the build from completing.

Webpack webpack-dev-server config

webpack-dev-server in Webpack is currently show app folder with sources.
Correctly add contentBase: "./public", into devServer section webpack.config.js to display Compiled app

stylus-loader for webpack

Hello. Yet one question about webpack integration.

How should we use stylus-loader?
There is nor plugin definition in webpack.config.js nor files with styl extension.

So may be this dependency unnecessary?

Error: module "backbone" not found

Steps to reproduce:

git clone [email protected]:marionettejs/marionette-integrations.git
cd marionette-integrations/browserify/
npm install
npm run build

My theory is that because backbone is only included as a dependency of backbone.marionette, require('backbone') only works when called from inside backbone.marionette

If I also npm install backbone the error goes away, but now you have 2 copies of backbone that might be different versions.

➜  browserify git:(master) npm ls
marionette-browserify@ /tmp/marionette-integrations/browserify
├── [email protected] extraneous
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]

webpack.config.js modulesDirectories issue

Hello.

I try use integration with webpack. During build process I got next error:

ERROR in .//backbone.marionette/lib/backbone.marionette.js
Module not found: Error: Cannot resolve module 'backbone.radio' in C:\data\coding\mjs\node_modules\backbone.marionette\lib
@ ./
/backbone.marionette/lib/backbone.marionette.js 12:133-158

After some researching I found this line in webpack.config.js

 resolve: {
   modulesDirectories: [path.join(__dirname, './node_modules')],
   root: path.join(__dirname, './app')
  }

Webpack documentation says that

Just use a directory name, not a path. Use only if you expect to have a hierarchy within these folders

Then I deleted modulesDirectories property, and after this build the project with success

Webpack v4

It would seem that all of these webpack integrations no longer work. Is there a plan to help beginning Marionette users to get started using modern webpack installations?

Thank you.

the webpack integration project build script erro

hi,

in the webpack2 and probably webpack sub projects the package.json scripts include bash invocation of eslint and webpack, for example in the build script. however the project does not install them globally so as to bash have them s commands.

npm run lint && webpack -p as lint there resolves toeslint app invocation. however It does not work. I think this is due to I do not have eslint as a command on my shell. I try in the bash
$eslint and get command not found, same for the webpack.

when I npm install -g webpack, for exampe, I do not get the error for it as I have taken before, I think it will be same for the eslint, as well.

However, this seems to conflict with the behaviour that the webpack-dev-server --open can work even it is not available as a bash command, and I have not installed it globally only locally with npm install from inside the webpack2 dir.

Any insigths into this?

Browserify possible without global jQuery?

Currently in the example integration, jQuery is loaded separate from the built javascript file and then used at a global level. Is this absolutely necessary? Or is there a way to use it more seamlessly with Browserify?

Add yeoman generator

I've been thinking to add yeoman, so person can just generate simple skeleton which he/she needs and play with instead of cloning all repo with all skeletons.

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.