Skip to content

Commit

Permalink
Revert "initial"
Browse files Browse the repository at this point in the history
  • Loading branch information
taburetkin committed May 15, 2019
1 parent 846e628 commit efe41a7
Show file tree
Hide file tree
Showing 199 changed files with 22,982 additions and 2,178 deletions.
12 changes: 4 additions & 8 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{
"presets": [
"@babel/env"
],
"plugins": [
"@babel/plugin-transform-runtime"
],
"sourceMaps": "inline",
"retainLines": true
"presets": ["es2015"],
"plugins":[
["babel-plugin-root-import"]
]
}
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# EditorConfig is awesome: http://EditorConfig.org

root = true;

[*]
# Ensure there's no lingering whitespace
trim_trailing_whitespace = false
# Ensure a newline at the end of each file
insert_final_newline = false

[*.js]
# Unix-style newlines
# end_of_line = lf
# charset = utf-8
# indent_style = tab
# indent_size = 2
86 changes: 17 additions & 69 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,70 +1,18 @@
{
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module"
},
"env": {
"browser": true,
"node": true
},
"globals": {
"Promise": true
},
"rules": {
"array-bracket-spacing": [ 2, "never" ],
"block-scoped-var": 2,
"brace-style": [ 2, "1tbs", { "allowSingleLine": true } ],
"camelcase": [ 2, { "properties": "always" } ],
"curly": [ 2, "multi-line" ],
"dot-notation": [ 2, { "allowKeywords": true } ],
"eol-last": 2,
"eqeqeq": 0,
"guard-for-in": 2,
"indent": [ 2, "tab", { "SwitchCase": 1 } ],
"key-spacing": [ 2,
{
"beforeColon": false,
"afterColon": true
}
],
"keyword-spacing": [ 2 ],
"new-cap": 2,
"no-bitwise": 2,
"no-caller": 2,
"no-eval": 2,
"no-extend-native": 2,
"no-iterator": 2,
"no-loop-func": 2,
"no-multi-spaces": "error",
"no-multi-str": 2,
"no-multiple-empty-lines": 2,
"no-new": 2,
"no-proto": 2,
"no-script-url": 2,
"no-sequences": 2,
"no-shadow": 2,
"no-spaced-func": 2,
"no-trailing-spaces": 2,
"no-unused-vars": [ 1, { "args": "none" } ],
"no-var": 2,
"no-with": 2,
"object-shorthand": [ 2, "methods" ],
"operator-linebreak": [ 0, "after" ],
"quotes": [ 2, "single" ],
"semi": [ 0, "never" ],
"space-before-blocks": [ 2, "always" ],
"space-before-function-paren": [ 2, "never" ],
"space-in-parens": [ 2, "never" ],
"space-infix-ops": 2,
"space-unary-ops": [ 2,
{
"nonwords": false,
"overrides": {}
}
],
"strict": 0,
"valid-jsdoc": 2,
"wrap-iife": [ 2, "inside" ]
}
}
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"rules": {
"camelcase": [ 2, { "properties": "always" } ]
},
"env": {
"browser": true,
"node": true
},
"globals": {
"define":true,
"document": true,
"window": true
}
}
21 changes: 17 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@
logs
*.log

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# Commenting this out is preferred by some people, see
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
Expand All @@ -13,7 +30,3 @@ demo

# Users Environment Variables
.lock-wscript
yarn.lock
.vscode


10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
language: node_js
node_js:
- "4"
- "5"
- "stable"
sudo: false
script: "gulp coverage"
after_success:
- npm install -g codeclimate-test-reporter
- codeclimate-test-reporter < coverage/lcov.info
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### [0.0.1](https://github.com/taburetkin/marionette.yat/releases/tag/v0.0.1)

- The first release
80 changes: 80 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# marionette.yat

[![Join the chat at https://gitter.im/marionette-yat/Lobby](https://badges.gitter.im/marionette-yat/Lobby.svg)](https://gitter.im/marionette-yat/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

# deprecated. check out v2

The goal of Marionette Yet Another Toolkit is
* allow to make things via mixins.
* extend default functionality with some useful things

Simple App with pages, modals*, popovers*, and common ui*.

marked with asterisk is not yet implemented.


## Examples
* [Page and PageManager](https://codepen.io/dimatabu/full/opGPoQ) - simple application with pages.
* [sort CollectionView by drag'n'drop](https://codepen.io/dimatabu/pen/JMaZXP)

## marionette.yat content
* [behaviors](./src/behaviors)
* [behavior](/docs/behaviors/behavior.md)
* [draggable](/docs/behaviors/draggable.md)
* droppable
* [dynamic-class](/docs/behaviors/dynamic-class.md)
* [form-to-hash](/docs/behaviors/form-to-hash.md)
* [functions](./src/functions)
* [common](./src/functions/common)
* [flatten-unflatten](./src/functions/common/flatten-unflatten)
* [flatten-object](/docs/functions/common/flatten-unflatten/flatten-object.md)
* [unflatten-object](/docs/functions/common/flatten-unflatten/unflatten-object.md)
* [set-get-by-path](./src/functions/common/set-get-by-path)
* [get-by-path](/docs/functions/common/set-get-by-path/get-by-path.md)
* [set-by-path](/docs/functions/common/set-get-by-path/set-by-path.md)
* [get-label](/docs/functions/common/get-label.md)
* [get-name](/docs/functions/common/get-name.md)
* [get-value](/docs/functions/common/get-value.md)
* is-view
* [unwrap](/docs/functions/common/unwrap.md)
* [wrap](/docs/functions/common/wrap.md)
* [view](./src/functions/view)
* [compare-ab](/docs/functions/view/compare-ab.md)
* [view-comparator](/docs/functions/view/view-comparator.md)
* [helpers](./src/helpers)
* [isKnownCtor](/docs/helpers/isKnownCtor.md)
* [mix](/docs/helpers/mix.md)
* [mixins](./src/mixins)
* [childrenable](/docs/mixins/childrenable.md)
* [get-name-label](/docs/mixins/get-name-label.md)
* [get-option-property](/docs/mixins/get-option-property.md)
* global-template-context
* [radioable](/docs/mixins/radioable.md)
* [startable](/docs/mixins/startable.md)
* [stateable](/docs/mixins/stateable.md)
* [models](./src/models)
* collection
* link
* model
* [singletons](./src/singletons)
* [modals](./src/singletons/modals)
* config
* modalView
* identity
* template-context
* [YatApp](/docs/YatApp.md)
* YatCollectionGroups
* YatCollectionView
* YatConfig
* [YatError](/docs/YatError.md)
* [YatObject](/docs/YatObject.md)
* [YatPage](/docs/YatPage.md)
* [YatPageManager](/docs/YatPageManager.md)
* [YatRouter](/docs/YatRouter.md)
* YatView

[![Travis build status](http://img.shields.io/travis/taburetkin/marionette.yat.svg?style=flat)](https://travis-ci.org/taburetkin/marionette.yat)
[![Code Climate](https://codeclimate.com/github/taburetkin/marionette.yat/badges/gpa.svg)](https://codeclimate.com/github/taburetkin/marionette.yat)
[![Test Coverage](https://codeclimate.com/github/taburetkin/marionette.yat/badges/coverage.svg)](https://codeclimate.com/github/taburetkin/marionette.yat)
[![Dependency Status](https://david-dm.org/taburetkin/marionette.yat.svg)](https://david-dm.org/taburetkin/marionette.yat)
[![devDependency Status](https://david-dm.org/taburetkin/marionette.yat/dev-status.svg)](https://david-dm.org/taburetkin/marionette.yat#info=devDependencies)
Loading

0 comments on commit efe41a7

Please sign in to comment.