浏览代码

update package.json

Robin Herbots 7 年之前
父节点
当前提交
434504f6a6
共有 5 个文件被更改,包括 1777 次插入4361 次删除
  1. 1 12
      Gruntfile.js
  2. 0 59
      karma.conf.js
  3. 1770 4274
      package-lock.json
  4. 0 10
      package.json
  5. 6 6
      webpack.config.js

+ 1 - 12
Gruntfile.js

@@ -70,17 +70,6 @@ module.exports = function (grunt) {
         pkg: grunt.file.readJSON("package.json"),
         uglify: createUglifyConfig("js"),
         clean: ["dist"],
-        karma: {
-            options: {
-                configFile: 'karma.conf.js'
-            },
-            unit: {
-                runnerPort: 9999,
-                singleRun: true,
-                browsers: ["Chrome"], //will later add extra test targets
-                logLevel: 'ERROR'
-            }
-        },
         bump: {
             options: {
                 files: ['package.json', 'bower.json', 'composer.json', 'component.json'],
@@ -159,7 +148,7 @@ module.exports = function (grunt) {
         grunt.config('release.options.npmtag', "next");
         grunt.task.run('release');
     });
-    grunt.registerTask('validate', ['webpack:qunit', 'eslint', 'karma']);
+    grunt.registerTask('validate', ['webpack:qunit', 'eslint']);
     grunt.registerTask('build', ['bump:prerelease', 'clean', 'webpack:build', 'uglify']);
     grunt.registerTask('build:patch', ['bump:patch', 'clean', 'webpack:build', 'uglify']);
     grunt.registerTask('build:minor', ['bump:minor', 'clean', 'webpack:build', 'uglify']);

+ 0 - 59
karma.conf.js

@@ -1,59 +0,0 @@
-// Karma configuration
-// Generated on Tue Mar 31 2015 23:46:42 GMT+0200 (CEST)
-
-module.exports = function (config) {
-	config.set({
-
-		// base path that will be used to resolve all patterns (eg. files, exclude)
-		basePath: '',
-
-		// frameworks to use
-		// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
-		frameworks: ['qunit'],
-		// list of files / patterns to load in the browser
-		files: [
-            'qunit/qunit.js'
-		],
-
-		// list of files to exclude
-		exclude: [
-        ],
-
-
-		// preprocess matching files before serving them to the browser
-		// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
-		preprocessors: {},
-
-
-		// test results reporter to use
-		// possible values: 'dots', 'progress'
-		// available reporters: https://npmjs.org/browse/keyword/karma-reporter
-		reporters: ['progress'],
-
-
-		// web server port
-		port: 9876,
-
-
-		// enable / disable colors in the output (reporters and logs)
-		colors: true,
-
-		// level of logging
-		// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
-		logLevel: config.LOG_INFO,
-
-
-		// enable / disable watching file and executing tests whenever any file changes
-		autoWatch: true,
-
-
-		// start these browsers
-		// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
-		browsers: ["PhantomJS", "Chrome", "Firefox"],
-
-
-		// Continuous Integration mode
-		// if true, Karma captures browsers, runs the tests and exits
-		singleRun: false
-	})
-}

文件差异内容过多而无法显示
+ 1770 - 4274
package-lock.json


+ 0 - 10
package.json

@@ -35,7 +35,6 @@
   },
   "homepage": "https://github.com/RobinHerbots/Inputmask",
   "devDependencies": {
-    "awesome-typescript-loader": "^5.2.0",
     "babel-core": "^6.26.3",
     "babel-helpers": "^6.24.1",
     "babel-loader": "^7.1.5",
@@ -49,28 +48,19 @@
     "grunt-contrib-clean": "^1.1.0",
     "grunt-contrib-uglify": "^3.4.0",
     "grunt-eslint": "^21.0.0",
-    "grunt-karma": "^2.0.0",
     "grunt-nuget": "^0.3.0",
     "grunt-release": "^0.14.0",
     "grunt-webpack": "^3.1.2",
     "jqlite": "^0.2.42",
     "jquery": "^3.3.1",
-    "karma": "^2.0.5",
-    "karma-chrome-launcher": "^2.2.0",
-    "karma-firefox-launcher": "^1.1.0",
-    "karma-ie-launcher": "^1.0.0",
-    "karma-phantomjs-launcher": "^1.0.4",
-    "karma-qunit": "^2.1.0",
     "load-grunt-tasks": "^4.0.0",
     "loader-utils": "^1.1.0",
-    "phantomjs-prebuilt": "^2.1.16",
     "postcss": "^7.0.2",
     "postcss-cssnext": "^3.1.0",
     "postcss-loader": "^2.1.6",
     "qunitjs": "^2.4.1",
     "source-map-loader": "^0.2.3",
     "style-loader": "^0.21.0",
-    "typescript": "^3.0.1",
     "webpack": "^4.16.3",
     "webpack-cli": "^3.1.0"
   },

+ 6 - 6
webpack.config.js

@@ -24,11 +24,11 @@ const rules = {
             passPerPreset: true,
         },
     },
-    ts: {
-        test: /\.tsx?$/,
-        loader: 'awesome-typescript-loader',
-        exclude: /(node_modules)/
-    },
+    // ts: {
+    //     test: /\.tsx?$/,
+    //     loader: 'awesome-typescript-loader',
+    //     exclude: /(node_modules)/
+    // },
     styles: {
         test: /\.css$/,
         use: [
@@ -67,7 +67,7 @@ module.exports = {
         rules: [
             rules.sourceMap,
             rules.js,
-            rules.ts,
+            // rules.ts,
             rules.styles
         ]
     },