Giter VIP home page Giter VIP logo

paper_jspm_transpile's Introduction

jspm_npm_test

Assume working directory in git repo is <DIRECTORY>.

  1. user@machine:<DIRECTORY>$ npm install

  2. user@machine:<DIRECTORY>$ ./node_modules/.bin/jspm install -y

  3. user@machine:<DIRECTORY>$ ./node_modules/.bin/gulp

A web server is now serving this test app at your.ip.goes.here:9001. For the given settings in the package.json, everything should be fine if you open your.ip.goes.here:9001 in your browser. If you open your browser's console you should see a PaperScope object.

  1. user@machine:<DIRECTORY>$ ./node_modules/.bin/gulp dist:server

First, gulp-jspm transpiles paper.js and Application.js into a bundle file and serves them on your.ip.goes.here:9001. (Wait until you see 'dist:server' before accessing the page.) If you open your browser's console this time you will see an error message: Uncaught Module 2 not present.

NOTE: If you did steps 1-4 and don't want to repull and do the steps again to test against paper.js 0.9.25, just do the following:

  1. user@machine:<DIRECTORY>$ ./node_modules/.bin/jspm uninstall paper

  2. user@machine:<DIRECTORY>$ ./node_modules/.bin/jspm install npm:[email protected]

Now, rerun your gulp commands. With paper.js 0.9.25 there is no error in the transpile.

paper_jspm_transpile's People

Contributors

mrbannon avatar

Watchers

James Cloos avatar  avatar

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.