1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activestorage/package.json
David Heinemeier Hansson 6c96e1cd7b
Move Active Storage JS to ESM and drop Babel transpiling (#42895)
* Move to ESM and drop Babel transpiling

* Make the activestorage JS directly available through the asset pipeline as a precompiled asset

* Use example with direct attachment

* Explain that direct reference is possible

* Active Storage JS is a module

* Retain umd asset for backwards compatibility, add ESM file in addition

* Explain how to use activestorage.esm with importmap

* Use untranspiled activestorage inclusion

* Don't repeat terser options
2021-07-28 15:17:13 -04:00

38 lines
1 KiB
JSON

{
"name": "@rails/activestorage",
"version": "7.0.0-alpha",
"description": "Attach cloud and local files in Rails applications",
"main": "app/assets/javascripts/activestorage.js",
"type": "module",
"files": [
"app/assets/javascripts/*.js",
"src/*.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": "Javan Makhmali <javan@javan.us>",
"license": "MIT",
"dependencies": {
"spark-md5": "^3.0.1"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^11.0.1",
"@rollup/plugin-commonjs": "^19.0.1",
"eslint": "^4.3.0",
"eslint-plugin-import": "^2.23.4",
"rollup": "^2.35.1",
"rollup-plugin-terser": "^7.0.2"
},
"scripts": {
"prebuild": "yarn lint",
"build": "rollup --config rollup.config.js",
"lint": "eslint app/javascript",
"prepublishOnly": "rm -rf src && cp -R app/javascript/activestorage src"
}
}