Permalink
Browse files

Enabled usage of ES6

  • Loading branch information...
aasierra committed Oct 31, 2015
1 parent 8e41335 commit f7e054ba363f4e8892e559f5e7aa0b8118024f51
Showing with 76 additions and 1 deletion.
  1. +4 −0 .babelrc
  2. +1 −1 README.md
  3. +42 −0 dist/all.js
  4. +1 −0 dist/all.js.map
  5. +9 −0 gulpfile.js
  6. +19 −0 package.json
View
@@ -0,0 +1,4 @@
{
"presets": ["es2015"],
"plugins":["transform-object-rest-spread"]
}
View
@@ -1,2 +1,2 @@
# Theorem JS
A ES5 library that adds methods to the Math class for working with JS.
A ES6 transpiled via Babel to ES5 library that adds methods to the Math class for working with JS.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,6 +1,15 @@
var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemaps');
var babel = require('gulp-babel');
var concat = require('gulp-concat');
gulp.task('default', function () {
var jsdoc = require('gulp-jsdoc');
gulp.src("./src/*.js").pipe(jsdoc("./documentation"));
gulp.src("./src/*.js")
.pipe(sourcemaps.init())
.pipe(babel())
.pipe(concat("all.js"))
.pipe(sourcemaps.write("."))
.pipe(gulp.dest("dist"));
});
View
@@ -0,0 +1,19 @@
{
"name": "theorem",
"description": "A ES6 transpiled via Babel to ES5 library that adds methods to the Math class for working with JS.",
"version": "1.0.4",
"homepage": "https://github.com/aasierra/theorem",
"author": {
"name": "Anthony A Sierra",
"email": "aasierra@live.com",
"url": "http://anthonysierra.com/"
},
"devDependencies": {
"gulp-sourcemaps": "1.6.0",
"gulp-concat":"2.6.0",
"babel-preset-es2015":"6.0.14",
"babel-plugin-transform-object-rest-spread":"6.0.14",
"gulp-babel":"6.0.0",
"gulp":"3.9.0"
}
}

0 comments on commit f7e054b

Please sign in to comment.