Skip to content

Convert back to v1 format #1

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

Merged
merged 4 commits into from
May 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
File renamed without changes.
File renamed without changes.
9 changes: 2 additions & 7 deletions packages/test-app/.eslintrc.js → .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ module.exports = {
'./.prettierrc.js',
'./.template-lintrc.js',
'./ember-cli-build.js',
'./index.js',
'./testem.js',
'./blueprints/*/index.js',
'./config/**/*.js',
'./lib/*/index.js',
'./server/**/*.js',
'./tests/dummy/config/**/*.js',
],
parserOptions: {
sourceType: 'script',
Expand All @@ -43,11 +43,6 @@ module.exports = {
},
plugins: ['node'],
extends: ['plugin:node/recommended'],
rules: {
// this can be removed once the following is fixed
// https://github.com/mysticatea/eslint-plugin-node/issues/77
'node/no-unpublished-require': 'off',
},
},
{
// test files
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ on:
pull_request: {}

concurrency:
group: ci-${{ github.head_ref || github.ref }}
cancel-in-progress: true
group: ci-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
test:
Expand All @@ -28,7 +28,7 @@ jobs:
- name: Lint
run: yarn lint
- name: Run Tests
run: yarn test
run: yarn test:ember

floating:
name: "Floating Dependencies"
Expand All @@ -43,12 +43,12 @@ jobs:
- name: Install Dependencies
run: yarn install --no-lockfile
- name: Run Tests
run: yarn test
run: yarn test:ember

try-scenarios:
name: ${{ matrix.try-scenario }}
runs-on: ubuntu-latest
needs: 'test'
needs: "test"

strategy:
fail-fast: false
Expand All @@ -74,4 +74,3 @@ jobs:
run: yarn install --frozen-lockfile
- name: Run Tests
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }}
working-directory: packages/test-app
40 changes: 40 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# compiled output
/dist/
/tmp/

# dependencies
/bower_components/

# misc
/.bowerrc
/.editorconfig
/.ember-cli
/.env*
/.eslintcache
/.eslintignore
/.eslintrc.js
/.git/
/.github/
/.gitignore
/.prettierignore
/.prettierrc.js
/.template-lintrc.js
/.travis.yml
/.watchmanconfig
/bower.json
/config/ember-try.js
/CONTRIBUTING.md
/ember-cli-build.js
/testem.js
/tests/
/yarn-error.log
/yarn.lock
.gitkeep

# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/npm-shrinkwrap.json.ember-try
/package.json.ember-try
/package-lock.json.ember-try
/yarn.lock.ember-try
File renamed without changes.
File renamed without changes.
7 changes: 4 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@

## Running tests

* `yarn test` – Runs the test suite on the current Ember version
* `yarn test:watch` – Runs the test suite in "watch mode"
* `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

* `yarn start`
* `ember serve`
* Visit the dummy application at [http://localhost:4200](http://localhost:4200).

For more information on using ember-cli, visit [https://cli.emberjs.com/release/](https://cli.emberjs.com/release/).
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ Compatibility
------------------------------------------------------------------------------

* Ember.js v3.24 or above
* Embroider or ember-auto-import v2
* Ember CLI v3.24 or above
* Node.js v12 or above


Installation
Expand Down
1 change: 1 addition & 0 deletions app/components/bs-form.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'ember-bootstrap-constraint-validations/components/bs-form';
1 change: 1 addition & 0 deletions app/components/bs-form/element.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'ember-bootstrap-constraint-validations/components/bs-form/element';
File renamed without changes.
5 changes: 5 additions & 0 deletions config/environment.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict';

module.exports = function (/* environment, appConfig */) {
return {};
};
28 changes: 28 additions & 0 deletions ember-cli-build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
'use strict';

const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');

module.exports = function (defaults) {
let app = new EmberAddon(defaults, {
'ember-bootstrap': {
bootstrapVersion: 5,
importBootstrapCSS: true,
},
});

/*
This build file specifies the options for the dummy test app of this
addon, located in `/tests/dummy`
This build file does *not* influence how the addon or the app using it
behave. You most likely want to be modifying `./index.js` or app's build file
*/

const { maybeEmbroider } = require('@embroider/test-setup');
return maybeEmbroider(app, {
skipBabel: [
{
package: 'qunit',
},
],
});
};
2 changes: 1 addition & 1 deletion packages/test-app/.prettierrc.js → index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';

module.exports = {
singleQuote: true,
name: require('./package').name,
};
96 changes: 72 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,54 +1,102 @@
{
"name": "ember-bootstrap-constraint-validations",
"version": "0.1.0",
"private": true,
"description": "Add support for native HTML5 constraint validation to ember-bootstrap forms.",
"keywords": [
"ember-addon"
],
"repository": "https://github.com/kaliber5/ember-bootstrap-constraint-validations.git",
"license": "MIT",
"author": "Simon Ihmig <[email protected]>",
"workspaces": [
"packages/*"
],
"directories": {
"doc": "doc",
"test": "tests"
},
"scripts": {
"prepare": "yarn workspace ember-bootstrap-constraint-validations run prepare",
"start": "npm-run-all --parallel start:*",
"start:addon": "yarn workspace ember-bootstrap-constraint-validations run start",
"start:test-app": "yarn workspace test-app run start",
"build": "ember build --environment=production",
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel \"lint:!(fix)\"",
"lint:addon": "yarn workspace ember-bootstrap-constraint-validations run lint",
"lint:test-app": "yarn workspace test-app run lint",
"lint:fix": "npm-run-all --aggregate-output --continue-on-error --parallel lint:fix:*",
"lint:fix:addon": "yarn workspace ember-bootstrap-constraint-validations run lint:fix",
"lint:fix:test-app": "yarn workspace test-app run lint:fix",
"test": "npm-run-all --aggregate-output --continue-on-error --parallel \"test:!(watch)\"",
"test:watch": "npm-run-all --aggregate-output --continue-on-error --parallel test:watch:*",
"test:test-app": "yarn workspace test-app run test",
"test:watch:test-app": "yarn workspace test-app run test:watch",
"test:watch:addon": "yarn workspace ember-bootstrap-constraint-validations run start"
"lint:fix": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*:fix",
"lint:hbs": "ember-template-lint .",
"lint:hbs:fix": "ember-template-lint . --fix",
"lint:js": "eslint . --cache",
"lint:js:fix": "eslint . --fix",
"start": "ember serve",
"test": "npm-run-all lint test:*",
"test:ember": "ember test",
"test:ember-compatibility": "ember try:each"
},
"dependencies": {
"ember-cli-babel": "^7.26.11",
"ember-cli-htmlbars": "^6.0.1"
},
"devDependencies": {
"@ember/optional-features": "^2.0.0",
"@ember/test-helpers": "^2.6.0",
"@embroider/test-setup": "^1.5.0",
"@glimmer/component": "^1.0.4",
"@glimmer/tracking": "^1.0.4",
"babel-eslint": "^10.1.0",
"bootstrap": "^5.0.0",
"broccoli-asset-rev": "^3.0.0",
"ember-auto-import": "^2.4.1",
"ember-bootstrap": "^5.1.1",
"ember-cli": "~4.3.0",
"ember-cli-dependency-checker": "^3.2.0",
"ember-cli-inject-live-reload": "^2.1.0",
"ember-cli-sri": "^2.1.1",
"ember-cli-terser": "^4.0.2",
"ember-disable-prototype-extensions": "^1.1.3",
"ember-export-application-global": "^2.0.1",
"ember-focus-trap": "^1.0.1",
"ember-load-initializers": "^2.1.2",
"ember-page-title": "^7.0.0",
"ember-qunit": "^5.1.5",
"ember-resolver": "^8.0.3",
"ember-source": "~4.3.0",
"ember-source-channel-url": "^3.0.0",
"ember-template-lint": "^4.3.0",
"ember-try": "^2.0.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-ember": "^10.5.9",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-qunit": "^7.2.0",
"loader.js": "^4.7.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.5.1",
"prettier": "^2.6.1",
"qunit": "^2.18.0",
"qunit-dom": "^2.0.0",
"release-it": "^14.2.1",
"release-it-lerna-changelog": "^3.1.0",
"release-it-yarn-workspaces": "^2.0.0"
"webpack": "^5.70.0"
},
"engines": {
"node": "12.* || 14.* || >= 16"
},
"publishConfig": {
"registry": "https://registry.npmjs.org"
},
"ember": {
"edition": "octane"
},
"ember-addon": {
"after": "ember-bootstrap",
"configPath": "tests/dummy/config"
},
"release-it": {
"plugins": {
"release-it-lerna-changelog": {
"infile": "CHANGELOG.md",
"launchEditor": true
},
"release-it-yarn-workspaces": true
}
},
"git": {
"tagName": "v${version}"
},
"github": {
"release": true,
"tokenRef": "GITHUB_AUTH"
},
"npm": false
}
}
}
22 changes: 0 additions & 22 deletions packages/ember-bootstrap-constraint-validations/.eslintignore

This file was deleted.

43 changes: 0 additions & 43 deletions packages/ember-bootstrap-constraint-validations/.eslintrc.js

This file was deleted.

4 changes: 0 additions & 4 deletions packages/ember-bootstrap-constraint-validations/addon-main.js

This file was deleted.

This file was deleted.

Loading