Skip to content

Commit

Permalink
Move files
Browse files Browse the repository at this point in the history
  • Loading branch information
boopathi committed Aug 28, 2016
1 parent e07a3ed commit 9d0d949
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["es2015"]
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
*.log
.vscode
lib
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
"name": "babili-webpack-plugin",
"version": "0.0.1",
"description": "Babili Plugin for Webpack",
"main": "index.js",
"main": "lib/index.js",
"scripts": {
"lint": "eslint *.js",
"fix": "eslint *.js --fix",
"test": "mocha"
"build": "babel src --out-dir lib",
"watch": "babel src --out-dir lib --watch",
"lint": "eslint src/ test/*.js",
"fix": "eslint src/ test/*.js --fix",
"test": "mocha --compilers js:babel-core/register"
},
"keywords": [
"webpack",
Expand All @@ -23,6 +25,8 @@
"webpack-sources": "^0.1.2"
},
"devDependencies": {
"babel-cli": "^6.14.0",
"babel-preset-es2015": "^6.14.0",
"eslint": "^3.3.1",
"expect": "^1.20.2",
"mocha": "^3.0.2",
Expand Down
File renamed without changes.
11 changes: 11 additions & 0 deletions test/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const base = require("../.eslintrc");

module.exports = Object.assign({}, base, {
env: {
node: true,
mocha: true
},
globals: {
Promise: true
}
});
8 changes: 6 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
"use strict";

const path = require("path");
const fs = require("fs");
const expect = require("expect");
const webpack = require("webpack");
const rimraf = require("rimraf");
const SourceMapConsumer = require("source-map").SourceMapConsumer;
const {SourceMapConsumer} = require("source-map");

const BabiliPlugin = require("../");
const buildDir = path.join(__dirname, "build");
Expand Down Expand Up @@ -105,7 +107,9 @@ function getFile(file) {
return fs.readFileSync(path.join(buildDir, file)).toString();
}

function getConfig(opts = {}) {
function getConfig(opts) {
if (typeof opts === "undefined") opts = {};

return {
entry: path.join(__dirname, "resources/app.js"),
output: {
Expand Down

0 comments on commit 9d0d949

Please sign in to comment.