Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert to NPM module #70

Merged
merged 117 commits into from
Jun 16, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
78493a9
Remove window prefix from Brainstem namespace
jrolfs Feb 26, 2016
4f4070f
Run conversion script in its current state
jrolfs Feb 26, 2016
4e51b30
Clean up and manually fix some CommonJS stuff
jrolfs Feb 26, 2016
f01d122
Whitespace fixes
jrolfs Feb 26, 2016
08d7166
Remove unused brainstem inflections
jrolfs Feb 26, 2016
ab9e43c
Move source to ... src
jrolfs Feb 26, 2016
f3b8d1d
Add node_modules to gitignore
jrolfs Feb 26, 2016
3df28a5
Remove Ruby/Sprockets pipeline build system
Mar 18, 2016
022d969
Remove 'brainstem-' prefix from top level module filenames
Mar 18, 2016
5068e35
Update gitignore to ignore specific /lib output instead of /build
Mar 18, 2016
e2c2ed3
Add tags to gitignore
Mar 18, 2016
546a920
Initial attempt to get Karma running specs
Mar 19, 2016
61efc48
Add logs to gitignore
jrolfs Mar 20, 2016
b604f4e
Resolve runtime errors in test suite
jrolfs Mar 22, 2016
8a48143
Add spec reporter
jrolfs Mar 23, 2016
dc08e45
Fix default model override in collection
jrolfs Mar 23, 2016
613ee52
Fix circular dependency in Expectation
jrolfs Mar 23, 2016
4760096
Re-add gem library structure
jrolfs Mar 25, 2016
c475a7a
Update Karma server to pass options to constructor
jrolfs Mar 25, 2016
531b143
Update build output, add shim to gem output
jrolfs Mar 25, 2016
a148170
Use arrow functions because why not
jrolfs Mar 25, 2016
a29e39d
Point NPM prepublish script to correct task
jrolfs Mar 25, 2016
0c539cb
Handle gulp task failures more gracefully
jrolfs Mar 25, 2016
7f53ae3
Update remaining Jasmine spy assertions to use 2.0 syntax
jrolfs Mar 25, 2016
afce238
Fix default model for collection
jrolfs Mar 25, 2016
e3d32cb
Fix various testing contexts
jrolfs Mar 25, 2016
f7787ab
Use Brainstem version of Bacbkone.sync
jrolfs Mar 25, 2016
0ff367a
Singularize model expectation collection name
jrolfs Mar 25, 2016
c7a87e9
Handle single model when getting IDs for associations
jrolfs Mar 25, 2016
142b5bd
Respond to all fake server requests
jrolfs Mar 25, 2016
74f3ab4
Add some whitespace in Storage Manager spec
jrolfs Mar 25, 2016
6aa532c
Add test script entry to package
jrolfs Mar 25, 2016
06fd546
Update Travis CI configuration for node build
jrolfs Mar 25, 2016
ad97f29
Switch to Node 5.1.1
jrolfs Mar 25, 2016
27ae579
Update Travis CI configuration to include clang
jrolfs Mar 25, 2016
74b6047
Add Firefox launcher
jrolfs Mar 25, 2016
2409f13
Pull Backbone-Factory fork without SSH
jrolfs Mar 25, 2016
bf7d117
Pull Backbone-Factory fork with HTTPS
jrolfs Mar 25, 2016
790c585
Fix Backbone require directive in Collection spec
jrolfs Mar 25, 2016
4c2708e
Merge branch 'master' into common-js
jrolfs Mar 25, 2016
8c68e70
Remove Sinon fakeServer logs from console output
jrolfs Mar 25, 2016
8f520c6
Add repository to package
jrolfs Mar 25, 2016
a581b66
Add publish-gem task that automatically versions gem
jrolfs Mar 25, 2016
e46ad2a
Gem release 0.3.1
jrolfs Mar 25, 2016
1a8e677
Remove gem development dependencies
jrolfs Mar 25, 2016
2867221
Fix gem asset path
jrolfs Mar 25, 2016
a7a34df
Initial pass to update README
jrolfs Mar 26, 2016
b3a5a38
Fix some typos in code examples in README
jrolfs Mar 26, 2016
dd8fd99
Remove todo notes
jrolfs Mar 26, 2016
685ac0d
Add license to package
jrolfs Mar 26, 2016
6ab15bc
Flesh out remaining README examples
jrolfs Mar 27, 2016
24cbb85
Fix Gitter and build badges
jrolfs Mar 27, 2016
b82215a
Update and add a few badges to README
jrolfs Mar 27, 2016
e654077
0.4.0
jrolfs Mar 27, 2016
5e92f78
Move description to top of README
jrolfs Mar 27, 2016
10154d1
0.4.1-0
jrolfs Mar 27, 2016
6c40fb8
Move brainste.js description to top of README
jrolfs Mar 27, 2016
f0c2bde
0.5.0-0
jrolfs Mar 27, 2016
310fae0
4.0.0-2
jrolfs Mar 27, 2016
4c63451
4.0.0-1
jrolfs Mar 27, 2016
bc05431
Remove bold formattion from README description
jrolfs Mar 27, 2016
34e3f27
4.0.1-0
jrolfs Mar 27, 2016
92f7196
4.0.2-0
jrolfs Mar 27, 2016
a0f4bc1
4.0.0-2
jrolfs Mar 27, 2016
630fe96
Remove all links from README description
jrolfs Mar 27, 2016
45690f6
Remove horizontal rules from README
jrolfs Mar 27, 2016
46299fd
0.4.0-2
jrolfs Mar 28, 2016
16a7d3b
0.4.0
jrolfs Mar 29, 2016
d80ede5
0.4.1
jrolfs Mar 29, 2016
81689b1
Publish entire lib directory
jrolfs Mar 29, 2016
fb0f878
0.4.2
jrolfs Mar 29, 2016
1cda7c3
Update .gitignore, add .npmignore
jrolfs Mar 29, 2016
e29ffc8
Revert "Publish entire lib directory"
jrolfs Mar 29, 2016
8ca587b
0.4.3
jrolfs Mar 29, 2016
97e6e4c
Move inflection to dependencies from development dependencies
jrolfs Mar 29, 2016
dbca76d
0.4.4
jrolfs Mar 29, 2016
185c460
Fix brainstem-js require statements in README
jrolfs Mar 29, 2016
63afa08
0.4.5-0
jrolfs Mar 29, 2016
44178ad
Fix vanilla JS StorageManager example
jrolfs Mar 29, 2016
16d8c52
0.4.5-1
jrolfs Mar 29, 2016
6c78d88
Remove namespace conversion script
jrolfs Mar 30, 2016
80bc393
Condense package variable imports using destructuring
jrolfs Apr 15, 2016
3262840
Fix 'indecate' typo in readme
jrolfs Apr 15, 2016
771184b
Fix inline comments in association readme examples
jrolfs Apr 15, 2016
834f49a
Fix some working in readme
jrolfs Apr 15, 2016
dcafc4a
0.4.5-2
jrolfs Apr 15, 2016
9e04ca4
Add PhantomJS Karma launcher
jrolfs Apr 15, 2016
3e98a02
Run tests in PhantomJS as well on CI
jrolfs Apr 15, 2016
90b6c85
More readme fixes
jrolfs Apr 15, 2016
f0af613
Remove extra newline from Gulpfile
jrolfs Apr 15, 2016
6aea3ac
Fix bundler code example
jrolfs Apr 15, 2016
e3eb446
Pin Sinon dependency to 1.17.3
May 10, 2016
f29d164
Consolidate Karma configuration
May 10, 2016
1559d10
Add optional 'grep' command line argument for tests
May 10, 2016
915f4cc
Pin non development dependencies to exact version
May 11, 2016
39c300d
Pin Backbone dependency to minimum compatible version
jrolfs May 12, 2016
c26e20b
Pin jQuery dependency to minimum compatible version
jrolfs May 12, 2016
8b72dc7
Downgrade backbone to 1.1.2 for big maven compatibility
racerpeter Jun 3, 2016
c039c47
bump Brainstem version
racerpeter Jun 3, 2016
f34f384
update gem output
racerpeter Jun 3, 2016
55b8a30
remove clang dependency on llvm mirror
racerpeter Jun 3, 2016
d82f899
Merge pull request #80 from mavenlink/downgrade-backbone
jrolfs Jun 15, 2016
7c1738d
Pluralize name based to `stubModel` instead of modifying `ModelLoder.…
jrolfs Jun 15, 2016
b22e933
Update gem build
jrolfs Jun 15, 2016
4c3a907
Merge branch 'master' into common-js
jrolfs Jun 15, 2016
db50db5
Update gem build
jrolfs Jun 15, 2016
cecd208
Add sourcemap support to karma config
lambdatastic Jun 15, 2016
ce0d04a
Merge pull request #81 from mavenlink/add-sourcemaps-to-browserify
jrolfs Jun 15, 2016
ca5f965
Add tasks to download and cleanup coffeelint config file
jrolfs Jun 15, 2016
7a6fa59
Remove sourceMaps option from karma configuration
jrolfs Jun 15, 2016
5be925c
Add coffeelint task
Jun 16, 2016
3c2fb4c
Add linting to CI (only fail on errors for now)
Jun 16, 2016
d19c73b
Merge branch 'master' into common-js
Jun 16, 2016
3c1741a
Update built gem
Jun 16, 2016
3d3d07d
Fix typo in StorageManager readme example
Jun 16, 2016
80efcd5
Check for StorageManager cache existence in Model constructor
Jun 16, 2016
858aa79
Update built gem output
Jun 16, 2016
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
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["es2015", "stage-0"]
}
96 changes: 96 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Realized the only BabelJS-flavored file we have is the gulp file. Are we planning on switching over the source files to ES6? If not, this does seem a little overkill (even though it is nice) since the majority of our source is CoffeeScript and it be nice to cut down on the dependencies that we need to pull in.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah ultimately would like to switch to ES6... this is a subtle motivator :P

"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"es6": true
},
"ecmaFeatures": {
"templateStrings": true,
},
"rules": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the interim, it would be nice (albeit counter to my point above) to pull in CoffeeLint to make that a requirement to pass before building our modules.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's on my checklist j just haven't put the checklist in the PR yet.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added to checklist in PR.

"strict": [0],
"brace-style": [1, "1tbs", {"allowSingleLine": true}],
"camelcase": 1,
"comma-dangle": [1, "never"],
"comma-spacing": [1, {"before": false, "after": true}],
"comma-style": [1, "last"],
"consistent-this": [1, "self"],
"curly": [2, "multi-line"],
"eqeqeq": [2, "allow-null"],
"eol-last": 1,
"guard-for-in": 0,
"indent": [2, 2],
"key-spacing": 0,
"new-cap": [1, {"capIsNew": false, "newIsCap": true}],
"new-parens": 0,
"no-bitwise": 0,
"no-cond-assign": 1,
"no-console": 1,
"no-constant-condition": 1,
"no-delete-var": 2,
"no-debugger": 1,
"no-dupe-keys": 1,
"no-duplicate-case": 1,
"no-empty-character-class": 1,
"no-eval": 1,
"no-ex-assign": 1,
"no-extend-native": 1,
"no-floating-decimal": 1,
"no-func-assign": 1,
"no-implied-eval": 1,
"no-inner-declarations": 1,
"no-invalid-regexp": 1,
"no-irregular-whitespace": 1,
"no-iterator": 1,
"no-labels": 1,
"no-lonely-if": 1,
"no-loop-func": 1,
"no-mixed-spaces-and-tabs": 1,
"no-native-reassign": 2,
"no-negated-in-lhs": 1,
"no-new-func": 1,
"no-new-object": 1,
"no-new-wrappers": 2,
"no-obj-calls": 1,
"no-octal": 1,
"no-plusplus": 0,
"no-proto": 2,
"no-redeclare": 1,
"no-return-assign": 1,
"no-self-compare": 1,
"no-sequences": 1,
"no-shadow": 0,
"no-spaced-func": 1,
"no-sparse-arrays": 1,
"no-throw-literal": 1,
"no-trailing-spaces": 1,
"no-unused-vars": [1, {"vars": "all", "args": "none"}],
"no-undef": 1,
"no-undefined": 2,
"no-undef-init": 1,
"no-underscore-dangle": 0,
"no-unreachable": 1,
"no-use-before-define": [1, "nofunc"],
"no-warning-comments": [0, {"terms": ["todo", "fixme"]}],
"no-extra-parens": 1,
"quotes": [1, "single", "avoid-escape"],
"quote-props": [0, "as-needed"],
"radix": 1,
"semi": [1, "always"],
"semi-spacing": [1, {"before": false, "after": true}],
"keyword-spacing": [2, {"before": true, "after": true}],
"space-before-blocks": [1, "always"],
"space-infix-ops": 1,
"space-in-parens": [1, "never"],
"space-unary-ops": [1, {"words": true, "nonwords": false}],
"use-isnan": 1,
"valid-typeof": 1,
"wrap-iife": [1, "inside"],
"yoda": 0,
"handle-callback-err": [1, "^(err|error)$"],
"no-mixed-requires": 1,
"no-new-require": 1,
"no-path-concat": 1
}
}
17 changes: 10 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
/.bundle/
/bin/
/build/
/dist/
/tmp/
/.idea/
projectFilesBackup
.bundle/
bin/
lib/**/*.js
!lib/*.rb
tmp/
.idea/
pkg
.DS_Store
node_modules/
tags
*.log
coffeelint.json
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/
1 change: 0 additions & 1 deletion .ruby-gemset

This file was deleted.

1 change: 0 additions & 1 deletion .ruby-version

This file was deleted.

18 changes: 9 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
sudo: false
language: ruby
rvm:
- 2.1.5

before_install: gem install bundler

git:
depth: 1
language: node_js
node_js:
- "5.1.1"
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
before_script:
- npm install -g gulp
script: gulp ci
79 changes: 0 additions & 79 deletions Assetfile

This file was deleted.

48 changes: 0 additions & 48 deletions Gemfile.lock

This file was deleted.

Loading