Code Monkey home page Code Monkey logo

mental-calculation's Introduction

paperjs-starter

forthebadgeforthebadge

dependencies

A fundamental Paper.js starter project using webpack to make your day a bit easier.

Features

  • Typescript/javascript source support
  • Sample Paper.js drawpad app
  • Clear project hierarchy
  • Auto cache busting source files
  • Fast development and minified distribution builds

Usage

Setup

Clone the starter and install required dependencies. (you've probably done this before)

git clone https://github.com/florisdh/paperjs-starter AWESOME-PROJECT
cd AWESOME-PROJECT
npm i

Development

During the development you should run the development task, this will transpile your source files and copy all needed assets. Every time the watcher notices that a source file or asset is changed, it will build again. Please note that the typescript type checking is done in the background to improve performance and will not stop the build.

npm run dev

After running the development task you can go to http://localhost:8080 in your favorite web browser and see the results. If you want to browse the files you can look in the _build/dev folder.

Distribution

Running the distribution task will do the same as the development tasks to the source files and assets, but it will minify the transpiled source files into a smaller bundle.

npm run dist

You can browse the resulting files in the _build/dist directory or run http-server here to see it in the browser.

About

Made this starter project out of lack (in my pov) for a good starter in paper.js. Please let me know if you're using it or have some feedback. :)

TODO

  • Seperate output bundles
  • Implement uglify tool
  • Enable source mapping
  • Optionally add a linter

mental-calculation's People

Contributors

bennythebomb 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.