This commit is contained in:
Alex Gyoshev 2017-06-14 18:22:30 +03:00
Коммит 14b36685a6
19 изменённых файлов: 269 добавлений и 0 удалений

11
.gitignore поставляемый Normal file
Просмотреть файл

@ -0,0 +1,11 @@
node_modules
dist/*
!dist/main.css
tmp
.tmp
.DS_Store
yarn.locknpm-debug.log
npm-debug.log
.vscode/
debug.log
modules/

8
.npmignore Normal file
Просмотреть файл

@ -0,0 +1,8 @@
*.tgz
.tmp/
.travis.yml
build
demo/
dist/*.js
sass-lint.yml
webpack.config.js

35
.travis.yml Normal file
Просмотреть файл

@ -0,0 +1,35 @@
sudo: false
language: node_js
cache:
directories:
- node_modules
notifications:
email: false
slack:
on_success: never
secure: QFMZSJNCI5H5xzoIcDbJfzgR9AH7FuBD4tOyqRr/FMfEm1mV5eInvgUSmz0xFN3TpDMwJXKi41mrquK6/ey3DEgI0Jm5M32FTis+HahXp3R6zamD7+6Y0WaTxhILcULPqJVo2Ce4WtMqbmrEyk2xLFSYPhFt9wPna9aFO4j+OZw=
node_js:
- '6'
env:
- CXX=g++-4.8
addons:
apt:
sources:
- git-core
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- git
before_install:
- npm i -g npm@^3.8.0
- echo "@progress:registry=https://$PROGRESS_REGISTRY_HOST/" > .npmrc
- echo "//$PROGRESS_REGISTRY_HOST/:_authToken=\"$PROGRESS_REGISTRY_TOKEN\"" >> .npmrc
- npm update @progress/kendo-theme-default
before_script:
- git fetch --unshallow origin refs/heads/master:refs/remotes/origin/master
- npm prune
after_success:
#- npm run semantic-release
branches:
except:
- "/^v\\d+\\.\\d+\\.\\d+(\\-.*)?$/"

28
CONTRIBUTING.md Normal file
Просмотреть файл

@ -0,0 +1,28 @@
# Guidelines to Contribution
We accept third-party contributions.
## Ways to Contribute
You can contribute by:
* Submitting bug-fixes.
* Proposing changes in documentation or updates to existing code.
* Adding features or missing functionalities.
## Steps to Contribute
To submit your suggestions:
1. If a first-time contributor, read and sign the [Kendo UI for Angular Contribution License Agreement (CLA)](https://docs.google.com/forms/d/e/1FAIpQLSdSzuLLij8dtytTeiXCzlHcTmHYZIxgrAa7BSaO_fno79ua1A/viewform?c=0&w=1). The Agreement confirms that you acknowledge the legal aspects of your contributions.
1. Branch out the repo you want to update.
1. Add your contribution.
1. Submit a [Pull Request](https://help.github.com/articles/creating-a-pull-request/).
## Support-Related Issues
Refer to our [**Community & Support**](http://www.telerik.com/kendo-angular-ui/support/) page for more information on:
* How to report a bug
* New upcoming features
* Support-related questions

20
README.md Normal file
Просмотреть файл

@ -0,0 +1,20 @@
# Kendo UI Material Theme
* [Overview](#overview)
* [Installation](#installation)
## Overview
The **Kendo UI Material Theme** is a theme for the Kendo UI components, based on the [Material design guidelines](https://material.io/).
The Material theme is available for the following suites:
* Kendo UI for React.
* Kendo UI for Angular.
* Kendo UI for jQuery.
## Installation
1. Run the `npm install` command to install the build dependencies.
1. Run the `npm run build` command to build the CSS.

2
build/all.js Normal file
Просмотреть файл

@ -0,0 +1,2 @@
// entry point for webpack
require("./../scss/all.scss");

19
build/embed-dependencies Executable file
Просмотреть файл

@ -0,0 +1,19 @@
#!/bin/bash
# Usage: embed-dependencies [module-name]...
mkdir -p modules
for module in "$@"
do
# copy dependencies from node_modules/ to modules/ subdir
echo "Copy $module dependency"
mkdir -p modules/$module
rsync -avc --delete --include "**.scss" node_modules/$module/ modules/$module/
done
# replace references to modules with relative paths
find ./scss/ -maxdepth 1 -type f -name "*.scss" -exec sed -i 's#\(@import\s\+\)\(''\|\"\)~\(.*\);#\1\2../modules/\3;#' "{}" \;
find ./scss/ -maxdepth 2 -type f -name "*.scss" -exec sed -i 's#\(@import\s\+\)\(''\|\"\)~\(.*\);#\1\2../../modules/\3;#' "{}" \;
find ./scss/ -maxdepth 3 -type f -name "*.scss" -exec sed -i 's#\(@import\s\+\)\(''\|\"\)~\(.*\);#\1\2../../../modules/\3;#' "{}" \;

87
package.json Normal file
Просмотреть файл

@ -0,0 +1,87 @@
{
"name": "@progress/kendo-theme-material",
"description": "Material theme for Kendo UI",
"version": "0.0.0-semantically-released",
"author": "Progress",
"license": "Apache-2.0",
"keywords": [
"Kendo UI",
"Material",
"Material design",
"Theme"
],
"main": "scss/all.scss",
"repository": {
"type": "git",
"url": "https://github.com/telerik/kendo-theme-material.git"
},
"publishConfig": {
"registry": "https://registry.npm.telerik.com"
},
"release": {
"debug": false,
"branchTags": {
"develop": "dev"
},
"fallbackTags": {
"dev": "latest"
},
"analyzeCommits": "@telerik/semantic-prerelease/analyzeCommits",
"generateNotes": "@telerik/semantic-prerelease/generateNotes",
"getLastRelease": "@telerik/semantic-prerelease/getLastRelease",
"verifyConditions": "@telerik/semantic-prerelease/verifyConditions",
"verifyRelease": "@telerik/semantic-prerelease/verifyRelease"
},
"scripts": {
"lint": "sass-lint -v -c ./sass-lint.yml",
"api": "sassdoc ./scss/",
"api-check": "npm run api && git diff --exit-code --quiet -- docs/ || (echo -e '\\033[0;31mERROR: API docs are out of date' && exit 1)",
"start": "webpack-dev-server --hot --inline",
"build": "webpack --optimize-minimize --bail",
"watch": "webpack --watch",
"test": "npm run lint && npm run build && npm run api-check",
"embed-assets": "bash ./build/embed-dependencies '@progress/kendo-theme-default' && npm run build",
"semantic-release": "semantic-release pre && npm run embed-assets && semantic-prerelease publish && semantic-release post"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
},
"ghooks": {
"pre-commit": "npm run lint",
"pre-push": "npm run test",
"commit-msg": "validate-commit-msg"
},
"validate-commit-msg": {
"types": [
"feat",
"fix",
"docs",
"style",
"refactor",
"perf",
"test",
"chore",
"revert"
],
"warnOnFail": false,
"maxSubjectLength": 100
}
},
"dependencies": {
"@progress/kendo-theme-default": "^2.0.0"
},
"devDependencies": {
"@telerik/kendo-common-tasks": "^2.0.0",
"@telerik/semantic-prerelease": "^1.0.0",
"cz-conventional-changelog": "^1.1.5",
"ghooks": "^1.0.3",
"glob": "^7.0.5",
"mime": "^1.3.4",
"sass-lint": "^1.7.0",
"sassdoc": "^2.1.20",
"semantic-release": "^4.3.5",
"validate-commit-msg": "^1.1.1",
"webpack": "^1.13.1"
}
}

41
sass-lint.yml Normal file
Просмотреть файл

@ -0,0 +1,41 @@
options:
verbose: true
files:
include: 'scss/**/*.scss'
ignore:
- 'scss/mixins/**/*.scss'
rules:
no-ids: 2
property-sort-order: 0
mixins-before-declarations: 0
indentation:
- 2
-
size: 4
force-element-nesting: 0
force-pseudo-nesting: 0
no-vendor-prefixes: 0
no-css-comments: 0
no-color-keywords: 0
no-color-literals: 0
hex-length: 0
no-misspelled-properties: 0
no-trailing-whitespace: 2
no-qualifying-elements: 0
pseudo-element: 2
final-newline: 0
empty-args: 0
empty-line-between-blocks: 0
placeholder-in-extend: 0
quotes: 0
space-between-parens: 0
shorthand-values: 0
no-empty-rulesets: 0

1
scss/_mixins.scss Normal file
Просмотреть файл

@ -0,0 +1 @@
@import "~@progress/kendo-theme-default/scss/mixins";

0
scss/_variables.scss Normal file
Просмотреть файл

6
scss/all.scss Normal file
Просмотреть файл

@ -0,0 +1,6 @@
@import "variables";
@import "~@progress/kendo-theme-default/scss/variables";
// Dependencies
@import "mixins";
@import "common/all";

5
scss/common/_all.scss Normal file
Просмотреть файл

@ -0,0 +1,5 @@
@import "base";
@import "icons";
@import "animations";
@import "forms";
@import "dragclue";

Просмотреть файл

@ -0,0 +1 @@
@import "~@progress/kendo-theme-default/scss/common/animations";

1
scss/common/_base.scss Normal file
Просмотреть файл

@ -0,0 +1 @@
@import "~@progress/kendo-theme-default/scss/common/base";

Просмотреть файл

@ -0,0 +1 @@
@import "~@progress/kendo-theme-default/scss/common/dragclue";

1
scss/common/_forms.scss Normal file
Просмотреть файл

@ -0,0 +1 @@
@import "~@progress/kendo-theme-default/scss/common/forms";

1
scss/common/_icons.scss Normal file
Просмотреть файл

@ -0,0 +1 @@
@import "~@progress/kendo-theme-default/scss/common/icons";

1
webpack.config.js Normal file
Просмотреть файл

@ -0,0 +1 @@
module.exports = require('@progress/kendo-theme-default/webpack.config.js');