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

Use microstates library i.e. a new API #69

Closed
wants to merge 26 commits into from
Closed
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
f91298f
fix: start update
Jun 5, 2018
e7ea339
fix: run codemods
Jun 5, 2018
4abb602
fix: gut everything (mostly)
Jun 6, 2018
6f68d5a
feat: start state-for implementation
Jun 6, 2018
4703426
feat: Get a basic version working
Jun 7, 2018
a0f6d1a
fix: update readme to use new api in examples
Jun 7, 2018
3bbde3a
chore: tweak readme
Jun 7, 2018
af7cfb5
fix: remove unused deps
Jun 7, 2018
dcddd3b
feat: Add a service API
Jun 10, 2018
d0f988b
fix: use invoke with value or without
Jun 10, 2018
32f14f3
fix: update the readme for services
Jun 10, 2018
fe85e2a
fix: use published beta microstates
Jun 12, 2018
9748892
fix: don't pas anything as args if invoke `value` is `false`
Jun 12, 2018
2fa9863
fix(dummy): use state on the value
Jun 12, 2018
9438c53
chore(dummy): add a second component using the same type
Jun 12, 2018
0747079
Bumped dependencies and eliminated use of UMD
taras Jun 18, 2018
da4fb72
Works using es build
taras Jun 19, 2018
ab84083
Added for validation to test getters
taras Jun 19, 2018
05f45f7
Changed to use the new API
taras Jun 19, 2018
94ef7f7
Upgraded to microstates 0.8.0
taras Jun 20, 2018
4690f4a
Merge branch 'update' of github.com:knownasilya/ember-microstates int…
Jul 1, 2018
cfeecfa
fix: update to use a function that takes a microstate and creates a s…
Jul 1, 2018
548d6a3
fix: update migrostates dep
Aug 13, 2018
9d16c4e
fix: update to new version of microstates
Aug 13, 2018
0976aa8
fix: update embercli and deps
Sep 11, 2018
4f93e0c
fix: update tests a bit
Sep 12, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 0 additions & 4 deletions .bowerrc

This file was deleted.

1 change: 1 addition & 0 deletions .eslintignore
@@ -0,0 +1 @@
/blueprints/*/files/**/*.js
50 changes: 42 additions & 8 deletions .eslintrc.js
@@ -1,17 +1,51 @@
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 6,
ecmaVersion: 2017,
sourceType: 'module'
},
extends: 'eslint:recommended',
env: {
'browser': true
},
plugins: [
"prefer-let"
'ember'
],
extends: [
'eslint:recommended',
'plugin:ember/recommended'
],
env: {
browser: true
},
rules: {
"prefer-let/prefer-let": 2
}
},
overrides: [
// node files
{
files: [
'ember-cli-build.js',
'index.js',
'testem.js',
'blueprints/*/index.js',
'config/**/*.js',
'tests/dummy/config/**/*.js'
],
excludedFiles: [
'addon/**',
'addon-test-support/**',
'app/**',
'tests/dummy/app/**'
],
parserOptions: {
sourceType: 'script',
ecmaVersion: 2015
},
env: {
browser: false,
node: true
},
plugins: ['node'],
rules: Object.assign({}, require('eslint-plugin-node').configs.recommended.rules, {
// add your custom rules and overrides for node files here
})
}
]
};
10 changes: 8 additions & 2 deletions .gitignore
@@ -1,4 +1,4 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.
# See https://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
Expand All @@ -13,5 +13,11 @@
/connect.lock
/coverage/*
/libpeerconnection.log
npm-debug.log
npm-debug.log*
yarn-error.log
testem.log

# ember-try
.node_modules.ember-try/
bower.json.ember-try
package.json.ember-try
7 changes: 6 additions & 1 deletion .npmignore
Expand Up @@ -7,10 +7,15 @@
.bowerrc
.editorconfig
.ember-cli
.eslintrc.js
.gitignore
.jshintrc
.watchmanconfig
.travis.yml
bower.json
ember-cli-build.js
testem.js

# ember-try
.node_modules.ember-try/
bower.json.ember-try
package.json.ember-try
39 changes: 23 additions & 16 deletions .travis.yml
@@ -1,22 +1,34 @@
---
language: node_js
node_js:
# we recommend testing addons with the same minimum supported node version as Ember CLI
# so that your addon works for all apps
- "4"

sudo: false
dist: trusty

addons:
chrome: stable

cache:
directories:
- $HOME/.npm
- $HOME/.cache # includes bowers cache

env:
# we recommend testing LTS's and latest stable release (bonus points to beta/canary)
- EMBER_TRY_SCENARIO=ember-1.13
- EMBER_TRY_SCENARIO=ember-lts-2.4
- EMBER_TRY_SCENARIO=ember-release
- EMBER_TRY_SCENARIO=ember-beta
- EMBER_TRY_SCENARIO=ember-canary
global:
# See https://git.io/vdao3 for details.
- JOBS=1
matrix:
# we recommend new addons test the current and previous LTS
# as well as latest stable release (bonus points to beta/canary)
- EMBER_TRY_SCENARIO=ember-lts-2.12
- EMBER_TRY_SCENARIO=ember-lts-2.16
- EMBER_TRY_SCENARIO=ember-lts-2.18
- EMBER_TRY_SCENARIO=ember-release
- EMBER_TRY_SCENARIO=ember-beta
- EMBER_TRY_SCENARIO=ember-canary
- EMBER_TRY_SCENARIO=ember-default

matrix:
fast_finish: true
Expand All @@ -26,16 +38,11 @@ matrix:

before_install:
- npm config set spin false
- npm install -g bower
- bower --version
- npm install phantomjs-prebuilt
- node_modules/phantomjs-prebuilt/bin/phantomjs --version
- npm install -g npm@4
- npm --version

install:
- npm install
- bower install

script:
- npm run lint:js
# Usually, it's ok to finish the test scenario without reverting
# to the addon's original dependency state, skipping "cleanup".
- ember try:one $EMBER_TRY_SCENARIO test --skip-cleanup
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO --skip-cleanup
2 changes: 1 addition & 1 deletion LICENSE.md
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016
Copyright (c) 2018

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down