Skip to content
This repository was archived by the owner on Oct 29, 2019. It is now read-only.

Commit f5de5bd

Browse files
committed
Merge pull request #33 from reduct/development
Next release
2 parents 8b48466 + e5a619a commit f5de5bd

13 files changed

Lines changed: 455 additions & 656 deletions

.codeclimate.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ ratings:
77
exclude_paths:
88
- "Tests/**"
99
- "Dist/**"
10-
- "Build/**"
1110
- "CHANGELOG.md"
1211
- "package.json"
1312
- "README.md"

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
node_modules
2-
coverage.lcov
1+
# General ignores.
2+
node_modules/
3+
coverage/
4+
dist/

.travis.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
1+
sudo: false
12
language: node_js
2-
node_js:
3-
- "iojs"
4-
5-
notifications:
6-
email: false
7-
83
cache:
94
directories:
105
- node_modules
11-
6+
notifications:
7+
email: false
8+
node_js:
9+
- "stable"
1210
before_install:
13-
- '[ "${TRAVIS_NODE_VERSION}" != "0.8" ] || npm install -g npm@1.4.28'
14-
- npm install -g npm@latest
15-
- npm install -g codeclimate-test-reporter
16-
11+
- npm i -g npm@latest
12+
- npm i -g codeclimate-test-reporter
13+
before_script:
14+
- npm prune
15+
after_success:
16+
- npm run semantic-release
1717
after_script:
18-
- npm run reduct publish-coverage
18+
- codeclimate-test-reporter < coverage/lcov.info
19+
branches:
20+
except:
21+
- "/^v\\d+\\.\\d+\\.\\d+$/"

Dist/Assembler.js

Lines changed: 0 additions & 291 deletions
This file was deleted.

Dist/Assembler.min.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
> Parses a DOM Node for tags and executes the matching constructor on each element. This module embraces the practice of a 'Single Point of Entry'-Application(SPE).
55
6+
67
## Why?
78
Using a single point of entry reduces code and promotes maintainability. Instead of writing the following accross all of your sites/apps components:
89
```js
@@ -16,6 +17,7 @@ $('.myAwesomeApp').each(function(index, node) {
1617

1718
TL;DR: Use an assembler, to reduce duplicate code, enhance performance and reduce the dependence of selectors in your JS.
1819

20+
1921
## Install
2022
With npm, use the familiar syntax e.g.:
2123
```shell
@@ -27,7 +29,7 @@ once the Assembler package is installed, just require it in the main application
2729
var assembler = require('@reduct/assembler');
2830
```
2931

30-
This package also supports AMD/RequireJS, it is defined as `reduct.assembler`. Aren't using AMD/CommonJS? Just grab a [release](https://github.com/reduct/assembler/releases), include the `Dist/Assembler.min.js` and access the loader via the following global:
32+
This package also supports AMD/RequireJS. Aren't using AMD or CommonJS? Just grab a [release](https://github.com/reduct/assembler/releases), include the `Dist/Assembler.min.js` and access the assembler via the following global:
3133
```js
3234
var assembler = window.reduct.assembler;
3335
```
@@ -55,6 +57,7 @@ In your HTML:
5557
<div data-component="YetAnotherComponent"></div>
5658
```
5759

60+
5861
## API
5962

6063
### Factory
@@ -116,9 +119,11 @@ import AnotherComponent from 'another-component';
116119
app.registerAll({MyComponent, AnotherComponent});
117120
```
118121

122+
119123
## Contributing
120124
In lieu of a formal styleguide, take care to maintain the existing coding style.
121125

126+
122127
## License
123128
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
124129
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,

0 commit comments

Comments
 (0)