Skip to content

Instantly share code, notes, and snippets.

View mariorcardoso's full-sized avatar

Mario Cardoso mariorcardoso

View GitHub Profile
import { Rectangle } from './rectangle'
import { Square } from './square'
import { Circle } from './circle'
import { CanvasLibrary } from './canvas_library'
$(document).ready(function() {
const canvas = new CanvasLibrary();
const layer = canvas.get_layer();
const stage = canvas.get_stage();
var path = require('path');
var webpack = require('webpack');
module.exports = {
entry: [
'babel-polyfill',
'./app-js/main',
],
output: {
path: __dirname + '/app/assets/javascripts',
{
"name": "rails_webpack_npm_es6",
"version": "1.0.0",
"main": "app-js/main.js",
"scripts": {
"heroku-postbuild": "webpack"
},
"repository": {
"type": "git",
"url": "https://github.com/mariorcardoso/rails_webpack_npm_es6.git"