chore: theme skeleton
This commit is contained in:
Коммит
14b36685a6
|
@ -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/
|
|
@ -0,0 +1,8 @@
|
|||
*.tgz
|
||||
.tmp/
|
||||
.travis.yml
|
||||
build
|
||||
demo/
|
||||
dist/*.js
|
||||
sass-lint.yml
|
||||
webpack.config.js
|
|
@ -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+(\\-.*)?$/"
|
|
@ -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
|
|
@ -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.
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
// entry point for webpack
|
||||
require("./../scss/all.scss");
|
|
@ -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;#' "{}" \;
|
||||
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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
|
|
@ -0,0 +1 @@
|
|||
@import "~@progress/kendo-theme-default/scss/mixins";
|
|
@ -0,0 +1,6 @@
|
|||
@import "variables";
|
||||
@import "~@progress/kendo-theme-default/scss/variables";
|
||||
|
||||
// Dependencies
|
||||
@import "mixins";
|
||||
@import "common/all";
|
|
@ -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";
|
|
@ -0,0 +1 @@
|
|||
@import "~@progress/kendo-theme-default/scss/common/base";
|
|
@ -0,0 +1 @@
|
|||
@import "~@progress/kendo-theme-default/scss/common/dragclue";
|
|
@ -0,0 +1 @@
|
|||
@import "~@progress/kendo-theme-default/scss/common/forms";
|
|
@ -0,0 +1 @@
|
|||
@import "~@progress/kendo-theme-default/scss/common/icons";
|
|
@ -0,0 +1 @@
|
|||
module.exports = require('@progress/kendo-theme-default/webpack.config.js');
|
Загрузка…
Ссылка в новой задаче