Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
13ec9fed
R
rails
项目概览
张重言
/
rails
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rails
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
13ec9fed
编写于
4月 25, 2018
作者:
J
Javan Makhmali
提交者:
GitHub
4月 25, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #32721 from javan/ast-unminify-js
Unminify activestorage.js
上级
c81a7fcf
56fc1f81
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
1093 addition
and
1386 deletion
+1093
-1386
activestorage/.babelrc
activestorage/.babelrc
+3
-0
activestorage/app/assets/javascripts/activestorage.js
activestorage/app/assets/javascripts/activestorage.js
+930
-1
activestorage/package.json
activestorage/package.json
+7
-3
activestorage/rollup.config.js
activestorage/rollup.config.js
+28
-0
activestorage/webpack.config.js
activestorage/webpack.config.js
+0
-26
activestorage/yarn.lock
activestorage/yarn.lock
+125
-1356
未找到文件。
activestorage/.babelrc
浏览文件 @
13ec9fed
{
"presets": [
["env", { "modules": false } ]
],
"plugins": [
"external-helpers"
]
}
activestorage/app/assets/javascripts/activestorage.js
浏览文件 @
13ec9fed
此差异已折叠。
点击以展开。
activestorage/package.json
浏览文件 @
13ec9fed
...
...
@@ -22,15 +22,19 @@
},
"devDependencies"
:
{
"babel-core"
:
"^6.25.0"
,
"babel-
loader"
:
"^7.1.1
"
,
"babel-
plugin-external-helpers"
:
"^6.22.0
"
,
"babel-preset-env"
:
"^1.6.0"
,
"eslint"
:
"^4.3.0"
,
"eslint-plugin-import"
:
"^2.7.0"
,
"webpack"
:
"^3.4.0"
"rollup"
:
"^0.58.2"
,
"rollup-plugin-babel"
:
"^3.0.4"
,
"rollup-plugin-commonjs"
:
"^9.1.0"
,
"rollup-plugin-node-resolve"
:
"^3.3.0"
,
"rollup-plugin-uglify"
:
"^3.0.0"
},
"scripts"
:
{
"prebuild"
:
"yarn lint"
,
"build"
:
"
webpack -p
"
,
"build"
:
"
rollup --config rollup.config.js
"
,
"lint"
:
"eslint app/javascript"
,
"prepublishOnly"
:
"rm -rf src && cp -R app/javascript/activestorage src"
}
...
...
activestorage/rollup.config.js
0 → 100644
浏览文件 @
13ec9fed
import
resolve
from
"
rollup-plugin-node-resolve
"
import
commonjs
from
"
rollup-plugin-commonjs
"
import
babel
from
"
rollup-plugin-babel
"
import
uglify
from
"
rollup-plugin-uglify
"
const
uglifyOptions
=
{
mangle
:
false
,
compress
:
false
,
output
:
{
beautify
:
true
,
indent_level
:
2
}
}
export
default
{
input
:
"
app/javascript/activestorage/index.js
"
,
output
:
{
file
:
"
app/assets/javascripts/activestorage.js
"
,
format
:
"
umd
"
,
name
:
"
ActiveStorage
"
},
plugins
:
[
resolve
(),
commonjs
(),
babel
(),
uglify
(
uglifyOptions
)
]
}
activestorage/webpack.config.js
已删除
100644 → 0
浏览文件 @
c81a7fcf
const
path
=
require
(
"
path
"
)
module
.
exports
=
{
entry
:
{
"
activestorage
"
:
path
.
resolve
(
__dirname
,
"
app/javascript/activestorage/index.js
"
),
},
output
:
{
filename
:
"
[name].js
"
,
path
:
path
.
resolve
(
__dirname
,
"
app/assets/javascripts
"
),
library
:
"
ActiveStorage
"
,
libraryTarget
:
"
umd
"
},
module
:
{
rules
:
[
{
test
:
/
\.
js$/
,
exclude
:
/node_modules/
,
use
:
{
loader
:
"
babel-loader
"
}
}
]
}
}
activestorage/yarn.lock
浏览文件 @
13ec9fed
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录