Skip to content
Permalink
Browse files

refactor: remove babel

  • Loading branch information...
QingWei-Li authored and shirotech committed Nov 8, 2018
1 parent 97c1271 commit b769e1c2da047bb51803c18eaca6a18d5bca1081
Showing with 19 additions and 750 deletions.
  1. +0 −12 .babelrc
  2. +0 −3 .nycrc
  3. +2 −2 module.js
  4. +1 −13 package.json
  5. +1 −1 spec/helpers/reporter.js
  6. +5 −4 spec/webpack.spec.js
  7. +10 −715 yarn.lock

This file was deleted.

3 .nycrc
@@ -11,9 +11,6 @@
"lcov",
"text"
],
"require": [
"@babel/register"
],
"cache": true,
"watermarks": {
"lines": [ 90, 100 ],
@@ -1,4 +1,4 @@
import path from 'path';
const path = require('path');

const empty = '';
const slash = '/';
@@ -198,4 +198,4 @@ class WebpackCdnPlugin {

WebpackCdnPlugin.node_modules = path.join(process.cwd(), 'node_modules');

export default WebpackCdnPlugin;
module.exports = WebpackCdnPlugin;
@@ -6,7 +6,6 @@
"module": "module.js",
"scripts": {
"test": "nyc jasmine",
"install": "babel module.js --out-file main.js",
"commitmsg": "validate-commit-msg",
"precommit": "npm test",
"start": "webpack --config example/webpack.config.js"
@@ -53,10 +52,6 @@
},
"homepage": "https://github.com/van-nguyen/webpack-cdn-plugin",
"devDependencies": {
"@babel/cli": "^7.1.2",
"@babel/core": "^7.1.2",
"@babel/preset-env": "^7.1.0",
"@babel/register": "^7.0.0",
"archy": "^1.0.0",
"eslint": "^5.8.0",
"eslint-config-airbnb-base": "13.1.0",
@@ -70,12 +65,5 @@
"webpack": "^4.24.0",
"webpack-cli": "^3.1.2"
},
"peerDependencies": {
"@babel/cli": ">=7",
"@babel/core": ">=7",
"@babel/preset-env": ">=7"
},
"dependencies": {
"babel-plugin-add-module-exports": "^1.0.0"
}
"dependencies": {}
}
@@ -1,4 +1,4 @@
import { SpecReporter } from 'jasmine-spec-reporter';
const { SpecReporter } = require('jasmine-spec-reporter');

const env = jasmine.getEnv();
env.clearReporters();
@@ -1,7 +1,8 @@
import path from 'path';
import webpack from 'webpack';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import WebpackCdnPlugin from '../module';
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const WebpackCdnPlugin = require('../module');


const cssMatcher = /<link href="(.+?)" rel="stylesheet"( crossorigin="anonymous")?>/g;
const jsMatcher = /<script type="text\/javascript" src="(.+?)"( crossorigin="anonymous")?>/g;

0 comments on commit b769e1c

Please sign in to comment.
You can’t perform that action at this time.