Browse Source

Other: ckeditor5-cloudservices was renamed to ckeditor5-cloud-services and ckeditor-cloudservices-core to ckeditor-cloud-services-core.

Piotrek Koszuliński 7 năm trước cách đây
mục cha
commit
933c9609ba

+ 0 - 120
packages/ckeditor-cloud-services-core/karma.conf.js

@@ -1,120 +0,0 @@
-/**
- * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
- */
-
-/* eslint-env node */
-
-'use strict';
-
-const path = require( 'path' );
-
-const webpack = require( 'webpack' );
-
-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: [ 'mocha', 'chai', 'sinon' ],
-
-		// list of files / patterns to load in the browser
-		files: [
-			'tests/**/*.js'
-		],
-
-		// list of files to exclude
-		exclude: [
-			'tests/**/@(_utils|_assets)/**'
-		],
-
-		// preprocess matching files before serving them to the browser
-		// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
-		preprocessors: {
-			'tests/**/*.js': [ 'webpack', 'sourcemap' ],
-			'src/**/*.js': [ 'webpack', 'sourcemap' ]
-		},
-
-		webpack: {
-			resolve: {
-				modules: [
-					path.join( __dirname, 'src' ),
-					'node_modules'
-				]
-			},
-
-			module: {
-				loaders: [
-					{
-						test: /\.js$/,
-						exclude: /(node_modules\/((?!ckeditor)[a-z-]+))/,
-						loader: 'babel-loader',
-						enforce: 'pre',
-						query: {
-							plugins: [
-								'transform-es2015-modules-commonjs',
-								[
-									'istanbul',
-									{ 'exclude': [ 'tests/**/*.js', 'node_modules/**' ] }
-								]
-							]
-						}
-					}
-				]
-			},
-
-			plugins: [
-				new webpack.DefinePlugin( {
-					VERSION: JSON.stringify( require( './package.json' ).version )
-				} )
-			],
-
-			devtool: 'inline-source-map'
-		},
-
-		webpackMiddleware: {
-			noInfo: true,
-			stats: 'errors-only'
-		},
-
-		// test results reporter to use
-		// possible values: 'dots', 'progress'
-		// available reporters: https://npmjs.org/browse/keyword/karma-reporter
-		reporters: [ 'mocha', 'coverage' ],
-
-		coverageReporter: {
-			dir: 'coverage/',
-			reporters: [
-				{ type: 'html', subdir: 'report-html' },
-				{ type: 'lcov', subdir: 'report-lcov' },
-				{ type: 'text', subdir: '.', file: 'text.txt' }
-			]
-		},
-
-		// 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: [ 'Chrome' ],
-
-		// Continuous Integration mode
-		// if true, Karma captures browsers, runs the tests and exits
-		singleRun: false,
-
-		// Concurrency level
-		// how many browser should be started simultaneous
-		concurrency: Infinity
-	} );
-};

+ 37 - 32
packages/ckeditor-cloud-services-core/package.json

@@ -1,43 +1,48 @@
 {
   "name": "@ckeditor/ckeditor-cloud-services-core",
   "version": "0.2.0",
-  "description": "CKEditor Cloud Services Core API",
+  "description": "CKEditor Cloud Services Core API.",
+  "keywords": [
+    "ckeditor5",
+    "ckeditor5-lib"
+  ],
+  "dependencies": {
+    "@ckeditor/ckeditor5-utils": "^1.0.0-beta.1"
+  },
+  "devDependencies": {
+    "eslint": "^4.15.0",
+    "eslint-config-ckeditor5": "^1.0.7",
+    "husky": "^0.14.3",
+    "lint-staged": "^6.0.0"
+  },
+  "engines": {
+    "node": ">=6.0.0",
+    "npm": ">=3.0.0"
+  },
+  "author": "CKSource (http://cksource.com/)",
   "license": "(GPL-2.0 OR LGPL-2.1 OR MPL-1.1)",
+  "homepage": "https://ckeditor.com",
+  "bugs": "https://github.com/ckeditor/ckeditor-cloud-servives-core/issues",
   "repository": {
     "type": "git",
-    "url": "git@github.com:ckeditor/ckeditor-cloud-services-core.git"
+    "url": "https://github.com/ckeditor/ckeditor-cloud-servives-core.git"
   },
-  "author": "CKSource (http://cksource.com/)",
-  "bugs": "https://github.com/ckeditor/ckeditor-cloud-services-core/issues",
-  "url": "https://github.com/ckeditor/ckeditor-cloud-services-core/issues",
-  "homepage": "https://github.com/ckeditor/ckeditor-cloud-services-core#readme",
+  "files": [
+    "lang",
+    "src",
+    "theme"
+  ],
   "scripts": {
-    "test": "karma start --single-run",
-    "lint": "eslint src tests"
+    "lint": "eslint --quiet '**/*.js'",
+    "precommit": "lint-staged"
   },
-  "dependencies": {
-    "@ckeditor/ckeditor5-utils": "^1.0.0-alpha.1"
+  "lint-staged": {
+    "**/*.js": [
+      "eslint --quiet"
+    ]
   },
-  "devDependencies": {
-    "babel-core": "^6.26.0",
-    "babel-loader": "^7.1.2",
-    "babel-plugin-istanbul": "^4.1.5",
-    "babel-plugin-transform-es2015-modules-commonjs": "^6.26.0",
-    "chai": "^4.1.2",
-    "eslint": "^4.7.1",
-    "eslint-config-ckeditor5": "^1.0.6",
-    "karma": "^1.7.1",
-    "karma-chai": "^0.1.0",
-    "karma-chrome-launcher": "^2.2.0",
-    "karma-coverage": "^1.1.1",
-    "karma-firefox-launcher": "^1.0.1",
-    "karma-mocha": "^1.3.0",
-    "karma-mocha-reporter": "^2.2.4",
-    "karma-sinon": "^1.0.5",
-    "karma-sourcemap-loader": "^0.3.7",
-    "karma-webpack": "^2.0.4",
-    "mocha": "^3.5.3",
-    "sinon": "^3.3.0",
-    "webpack": "^3.6.0"
-  }
+  "eslintIgnore": [
+    "src/lib/**",
+    "packages/**"
+  ]
 }