diff --git a/.travis.yml b/.travis.yml index 568be36..0493b3f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,7 @@ deploy: I+oNEP2jfHBxU8FQ4k45YtJrLLrQqPiekV5NxoMEAgj5uelulVVipWz5qG+h/eXnscOkt0OUrsHf6T5IC4uKrd9RwM5R5txavNETFElTHaBjqJJpQiv8quTUrOjsnSQqFnjG7BL/gxWeMVSmUSXThLxCov6QFIjJSTb1Jk26q108gbCNk8kjP667RejUkFeqCXzsFmf8JTSwzmHo7M6ZuRH1/HRl4/Gx9yZCeMAzWvyTysKHqigJbLGmNBZRmbMJQJTvkqeO6J5RGjZ7TBhJ2IT9I2F9YMrjEUAN/71MgUk8ftgDs5GJpSECJIqu5cjeASXgNmlMQ6801UNiYq5X1yJOOxCw5VDwSctrOjUSQOpGnfzetjS6viDAjAbqHTNBdzQuyeLec0iXCB7GGE9qVrxlmhCm/g6bESokWIsMCj+Zz3IgpjUqP/8nHscEWkCk2I5YVsDN5TzEQL4SP1+Fi78f4tWMjwPCC8do2ZcVSB83ez69GDQh/r6Hax0KrGa+1aNdu4DP9BvFp4/cnEBwLuMMVNe0i5zGziSAxHslzo9VQc64kcYmOlAaTu82gSM+cC5+nznbh+8oihUjNLtaTlharTBOFFxs/7v35CW29YP82GzvzuiOqAqWNiZoa1EVmXurNNfcr2ToCEUKD894LqU5ItsTvzFO2jw4mwJRXFE= 'on': tags: true - repo: canjs/can-stache-define-element + repo: canjs/can-stache-element skip_cleanup: true dist: xenial services: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0cc9e77..b84ad2e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,4 +1,4 @@ -# Contributing to can-stache-define-element +# Contributing to can-stache-element Check out the [contribution guide on CanJS.com](https://canjs.com/doc/guides/contribute.html) for information on: @@ -13,7 +13,7 @@ The rest of this guide has information that’s specific to this repository. ## Developing Locally -This section will walk you through setting up the [repository](https://github.com/canjs/can-stache-define-element) on your computer. +This section will walk you through setting up the [repository](https://github.com/canjs/can-stache-element) on your computer. ### Signing up for GitHub @@ -23,14 +23,14 @@ If you don’t already have a GitHub account, you’ll need to [create a new one A “fork” is a copy of a repository in your personal GitHub account. “Cloning” is the process of getting the repository’s source code on your computer. -GitHub has a guide for [forking a repo](https://help.github.com/articles/fork-a-repo/). To fork can-stache-define-element, you can start by going to its [fork page](https://github.com/canjs/can-stache-define-element/fork). +GitHub has a guide for [forking a repo](https://help.github.com/articles/fork-a-repo/). To fork can-stache-element, you can start by going to its [fork page](https://github.com/canjs/can-stache-element/fork). Next, you’ll want to clone the repo. [GitHub’s cloning guide](https://help.github.com/articles/cloning-a-repository/) explains how to do this on Linux, Mac, or Windows. GitHub’s guide will [instruct you](https://help.github.com/articles/fork-a-repo/#step-2-create-a-local-clone-of-your-fork) to clone it with a command like: ```shell -git clone https://github.com/YOUR-USERNAME/can-stache-define-element +git clone https://github.com/YOUR-USERNAME/can-stache-element ``` Make sure you replace `YOUR-USERNAME` with your GitHub username. @@ -44,7 +44,7 @@ First, make sure you’ve [installed Node.js and npm](https://docs.npmjs.com/get If you just cloned the repo from the command line, you’ll want to switch to the folder with your clone: ```shell -cd can-stache-define-element +cd can-stache-element ``` Next, install the project’s dependencies with npm: diff --git a/docs/can-stache-define-element.md b/docs/can-stache-element.md similarity index 59% rename from docs/can-stache-define-element.md rename to docs/can-stache-element.md index 889232b..11db27c 100644 --- a/docs/can-stache-define-element.md +++ b/docs/can-stache-element.md @@ -1,38 +1,38 @@ -@module {function} can-stache-define-element +@module {function} can-stache-element @parent can-views @collection can-ecosystem -@group can-stache-define-element/static 0 static -@group can-stache-define-element/lifecycle-methods 1 lifecycle methods -@group can-stache-define-element/lifecycle-hooks 2 lifecycle hooks -@alias can.StacheDefineElement +@group can-stache-element/static 0 static +@group can-stache-element/lifecycle-methods 1 lifecycle methods +@group can-stache-element/lifecycle-hooks 2 lifecycle hooks +@alias can.StacheElement @package ../package.json @outline 2 -@description Create a custom element with [can-define-object DefineObject]-like properties and [can-stache stache views]. +@description Create a custom element with [can-define-object ObservableObject]-like properties and [can-stache stache views]. -@signature `StacheDefineElement` +@signature `StacheElement` - `can-stache-define-element` exports a `StacheDefineElement` class used to define custom elements. + `can-stache-element` exports a `StacheElement` class used to define custom elements. - Extend `StacheDefineElement` with a: + Extend `StacheElement` with a: - `static view` - A [can-stache stache] view. - - `static define` - [can-define-object DefineObject]-like property definitions. + - `static props` - [can-define-object ObservableObject]-like property definitions. - getters, setters, and methods. - - lifecycle hooks - [can-stache-define-element/lifecycle-hooks.connected] and [can-stache-define-element/lifecycle-hooks.disconnected]. + - lifecycle hooks - [can-stache-element/lifecycle-hooks.connected] and [can-stache-element/lifecycle-hooks.disconnected]. The following defines a `` element: ```html @@ -88,15 +88,15 @@ This custom element can be used by putting a `` tag in an H ### Defining an element's view -StacheDefineElement uses [can-stache] to render live-bound HTML as the element's innerHTML. +StacheElement uses [can-stache] to render live-bound HTML as the element's innerHTML. -To create a [can-stache] view for the element, add a [can-stache-define-element/static.view static view] property to the class: +To create a [can-stache] view for the element, add a [can-stache-element/static.view static view] property to the class: ```html
diff --git a/test/test.js b/test/test.js index efb4764..e7d0941 100644 --- a/test/test.js +++ b/test/test.js @@ -1,5 +1,5 @@ -import "../src/can-stache-define-element-test"; -import "../src/mixin-define-test"; +import "../src/can-stache-element-test"; +import "../src/mixin-props-test"; import "../src/mixin-lifecycle-methods-test"; import "../src/mixin-stache-view-test"; import "../src/mixin-viewmodel-symbol-test";