Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"presets": ["es2015"]
"presets": [
"@babel/preset-env"
]
}
55 changes: 0 additions & 55 deletions .eslintrc

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
.DS_Store
dist
.vscode
2 changes: 1 addition & 1 deletion .jsdoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"destination": "docs",
"readme": "README.md",
"tutorials": "tutorials",
"template": "node_modules/minami"
"template": "templates/default"
},
"templates": {
"cleverLinks": true,
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.16.0
25 changes: 13 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,43 +12,44 @@ Lateralus is built upon Backbone, Lodash, jQuery, and Mustache.

The standard build of Lateralus does not have its dependencies baked, so you must provide them at runtime. Lateralus expects and is tested with:

* [Backbone](http://backbonejs.org/) 1.3.3
* [lodash-compat](https://www.npmjs.com/package/lodash-compat) 3.10.2
* [jQuery](http://jquery.com/) 1.12.4
* [Mustache](https://github.com/janl/mustache.js/) 0.8.2
* [Backbone](http://backbonejs.org/) 1.6.0
* [lodash-compat](https://www.npmjs.com/package/lodash-compat) 3.10.2
* [jQuery](http://jquery.com/) 3.7.1
* [Mustache](https://github.com/janl/mustache.js/) 4.2.0

## Installation

To install Lateralus into an existing app:

````
````shell
npm install --save lateralus
````

## Running tests

You can run the Lateralus unit tests both in your browser as well as in a command line environment. To run the tests in your browser:

```
```shell
npm run start
```

And then navigate to http://127.0.0.1:8080/test/.

To run them at the command line:

```
```shell
npm test
```

## Publishing new versions

Once things are ready, you should use `npm version`.
This will:
- change the version in the `package.json` file.
- build the documentation (with the new version).
- commit the new documentation
- tag the new version
- push to the repo.

* change the version in the `package.json` file.
* build the documentation (with the new version).
* commit the new documentation
* tag the new version
* push to the repo.

Once this is done, Travis will publish the change to NPM.
190 changes: 95 additions & 95 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,135 +1,135 @@
# 1.0.0
## 1.0.0

* Upgrade to jQuery to 1.12.4, Backbone to 1.3.3, and drop Underscore for Lodash
* Drop Grunt for npm scripts
* Drop Bower for npm
* Frop YUIDoc for JSDoc
* Drop PhantomJS test runner infrastructure for mocha CLI
* Drop RequireJS build tool for Webpack
* Drop AMD module format for ES6 (with UMD wrapped build artifacts)
* Rename scripts/ to src/
* Untrack dist from source control
* Convert to comma-last formatting
* Upgrade to jQuery to 1.12.4, Backbone to 1.3.3, and drop Underscore for Lodash
* Drop Grunt for npm scripts
* Drop Bower for npm
* Frop YUIDoc for JSDoc
* Drop PhantomJS test runner infrastructure for mocha CLI
* Drop RequireJS build tool for Webpack
* Drop AMD module format for ES6 (with UMD wrapped build artifacts)
* Rename scripts/ to src/
* Untrack dist from source control
* Convert to comma-last formatting

# 0.9.1
## 0.9.1

* Add support for Lodash 3.10.1
* Add support for Lodash 3.10.1

# 0.9.0
## 0.9.0

* Add memory management utilities:
* Lateralus.Component.Model#destroy
* Lateralus.Component.Model#dispose
* Lateralus.Component.Collection#remove
* Add memory management utilities:
* Lateralus.Component.Model#destroy
* Lateralus.Component.Model#dispose
* Lateralus.Component.Collection#remove

# 0.8.0
## 0.8.0

* Implement provide, collect and collectOne.
* Implement provide, collect and collectOne.

# 0.7.1
## 0.7.1

* Fix issue around inadvertently modifying Lateralus core prototypes.
* Fix issue around inadvertently modifying Lateralus core prototypes.

# 0.7.0
## 0.7.0

* Add capability to use a custom Lateralus.Model subclass.
* Add capability to use a custom Lateralus.Model subclass.

# 0.6.0
## 0.6.0

* Add mixins.amplify.
* Add Lateralus.prototype.dispose.
* Lateralus.Component#dispose triggers "beforeDispose" event.
* Extend Lateralus.Component.Model from Backbone.Model, not Lateralus.Model.
* Bug fixes.
* Add mixins.amplify.
* Add Lateralus.prototype.dispose.
* Lateralus.Component#dispose triggers "beforeDispose" event.
* Extend Lateralus.Component.Model from Backbone.Model, not Lateralus.Model.
* Bug fixes.

# 0.5.0
## 0.5.0

* Add Lateralus.Router.
* Set up testing infrastructure and some tests/
* Prevent redundant global model change events.
* Add Lateralus.Router.
* Set up testing infrastructure and some tests/
* Prevent redundant global model change events.

# 0.4.0
## 0.4.0

* Emit events for all Lateralus.Model attribute changes.
* Add modelEvents map support to delegateLateralusEvents.
* Expose LateralusModel as Lateralus.Model.
* Add globalRenderData map.
* Add globalPartials map.
* Make generator-lateralus configurable.
* Drop @protected JSDoc annotation from most members that have it.
* Emit events for all Lateralus.Model attribute changes.
* Add modelEvents map support to delegateLateralusEvents.
* Expose LateralusModel as Lateralus.Model.
* Add globalRenderData map.
* Add globalPartials map.
* Make generator-lateralus configurable.
* Drop @protected JSDoc annotation from most members that have it.

# 0.3.1
## 0.3.1

* Add missing jQuery reference.
* Add missing jQuery reference.

# 0.3.0
## 0.3.0

* Improve generator-lateralus. Added Grunt tasks:
* grunt-gh-pages
* grunt-bump
* grunt-rev
* Move "mixin" method to the mixins object.
* Add support for templatePartials map.
* Improve generator-lateralus. Added Grunt tasks:
* grunt-gh-pages
* grunt-bump
* grunt-rev
* Move "mixin" method to the mixins object.
* Add support for templatePartials map.

# 0.2.0
## 0.2.0

* Convert Component#delegateEvents to mixins.delegateLateralusEvents.
* Remove Component.events map support.
* Add mixin.initModel and mixin.initCollection.
* Add Component.Collection.
* Add Component.prototype.dispose.
* Add Component.View deferredInitialize hook.
* Convert Component#delegateEvents to mixins.delegateLateralusEvents.
* Remove Component.events map support.
* Add mixin.initModel and mixin.initCollection.
* Add Component.Collection.
* Add Component.prototype.dispose.
* Add Component.View deferredInitialize hook.

# 0.1.0
## 0.1.0

* Consolidate ComponentModel and LateralusModel.
* Properly mix in mixins module to all other modules.
* Fix build process.
* Remove _super.
* Consolidate ComponentModel and LateralusModel.
* Properly mix in mixins module to all other modules.
* Fix build process.
* Remove _super.

# 0.0.7
## 0.0.7

* Don't attach View constructor classnames for subviews.
* Deprecate _super.
* Add Component.prototype.delegateEvents, and events and lateralusEvents
maps.
* Add opt_base parameter to _super.
* Introduce Lateralus.Model.
* Don't attach View constructor classnames for subviews.
* Deprecate \_super.
* Add Component.prototype.delegateEvents, and events and lateralusEvents
maps.
* Add opt_base parameter to \_super.
* Introduce Lateralus.Model.

# 0.0.6
## 0.0.6

* Introduce Lateralus.Component.Model.
* Add support for providing a component-level Model constructor to Views.
* Introduce Lateralus.Component.Model.
* Add support for providing a component-level Model constructor to Views.

# 0.0.5
## 0.0.5

* Adds listenFor mixin method.
* Makes Lateralus#toString @final.
* Make Lateralus.Component.View#getTemplateRenderData return model data.
* Adds listenFor mixin method.
* Makes Lateralus#toString @final.
* Make Lateralus.Component.View#getTemplateRenderData return model data.

# 0.0.4
## 0.0.4

* Adds displayName to beget constructor.
* generator-lateralus sets up ContainerComponent.
* Adds displayName to beget constructor.
* generator-lateralus sets up ContainerComponent.

# 0.0.3
## 0.0.3

* Don't append subcomponents when they are added.
* Get rid of the $appendTo option parameter for addComponent.
* If a Lateralus.Component.View has a className defined on the prototype,
attach it to $el in the initialize method.
* generator-lateralus creates styles/main.sass for new components.
* Add Lateralus#(log|warn|error) methods.
* Don't append subcomponents when they are added.
* Get rid of the $appendTo option parameter for addComponent.
* If a Lateralus.Component.View has a className defined on the prototype,
attach it to $el in the initialize method.
* generator-lateralus creates styles/main.sass for new components.
* Add Lateralus#(log|warn|error) methods.

# 0.0.2
## 0.0.2

* Lateralus.Component no longer requires a View parameter.
* All protoProps properties are mixed into the Lateralus.Component subclass
by Lateralus.Component.extend.
* Adds options parameter to Lateralus.Component constructor and passes it to
initialize function.
* Adds build tasks and provides compiled binaries in dist/.
* Lateralus.Component no longer requires a View parameter.
* All protoProps properties are mixed into the Lateralus.Component subclass
by Lateralus.Component.extend.
* Adds options parameter to Lateralus.Component constructor and passes it to
initialize function.
* Adds build tasks and provides compiled binaries in dist/.

# 0.0.1
## 0.0.1

Initial open source release.
Loading