From 4222f7fd89e5c36b632873b53b975c6a484f6694 Mon Sep 17 00:00:00 2001 From: Aleksander Nowodzinski Date: Fri, 26 May 2017 11:40:03 +0200 Subject: [PATCH] Created the basic repository infrastructure. --- .editorconfig | 12 ++++++++++++ .eslintrc.js | 12 ++++++++++++ .gitattributes | 18 ++++++++++++++++++ .gitignore | 7 +++++++ .travis.yml | 24 ++++++++++++++++++++++++ CHANGELOG.md | 2 ++ CONTRIBUTING.md | 4 ++++ LICENSE.md | 23 +++++++++++++++++++++++ README.md | 14 ++++++++++++++ gulpfile.js | 22 ++++++++++++++++++++++ package.json | 34 ++++++++++++++++++++++++++++++++++ 11 files changed, 172 insertions(+) create mode 100644 .editorconfig create mode 100644 .eslintrc.js create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 .travis.yml create mode 100644 CHANGELOG.md create mode 100644 CONTRIBUTING.md create mode 100644 LICENSE.md create mode 100644 README.md create mode 100644 gulpfile.js create mode 100644 package.json diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..541fc2d --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +# Configurations to normalize the IDE behavior. +# http://editorconfig.org/ + +root = true + +[*] +indent_style = tab +tab_width = 4 +charset = utf-8 +end_of_line = lf +trim_trailing_whitespace = true +insert_final_newline = true diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..b5a22b0 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,12 @@ +/** + * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md. + */ + +/* eslint-env node */ + +'use strict'; + +module.exports = { + extends: 'ckeditor5' +}; diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9c20d56 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,18 @@ +* text=auto + +*.htaccess eol=lf +*.cgi eol=lf +*.sh eol=lf + +*.css text +*.htm text +*.html text +*.js text +*.json text +*.php text +*.txt text +*.md text + +*.png -text +*.gif -text +*.jpg -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..35a8f21 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +# These files will be ignored by Git and by our linting tools: +# gulp lint +# gulp lint-staged +# +# Be sure to append /** to folders to have everything inside them ignored. + +node_modules/** diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..29678a9 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,24 @@ +sudo: required +dist: trusty +addons: + apt: + sources: + - google-chrome + packages: + - google-chrome-stable +language: node_js +node_js: + - "6" +cache: + - node_modules +before_install: + - export DISPLAY=:99.0 + - sh -e /etc/init.d/xvfb start +install: + - npm install @ckeditor/ckeditor5-dev-tests + - ckeditor5-dev-tests-install-dependencies +script: + - ckeditor5-dev-tests-travis +after_success: + - codeclimate-test-reporter < coverage/lcov.info + - ckeditor5-dev-tests-save-revision diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..a5693d9 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,2 @@ +Changelog +========= diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..ea0b868 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,4 @@ +Contributing +======================================== + +Information about contributing can be found on the following page: . diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..6904191 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,23 @@ +Software License Agreement +========================== + +**Balloon Toolbar Editor** – https://github.com/ckeditor/ckeditor5-editor-balloon-toolbar
+Copyright (c) 2003-2017, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved. + +Licensed under the terms of any of the following licenses at your choice: + +* [GNU General Public License Version 2 or later (the "GPL")](http://www.gnu.org/licenses/gpl.html) +* [GNU Lesser General Public License Version 2.1 or later (the "LGPL")](http://www.gnu.org/licenses/lgpl.html) +* [Mozilla Public License Version 1.1 or later (the "MPL")](http://www.mozilla.org/MPL/MPL-1.1.html) + +You are not required to, but if you want to explicitly declare the license you have chosen to be bound to when using, reproducing, modifying and distributing this software, just include a text file titled "legal.txt" in your version of this software, indicating your license choice. In any case, your choice will not restrict any recipient of your version of this software to use, reproduce, modify and distribute this software under any of the above licenses. + +Sources of Intellectual Property Included in CKEditor +----------------------------------------------------- + +Where not otherwise indicated, all CKEditor content is authored by CKSource engineers and consists of CKSource-owned intellectual property. In some specific instances, CKEditor will incorporate work done by developers outside of CKSource with their express permission. + +Trademarks +---------- + +**CKEditor** is a trademark of [CKSource](http://cksource.com) Frederico Knabben. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders. diff --git a/README.md b/README.md new file mode 100644 index 0000000..99d27fd --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +Balloon Toolbar Editor +======================================== + +[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-editor-balloon-toolbar.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-editor-balloon-toolbar) +[![Build Status](https://travis-ci.org/ckeditor/ckeditor5-editor-balloon-toolbar.svg?branch=master)](https://travis-ci.org/ckeditor/ckeditor5-editor-balloon-toolbar) +[![Test Coverage](https://codeclimate.com/github/ckeditor/ckeditor5-editor-balloon-toolbar/badges/coverage.svg)](https://codeclimate.com/github/ckeditor/ckeditor5-editor-balloon-toolbar/coverage) +[![Dependency Status](https://david-dm.org/ckeditor/ckeditor5-editor-balloon-toolbar/status.svg)](https://david-dm.org/ckeditor/ckeditor5-editor-balloon-toolbar) +[![devDependency Status](https://david-dm.org/ckeditor/ckeditor5-editor-balloon-toolbar/dev-status.svg)](https://david-dm.org/ckeditor/ckeditor5-editor-balloon-toolbar?type=dev) + +Balloon Toolbar Editor for CKEditor 5. More information about the project can be found at the following URL: . + +## License + +Licensed under the GPL, LGPL and MPL licenses, at your choice. For full details about the license, please check the `LICENSE.md` file. diff --git a/gulpfile.js b/gulpfile.js new file mode 100644 index 0000000..40c0e59 --- /dev/null +++ b/gulpfile.js @@ -0,0 +1,22 @@ +/** + * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md. + */ + +/* eslint-env node */ + +'use strict'; + +const gulp = require( 'gulp' ); +const ckeditor5Lint = require( '@ckeditor/ckeditor5-dev-lint' ); +const options = { + // Files ignored by `gulp lint` task. + // Files from .gitignore will be added automatically during task execution. + ignoredFiles: [ + 'src/lib/**' + ] +}; + +gulp.task( 'lint', () => ckeditor5Lint.lint( options ) ); +gulp.task( 'lint-staged', () => ckeditor5Lint.lintStaged( options ) ); +gulp.task( 'pre-commit', [ 'lint-staged' ] ); diff --git a/package.json b/package.json new file mode 100644 index 0000000..ba6454d --- /dev/null +++ b/package.json @@ -0,0 +1,34 @@ +{ + "name": "@ckeditor/ckeditor5-editor-balloon-toolbar", + "version": "0.0.1", + "description": "Balloon toolbar editor for CKEditor 5.", + "keywords": [], + "dependencies": { + "@ckeditor/ckeditor5-core": "^0.8.1", + "@ckeditor/ckeditor5-engine": "^0.10.0", + "@ckeditor/ckeditor5-theme-lark": "^0.8.0", + "@ckeditor/ckeditor5-ui": "^0.9.0", + "@ckeditor/ckeditor5-utils": "^0.9.1" + }, + "devDependencies": { + "@ckeditor/ckeditor5-dev-lint": "^3.0.0", + "@ckeditor/ckeditor5-basic-styles": "^0.8.1", + "@ckeditor/ckeditor5-paragraph": "^0.8.0", + "@ckeditor/ckeditor5-presets": "^0.2.2", + "eslint-config-ckeditor5": "^1.0.0", + "gulp": "^3.9.1", + "guppy-pre-commit": "^0.4.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://ckeditor5.github.io", + "bugs": "https://github.com/ckeditor/ckeditor5-editor-balloon-toolbar/issues", + "repository": { + "type": "git", + "url": "https://github.com/ckeditor/ckeditor5-editor-balloon-toolbar.git" + } +}