@mkrause/match
Advanced tools
+6
| { | ||
| presets: [ 'es2015', 'es2016', 'es2017' ], | ||
| plugins: [ | ||
| 'transform-object-rest-spread', | ||
| ], | ||
| } |
| const path = require('path'); | ||
| const webpack = require('webpack'); | ||
| module.exports = { | ||
| target: 'node', | ||
| entry: { | ||
| match: path.join(__dirname, 'src/match.js'), | ||
| }, | ||
| output: { | ||
| path: path.join(__dirname, 'dist'), | ||
| filename: '[name].js', | ||
| libraryTarget: 'umd', | ||
| library: 'match', | ||
| }, | ||
| module: { | ||
| rules: [ | ||
| { | ||
| test: /\.js$/, | ||
| exclude: /node_modules/, | ||
| use: [ 'babel-loader' ], | ||
| }, | ||
| ], | ||
| }, | ||
| }; |
+13
-2
| { | ||
| "name": "@mkrause/match", | ||
| "version": "1.0.6", | ||
| "version": "1.0.7", | ||
| "description": "Matching utility for JavaScript.", | ||
@@ -9,3 +9,5 @@ "author": "mkrause", | ||
| "main": "src/match.js", | ||
| "main": "dist/match.js", | ||
| "module": "src/match.js", | ||
| "scripts": { | ||
@@ -19,4 +21,13 @@ "test": "mocha --recursive tests" | ||
| "devDependencies": { | ||
| "babel-core": "^6.16.0", | ||
| "babel-preset-es2015": "^6.16.0", | ||
| "babel-preset-es2016": "^6.16.0", | ||
| "babel-preset-es2017": "^6.16.0", | ||
| "babel-plugin-transform-object-rest-spread": "^6.20.1", | ||
| "webpack": "^2.2.1", | ||
| "babel-loader": "^6.3.2", | ||
| "mocha": "^3.2.0" | ||
| } | ||
| } |
Sorry, the diff of this file is not supported yet
17155
6.31%8
33.33%287
8.71%8
700%