rails/actiontext/package.json
David Heinemeier Hansson 9c73d4aeab
Make Action Text + Trix JS/CSS available via the asset pipeline (#42857)
* Action Text JS should be available via the asset pipeline too

* Main was a module anyway, no need to reference that twice

* Fix rollup references

* Precompile action text JS for asset pipeline

* No JavaScript dependencies needed with the asset pipeline

* Stub Webpacker::Engine to trigger webpack path for testing

* Extract asset paths

* Exercise asset pipeline path

* Terser doesn't do anything useful on this small package

* Make trix directly available to the asset pipeline

* Indirect doesn't carry its worth

* Reminder for development about keeping things in sync for the asset pipeline

* Ensure this isn't turned into undefined while mirroring

* Mirror Trix CSS for asset pipeline

* Add the needed JS include tag automatically under the asset pipeline

* Please RuboCop

* Keep the peer dependency

Even though we also need it explicitly as a dev dependency in order to generate the mirror output for trix.

* Fix test

* Add CHANGELOG entry
2021-07-26 18:57:42 -04:00

40 lines
963 B
JSON

{
"name": "@rails/actiontext",
"version": "7.0.0-alpha",
"description": "Edit and display rich text in Rails applications",
"main": "app/javascript/actiontext/index.js",
"type": "module",
"files": [
"app/javascript/actiontext/*.js"
],
"homepage": "https://rubyonrails.org/",
"repository": {
"type": "git",
"url": "git+https://github.com/rails/rails.git"
},
"bugs": {
"url": "https://github.com/rails/rails/issues"
},
"author": "Basecamp, LLC",
"contributors": [
"Javan Makhmali <javan@javan.us>",
"Sam Stephenson <sstephenson@gmail.com>"
],
"license": "MIT",
"dependencies": {
"@rails/activestorage": "7.0.0-alpha"
},
"peerDependencies": {
"trix": "^1.3.1"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^11.0.1",
"@rollup/plugin-commonjs": "^19.0.1",
"rollup": "^2.35.1",
"trix": "^1.3.1"
},
"scripts": {
"build": "rollup --config rollup.config.js"
}
}