Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

es6-kameita

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es6-kameita - npm Package Compare versions

Comparing version 0.1.3 to 0.3.0

.eslintrc

44

Gulpfile.js
var gulp = require('gulp');
var plumber = require('gulp-plumber');
var sequence = require('run-sequence').use(gulp);
var package = require('./package.json');

@@ -19,3 +18,3 @@ var banner = '/*! <%= name %> - v<%= version %> */'

var browserify = require('browserify');
var to5ify = require('6to5ify');
var babelify = require('babelify');

@@ -27,9 +26,7 @@ return transform(function(filename) {

noParse : [
require.resolve('6to5/runtime'),
require.resolve('6to5/browser-polyfill')
require.resolve('babel/browser-polyfill')
]
})
.transform(to5ify.configure({
experimental : false,
runtime : true
.transform(babelify.configure({
experimental : false
}))

@@ -45,17 +42,11 @@ .bundle()

gulp.task('jshint', function() {
var jshint = require('gulp-jshint');
gulp.task('lint', function() {
var eslint = require('gulp-eslint');
return gulp.src(GLOB_SRC_FILES)
.pipe(jshint('./.jshintrc'))
.pipe(jshint.reporter('jshint-stylish'))
.pipe(jshint.reporter('fail'));
.pipe(eslint({useEslintrc: true}))
.pipe(eslint.format())
.pipe(eslint.failAfterError());
});
gulp.task('bump', function(){
return gulp.src('./package.json')
.pipe(bump({type:'patch'}))
.pipe(gulp.dest('./'));
});
gulp.task('pretest', function() {

@@ -65,13 +56,9 @@ gulp.start('build', 'build-test');

gulp.task('release', function() {
sequence('jshint', 'bump', 'build', 'build-test');
});
gulp.task('watch', function() {
gulp.watch(GLOB_SRC_FILES, function() {
gulp.start('jshint', 'build');
gulp.start('build');
});
});
gulp.task('build', function() {
gulp.task('build', ['lint'], function() {
var uglify = require('gulp-uglify');

@@ -113,6 +100,6 @@ var rename = require('gulp-rename');

//gulp.task('build', function() {
// var to5 = require('gulp-6to5');
// var babel = require('gulp-babel');
//
// return gulp.src('./src/**/*.js')
// .pipe(to5({
// .pipe(babel({
// experimental : false,

@@ -126,8 +113,7 @@ // runtime : true

// var espower = require('gulp-espower');
// var to5 = require('gulp-6to5');
// var babel = require('gulp-babel');
//
// return gulp.src(GLOB_TEST_FILES)
// .pipe(to5({
// .pipe(babel({
// experimental : false,
// runtime : true
// }))

@@ -134,0 +120,0 @@ // .pipe(espower())

'use strict';
/**
* if you want to using `to5Runtime`
* @see https://6to5.org/optional-runtime.html
*/
require('6to5/runtime'); // Using the "require" to avoid call "to5Runtime.interopRequire()"
/**
* if using a feature that requires a browser-polyfill
* @see https://6to5.org/polyfill.html
* @see https://babeljs.io/docs/usage/polyfill/
*/
import polyfill from '6to5/browser-polyfill';
require('babel/browser-polyfill');
// your project module...
import foo from './src/foo';
{
"name": "es6-kameita",
"version": "0.1.3",
"version": "0.3.0",
"description": "",

@@ -10,7 +10,11 @@ "main": "index.js",

"scripts": {
"start": "npm run build && serve .",
"test": "testem -f testem.json ci",
"devel": "testem -f testem.json",
"watch": "gulp watch & serve .",
"lint": "gulp lint",
"build": "gulp build",
"release": "gulp release",
"watch": "gulp watch"
"patch": "npm version patch -m \"bump v%s !\"",
"minor": "npm version minor -m \"bump v%s !!\"",
"major": "npm version major -m \"bump v%s !!!\"",
"testem": "testem -f testem.json"
},

@@ -29,12 +33,13 @@ "repository": {

"devDependencies": {
"babel": "^4.0.1",
"babel-eslint": "^1.0.12",
"babelify": "^5.0.3",
"browserify": "~6.3.3",
"6to5": "~2.5.0",
"6to5ify": "~3.1.0",
"eslint": "^0.15.1",
"gulp": "~3.8.10",
"gulp-6to5": "~2.0.0",
"gulp-bump": "^0.1.11",
"gulp-babel": "^4.0.0",
"gulp-debug": "~1.0.1",
"gulp-eslint": "^0.5.0",
"gulp-espower": "^0.10.0",
"gulp-header": "~1.2.2",
"gulp-jshint": "~1.9.0",
"gulp-plumber": "~0.6.6",

@@ -46,7 +51,7 @@ "gulp-rename": "~1.2.0",

"power-assert": "~0.10.0",
"run-sequence": "^1.0.2",
"serve": "^1.4.0",
"sinon": "~1.12.2",
"testem": "~0.6.18",
"testem": "~0.7.1",
"vinyl-transform": "0.0.1"
}
}

@@ -33,11 +33,19 @@ ES6 project template for Browser and Node

```
npm run release
npm run patch
npm run minor
npm run major
```
### Run tests for development (auto re-run when file changed)
### Start watching src files (auto build when file changed)
```
npm run devel
npm run watch
```
### Run tests by testem (auto re-run when file changed)
```
npm run testem
```
### Run tests for ci

@@ -60,3 +68,3 @@

- [6to5/6to5](https://github.com/6to5/6to5)
- [babel/babel](https://github.com/babel/babel)
- [substack/node-browserify](https://github.com/substack/node-browserify)

@@ -63,0 +71,0 @@ - [gulpjs/gulp](https://github.com/gulpjs/gulp/)

'use strict';
export default function(foo, ...qux) {
export default function(foo, bar = 'baz') {
return 'bar!';
}

@@ -1,6 +0,5 @@

/* global YourApp */
'use strict';
// for nodeJS
//import * as assert from 'power-assert';
import assert from 'power-assert';
import sinon from 'sinon';

@@ -10,8 +9,8 @@ import foo from '../src/foo';

describe('test', function() {
it('foo?',function(){
it('foo?', function() {
assert(es6kameita != null);
});
it('foo!',function(){
it('foo!', function() {
assert(foo() == 'bar!');
});
});

@@ -5,14 +5,4 @@ 'use strict';

if (typeof exports !== "object") {
// for node (polyfill)
require("6to5/runtime");
require('6to5/polyfill');
} else {
// for browser (polyfill & global utilities)
require("6to5/runtime");
require('6to5/browser-polyfill');
window.assert = require('power-assert');
window.sinon = require('sinon');
}
// write some setup if needed
})();

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc