From a246cffc91468a48bba3a895e9804105f91e0d88 Mon Sep 17 00:00:00 2001 From: nadnoslen Date: Wed, 6 Apr 2022 11:41:35 -0600 Subject: [PATCH] :arrow_up: Ember-Cli 3.0...3.1 --- .eslintignore | 2 +- .eslintrc.js | 1 + README.md | 81 ++++++----------- package.json | 9 +- tests/dummy/app/templates/application.hbs | 72 +++++++++++---- yarn.lock | 104 +++++++++++----------- 6 files changed, 144 insertions(+), 125 deletions(-) diff --git a/.eslintignore b/.eslintignore index 96212a3..0516e6e 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1 +1 @@ -**/*{.,-}min.js +/blueprints/*/files/**/*.js diff --git a/.eslintrc.js b/.eslintrc.js index 59c4f6d..2b4d2ab 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -22,6 +22,7 @@ module.exports = { 'ember-cli-build.js', 'index.js', 'testem.js', + 'blueprints/*/index.js', 'config/**/*.js', 'tests/dummy/config/**/*.js' ], diff --git a/README.md b/README.md index bf2553c..ab35bc2 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # ember-cli-date-textbox -[![npm version](http://badge.fury.io/js/ember-cli-date-textbox.svg)](http://badge.fury.io/js/ember-cli-date-textbox) ![downloads](https://img.shields.io/npm/dy/ember-cli-date-textbox.svg) [![CircleCI](http://circleci.com/gh/cybertoothca/ember-cli-date-textbox.svg?style=shield)](http://circleci.com/gh/cybertoothca/ember-cli-date-textbox) [![Code Climate](http://codeclimate.com/github/cybertoothca/ember-cli-date-textbox/badges/gpa.svg)](http://codeclimate.com/github/cybertoothca/ember-cli-date-textbox) +[![npm version](http://badge.fury.io/js/ember-cli-date-textbox.svg)](http://badge.fury.io/js/ember-cli-date-textbox) ![downloads](https://img.shields.io/npm/dy/ember-cli-date-textbox.svg) [![Code Climate](http://codeclimate.com/github/cybertoothca/ember-cli-date-textbox/badges/gpa.svg)](http://codeclimate.com/github/cybertoothca/ember-cli-date-textbox) -![Dependencies](http://david-dm.org/cybertoothca/ember-cli-date-textbox.svg) [![ember-observer-badge](http://emberobserver.com/badges/ember-cli-date-textbox.svg)](http://emberobserver.com/addons/ember-cli-date-textbox) [![License](http://img.shields.io/npm/l/ember-cli-date-textbox.svg)](LICENSE.md) +[![ember-observer-badge](http://emberobserver.com/badges/ember-cli-date-textbox.svg)](http://emberobserver.com/addons/ember-cli-date-textbox) A textbox that will guess the date you want and assign it to your model or query-params. @@ -14,12 +14,6 @@ The following will install this add-on: ember install ember-cli-date-textbox ``` -### Upgrading - -When working through the Ember upgrade process, I recommend -invoking the `ember install ember-cli-date-textbox` command once -you are done to get the latest version of the add-on. - ### JQuery JQuery is still required as of 1.2.x of this addon. @@ -208,27 +202,35 @@ in the form of a date that is swiftly parsed and formatted. ([Check out the demo...](http://ember-cli-date-textbox.cybertooth.io/)) -### Troubleshooting And Tips - -_None...at least that I can think of._ - --- # Ember Add-on Building And Testing ## Setup -### Checkout - ```bash git clone git@github.com:cybertoothca/ember-cli-date-textbox.git +cd ember-cli-date-textbox +yarn install ``` -### With Yarn +### Linting -```bash -yarn -``` +- `yarn lint:js` +- `yarn lint:js -- --fix` + +### Running tests + +- `ember test` – Runs the test suite on the current Ember version +- `ember test --server` – Runs the test suite in "watch mode" +- `ember try:each` – Runs the test suite against multiple Ember versions + +### Running the dummy application + +- `ember serve` +- Visit the dummy application at [http://localhost:4200](http://localhost:4200). + +For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/). ## Running The Dummy Application @@ -247,6 +249,14 @@ yarn For more information on using ember-cli, visit [http://ember-cli.com/](http://ember-cli.com/). +``` +ember install my-addon +``` + +# License + +This project is licensed under the [MIT License](LICENSE.md). + # Linking This Add-on For Local Testing ## Linking @@ -289,41 +299,8 @@ Confirm your changes are showing up in our S3 container: http://ember-cli-date-t # Releasing & Publishing To NPM ```bash -npm version x.y.z-sub.# +yarn publish git push git push --tags -npm publish ember deploy production ``` - -``` -ember install my-addon -``` - -### Installation - -- `git clone ` -- `cd my-addon` -- `npm install` - -### Linting - -- `npm run lint:js` -- `npm run lint:js -- --fix` - -### Running tests - -- `ember test` – Runs the test suite on the current Ember version -- `ember test --server` – Runs the test suite in "watch mode" -- `npm test` – Runs `ember try:each` to test your addon against multiple Ember versions - -### Running the dummy application - -- `ember serve` -- Visit the dummy application at [http://localhost:4200](http://localhost:4200). - -For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/). - -# License - -This project is licensed under the [MIT License](LICENSE.md). diff --git a/package.json b/package.json index 18d3685..eebf457 100644 --- a/package.json +++ b/package.json @@ -40,9 +40,10 @@ }, "scripts": { "build": "ember build", - "lint:js": "eslint ./*.js addon addon-test-support app config lib server test-support tests", + "lint:js": "eslint ./*.js addon addon-test-support app blueprints config lib server test-support tests", "start": "ember serve", - "test": "ember try:each" + "test": "ember test", + "test:all": "ember try:each" }, "dependencies": { "ember-cli-babel": "^6.6.0", @@ -54,7 +55,7 @@ "bootswatch": "^3.3.7", "broccoli-asset-rev": "^2.4.5", "ember-ajax": "^3.0.0", - "ember-cli": "~3.0.4", + "ember-cli": "~3.1.4", "ember-cli-dependency-checker": "^2.0.0", "ember-cli-deploy": "^1.0.2", "ember-cli-deploy-build": "^1.1.1", @@ -80,7 +81,7 @@ "ember-resolver": "^4.0.0", "ember-route-action-helper": "^2.0.6", "ember-sinon": "^2.2.0", - "ember-source": "~3.0.0", + "ember-source": "~3.1.0", "ember-source-channel-url": "^1.0.1", "ember-try": "^0.2.23", "ember-welcome-page": "^3.0.0", diff --git a/tests/dummy/app/templates/application.hbs b/tests/dummy/app/templates/application.hbs index d5ff013..7577cd1 100644 --- a/tests/dummy/app/templates/application.hbs +++ b/tests/dummy/app/templates/application.hbs @@ -1,8 +1,13 @@