Skip to content
Permalink
Browse files

Merge bf941c8 into d4cd649

  • Loading branch information
ryank311 committed Nov 13, 2017
2 parents d4cd649 + bf941c8 commit 6239c64e57769c270547e7b387b17442dad9eda9
Showing with 7,036 additions and 2,545 deletions.
  1. +1 −1 .babelrc
  2. +17 −6 .eslintrc
  3. +4 −0 CHANGELOG.md
  4. +1 −1 README.md
  5. +1 −1 bower.json
  6. +6 −6 dist.config.js
  7. +6 −6 dist.min.config.js
  8. +1,693 −1,820 dist/alt.js
  9. +1 −1 dist/alt.min.js
  10. +34 −26 package.json
  11. +38 −29 scripts/this-dispatch-to-return.js
  12. +4 −4 src/actions/index.js
  13. +4 −2 src/functions.js
  14. +18 −23 src/index.js
  15. +10 −11 src/store/AltStore.js
  16. +12 −17 src/store/StoreMixin.js
  17. +15 −20 src/store/index.js
  18. +13 −14 src/utils/AltUtils.js
  19. +6 −6 src/utils/StateFunctions.js
  20. +7 −7 test/actions-dump-test.js
  21. +8 −8 test/alt-config-object.js
  22. +5 −5 test/async-action-test.js
  23. +22 −22 test/async-test.js
  24. +186 −183 test/babel/index.js
  25. +42 −34 test/batching-test.js
  26. +9 −10 test/before-and-after-test.js
  27. +15 −15 test/bound-listeners-test.js
  28. +4 −4 test/browser/index.js
  29. +4 −5 test/config-set-get-state-test.js
  30. +4 −4 test/debug-alt-test.js
  31. +14 −14 test/es3-module-pattern.js
  32. +9 −10 test/failed-dispatch-test.js
  33. +11 −11 test/functional-test.js
  34. +13 −13 test/functions-test.js
  35. +2 −3 test/helpers/SaaM.js
  36. +1 −0 test/helpers/alt.js
  37. +124 −122 test/index.js
  38. +25 −26 test/setting-state.js
  39. +1 −2 test/store-as-a-module.js
  40. +5 −5 test/store-model-test.js
  41. +5 −11 test/store-transforms-test.js
  42. +6 −6 test/stores-get-alt.js
  43. +8 −9 test/stores-with-colliding-names.js
  44. +3 −11 test/value-stores-test.js
  45. +5 −5 web/scripts/createIndex.js
  46. +4 −3 web/scripts/search.js
  47. +2 −3 web/webpack.config.js
  48. +4,608 −0 yarn.lock
@@ -1,5 +1,5 @@
{
"presets": ["airbnb", "stage-0"],
"presets": ["env", "babel-preset-react", "babel-preset-stage-0"],
"plugins": [
"add-module-exports",
"transform-class-properties",
@@ -5,12 +5,23 @@
"browser": true,
"es6": true
},
"parser": "babel-eslint",
"ecmaFeatures": {
"modules": true,
"jsx": true
},
"rules": {
"comma-dangle": [2, "never"],
"semi": [2, "never"],
}
"arrow-body-style": [2, "always"],
"class-methods-use-this": 0,
"no-console": 0,
"no-param-reassign": 0,
"func-names": 0,
"no-restricted-syntax": 0,
"no-plusplus": 0,
"no-continue": 0,
"no-prototype-builtins": 0,
"prefer-rest-params": 0,
"no-unused-vars": [2, { "args": "none" }],
"no-underscore-dangle": 0,
"react/jsx-filename-extension": 0,
"react/forbid-prop-types": 0,
},
"parser": "babel-eslint"
}
@@ -1,5 +1,9 @@
# Changelog

## 1.0.0

* Upgrade babel, webpack, react versions to latest

## 0.18.6

* Fixes inheritance for actions #678
@@ -67,7 +67,7 @@ class TodoStore {
export default alt.createStore(TodoStore, 'TodoStore');
```

View
View

Using the [connectToStores](https://github.com/altjs/utils/blob/master/src/connectToStores.js) util from [alt-utils](https://github.com/altjs/utils) package (`npm install alt-utils`)

@@ -8,7 +8,7 @@
"description": "Alt is a flux implementation that is small (~4.3kb & 400 LOC), well tested, terse, insanely flexible, and forward thinking.",
"main": "dist/alt.js",
"devDependencies": {
"babel": "^4.0.1",
"babel": "^6.25.0",
"coveralls": "^2.11.2",
"istanbul": "^0.3.5",
"mocha": "^2.1.0"
@@ -1,19 +1,19 @@
module.exports = {
context: __dirname + '/src',
context: `${__dirname}/src`,
entry: {
'alt': ['./index.js'],
alt: ['./index.js']
},
output: {
path: __dirname + '/dist',
path: `${__dirname}/dist`,
filename: '[name].js',
library: 'Alt',
libraryTarget: 'umd'
},
module: {
loaders: [{
test: /\.js$/,
loader: 'babel',
loader: 'babel-loader',
exclude: /node_modules/
}]
},
};
}
}
@@ -1,19 +1,19 @@
module.exports = {
context: __dirname + '/src',
context: `${__dirname}/src`,
entry: {
'alt': ['./index.js'],
alt: ['./index.js']
},
output: {
path: __dirname + '/dist',
path: `${__dirname}/dist`,
filename: '[name].min.js',
library: 'Alt',
libraryTarget: 'umd'
},
module: {
loaders: [{
test: /\.js$/,
loader: 'babel',
loader: 'babel-loader',
exclude: /node_modules/
}]
},
};
}
}

0 comments on commit 6239c64

Please sign in to comment.
You can’t perform that action at this time.