-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added blueprints to package.json's files (#74)
* feature: Checked whether the addon has blueprint files * refactor: Added failing tests * bugfix: Added blueprints to files * refactor: Improved code readability --------- Co-authored-by: ijlee2 <[email protected]>
- Loading branch information
Showing
20 changed files
with
363 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
5 changes: 5 additions & 0 deletions
5
...ddon-package-json/blueprints/input/ember-container-query/blueprints/some-command/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
description: 'Generates something', | ||
}; |
156 changes: 156 additions & 0 deletions
156
...tures/steps/update-addon-package-json/blueprints/input/ember-container-query/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
{ | ||
"name": "ember-container-query", | ||
"version": "3.2.0", | ||
"description": "Container queries using Ember modifiers", | ||
"keywords": [ | ||
"container-queries", | ||
"container-query", | ||
"element-queries", | ||
"element-query", | ||
"ember-addon", | ||
"ember-octane", | ||
"emberjs", | ||
"glint", | ||
"responsive-design" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/ijlee2/ember-container-query.git" | ||
}, | ||
"license": "MIT", | ||
"author": "Isaac J. Lee", | ||
"directories": { | ||
"doc": "doc", | ||
"test": "tests" | ||
}, | ||
"scripts": { | ||
"build": "ember build --environment=production", | ||
"build:test": "ember build --environment=test", | ||
"changelog": "lerna-changelog", | ||
"lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"", | ||
"lint:css": "stylelint \"tests/dummy/app/**/*.css\" --cache", | ||
"lint:css:fix": "stylelint \"tests/dummy/app/**/*.css\" --fix", | ||
"lint:dependency": "ember dependency-lint", | ||
"lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"", | ||
"lint:hbs": "ember-template-lint .", | ||
"lint:hbs:fix": "ember-template-lint . --fix", | ||
"lint:js": "eslint . --cache --ext=.js,.ts", | ||
"lint:js:fix": "eslint . --fix", | ||
"lint:types": "tsc --noEmit", | ||
"prepack": "ember ts:precompile", | ||
"postpack": "ember ts:clean", | ||
"start": "ember serve", | ||
"test": "DEVICE='w3-h3' ember test", | ||
"test:ember": "ember test", | ||
"test:ember-compatibility": "./node_modules/.bin/ember try:one" | ||
}, | ||
"changelog": { | ||
"labels": { | ||
"breaking": "Breaking Change", | ||
"bug": "Bug Fix", | ||
"enhance: code": "Enhancement", | ||
"enhance: dependency": "Internal", | ||
"enhance: documentation": "Documentation", | ||
"user feedback": "User Feedback" | ||
} | ||
}, | ||
"dependencies": { | ||
"ember-cli-babel": "^7.26.11", | ||
"ember-cli-htmlbars": "^6.1.1", | ||
"ember-cli-typescript": "^5.2.1", | ||
"ember-element-helper": "^0.6.1", | ||
"ember-modifier": "^3.2.7", | ||
"ember-resize-observer-service": "^1.1.0", | ||
"ember-test-selectors": "^6.0.0" | ||
}, | ||
"devDependencies": { | ||
"@ember/optional-features": "^2.0.0", | ||
"@ember/test-helpers": "^2.9.3", | ||
"@embroider/test-setup": "^2.0.2", | ||
"@glimmer/component": "^1.1.2", | ||
"@glimmer/tracking": "^1.1.2", | ||
"@percy/cli": "^1.16.0", | ||
"@percy/ember": "^4.0.0", | ||
"@tsconfig/ember": "^2.0.0", | ||
"@types/ember__application": "^4.0.5", | ||
"@types/ember__array": "^4.0.3", | ||
"@types/ember__component": "^4.0.12", | ||
"@types/ember__controller": "^4.0.4", | ||
"@types/ember__debug": "^4.0.3", | ||
"@types/ember__destroyable": "^4.0.1", | ||
"@types/ember__engine": "^4.0.4", | ||
"@types/ember__error": "^4.0.2", | ||
"@types/ember__object": "^4.0.5", | ||
"@types/ember__polyfills": "^4.0.1", | ||
"@types/ember__routing": "^4.0.12", | ||
"@types/ember__runloop": "^4.0.2", | ||
"@types/ember__service": "^4.0.2", | ||
"@types/ember__string": "^3.0.10", | ||
"@types/ember__template": "^4.0.1", | ||
"@types/ember__test": "^4.0.1", | ||
"@types/ember__utils": "^4.0.2", | ||
"@types/htmlbars-inline-precompile": "^3.0.0", | ||
"@types/qunit": "^2.19.3", | ||
"@types/rsvp": "^4.0.4", | ||
"@typescript-eslint/eslint-plugin": "^5.48.0", | ||
"@typescript-eslint/parser": "^5.48.0", | ||
"broccoli-asset-rev": "^3.0.0", | ||
"concurrently": "^7.6.0", | ||
"d3-array": "^3.2.1", | ||
"d3-axis": "^3.0.0", | ||
"d3-scale": "^4.0.2", | ||
"d3-selection": "^3.0.0", | ||
"d3-shape": "^3.2.0", | ||
"ember-a11y-refocus": "^3.0.2", | ||
"ember-a11y-testing": "^5.1.0", | ||
"ember-auto-import": "^2.5.0", | ||
"ember-cli": "~4.9.2", | ||
"ember-cli-dependency-checker": "^3.3.1", | ||
"ember-cli-dependency-lint": "^2.0.1", | ||
"ember-cli-inject-live-reload": "^2.1.0", | ||
"ember-cli-netlify": "^0.4.1", | ||
"ember-cli-sri": "^2.1.1", | ||
"ember-cli-terser": "^4.0.2", | ||
"ember-css-modules": "^2.0.1", | ||
"ember-load-initializers": "^2.1.2", | ||
"ember-page-title": "^7.0.0", | ||
"ember-qunit": "^6.1.1", | ||
"ember-resolver": "^9.0.1", | ||
"ember-source": "~4.9.3", | ||
"ember-source-channel-url": "^3.0.0", | ||
"ember-svg-jar": "^2.4.2", | ||
"ember-template-lint": "^5.3.0", | ||
"ember-template-lint-plugin-prettier": "^4.1.0", | ||
"ember-truth-helpers": "^3.1.1", | ||
"ember-try": "^2.0.0", | ||
"eslint": "^8.31.0", | ||
"eslint-config-prettier": "^8.6.0", | ||
"eslint-plugin-ember": "^11.4.2", | ||
"eslint-plugin-n": "^15.6.0", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"eslint-plugin-qunit": "^7.3.4", | ||
"eslint-plugin-simple-import-sort": "^8.0.0", | ||
"eslint-plugin-typescript-sort-keys": "^2.1.0", | ||
"lerna-changelog": "^2.2.0", | ||
"loader.js": "^4.7.0", | ||
"prettier": "^2.8.1", | ||
"qunit": "^2.19.3", | ||
"qunit-dom": "^2.0.0", | ||
"stylelint": "^14.16.1", | ||
"stylelint-config-standard": "^29.0.0", | ||
"stylelint-no-unsupported-browser-features": "^6.0.1", | ||
"stylelint-order": "^6.0.0", | ||
"typescript": "^4.9.4", | ||
"webpack": "^5.75.0" | ||
}, | ||
"engines": { | ||
"node": "14.* || 16.* || >= 18" | ||
}, | ||
"ember": { | ||
"edition": "octane" | ||
}, | ||
"ember-addon": { | ||
"configPath": "tests/dummy/config", | ||
"demoURL": "https://ember-container-query.netlify.app" | ||
} | ||
} |
Empty file.
5 changes: 5 additions & 0 deletions
5
...don-package-json/blueprints/output/ember-container-query/blueprints/some-command/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
description: 'Generates something', | ||
}; |
117 changes: 117 additions & 0 deletions
117
...ures/steps/update-addon-package-json/blueprints/output/ember-container-query/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
{ | ||
"name": "ember-container-query", | ||
"version": "3.2.0", | ||
"description": "Container queries using Ember modifiers", | ||
"keywords": [ | ||
"container-queries", | ||
"container-query", | ||
"element-queries", | ||
"element-query", | ||
"ember-addon", | ||
"ember-octane", | ||
"emberjs", | ||
"glint", | ||
"responsive-design" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/ijlee2/ember-container-query.git" | ||
}, | ||
"license": "MIT", | ||
"author": "Isaac J. Lee", | ||
"directories": { | ||
"doc": "doc", | ||
"test": "tests" | ||
}, | ||
"scripts": { | ||
"build": "concurrently \"npm:build:*\" --names \"build:\"", | ||
"build:js": "rollup --config", | ||
"build:test": "ember build --environment=test", | ||
"build:types": "tsc", | ||
"changelog": "lerna-changelog", | ||
"lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"", | ||
"lint:css": "stylelint \"tests/dummy/app/**/*.css\" --cache", | ||
"lint:css:fix": "stylelint \"tests/dummy/app/**/*.css\" --fix", | ||
"lint:dependency": "ember dependency-lint", | ||
"lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"", | ||
"lint:hbs": "ember-template-lint .", | ||
"lint:hbs:fix": "ember-template-lint . --fix", | ||
"lint:js": "eslint . --cache --ext=.js,.ts", | ||
"lint:js:fix": "eslint . --fix", | ||
"lint:types": "tsc --emitDeclarationOnly false --noEmit", | ||
"prepack": "rollup --config", | ||
"start": "concurrently \"npm:start:*\" --names \"start:\"", | ||
"start:js": "rollup --config --watch --no-watch.clearScreen", | ||
"start:types": "tsc --watch", | ||
"test": "echo 'A v2 addon does not have tests, run tests in test-app'", | ||
"test:ember": "ember test", | ||
"test:ember-compatibility": "./node_modules/.bin/ember try:one" | ||
}, | ||
"changelog": { | ||
"labels": { | ||
"breaking": "Breaking Change", | ||
"bug": "Bug Fix", | ||
"enhance: code": "Enhancement", | ||
"enhance: dependency": "Internal", | ||
"enhance: documentation": "Documentation", | ||
"user feedback": "User Feedback" | ||
} | ||
}, | ||
"dependencies": { | ||
"@embroider/addon-shim": "^1.8.7", | ||
"decorator-transforms": "^1.0.1", | ||
"ember-element-helper": "^0.6.1", | ||
"ember-modifier": "^3.2.7", | ||
"ember-resize-observer-service": "^1.1.0", | ||
"ember-test-selectors": "^6.0.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.23.6", | ||
"@babel/plugin-transform-typescript": "^7.23.6", | ||
"@babel/runtime": "^7.23.6", | ||
"@embroider/addon-dev": "^4.1.3", | ||
"@rollup/plugin-babel": "^6.0.4", | ||
"@tsconfig/ember": "^2.0.0", | ||
"babel-plugin-ember-template-compilation": "^2.2.1", | ||
"concurrently": "^7.6.0", | ||
"rollup": "^4.9.1", | ||
"rollup-plugin-copy": "^3.5.0", | ||
"typescript": "^4.9.4" | ||
}, | ||
"engines": { | ||
"node": "14.* || 16.* || >= 18" | ||
}, | ||
"ember": { | ||
"edition": "octane" | ||
}, | ||
"ember-addon": { | ||
"app-js": {}, | ||
"main": "addon-main.cjs", | ||
"type": "addon", | ||
"version": 2 | ||
}, | ||
"exports": { | ||
".": { | ||
"types": "./declarations/index.d.ts", | ||
"default": "./dist/index.js" | ||
}, | ||
"./*": { | ||
"types": "./declarations/*.d.ts", | ||
"default": "./dist/*.js" | ||
}, | ||
"./addon-main.js": "./addon-main.cjs" | ||
}, | ||
"files": [ | ||
"addon-main.cjs", | ||
"blueprints", | ||
"declarations", | ||
"dist" | ||
], | ||
"typesVersions": { | ||
"*": { | ||
"*": [ | ||
"declarations/*" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.