This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var path = require('path'); | |
var webpack = require('webpack'); | |
module.exports = { | |
entry: [ | |
'babel-polyfill', | |
'./app-js/main', | |
], | |
output: { | |
path: __dirname + '/app/assets/javascripts', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" |
NewerOlder