Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
jenkins
提交
0491279d
J
jenkins
项目概览
xxadev
/
jenkins
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
jenkins
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0491279d
编写于
5月 23, 2017
作者:
J
Jesse Glick
提交者:
GitHub
5月 23, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2889 from jglick/node-npm
Node & package mirroring, yarn
上级
df21a13c
9ad65c91
变更
3
展开全部
隐藏空白更改
内联
并排
Showing
3 changed file
with
3086 addition
and
108 deletion
+3086
-108
war/.gitignore
war/.gitignore
+0
-1
war/pom.xml
war/pom.xml
+11
-107
war/yarn.lock
war/yarn.lock
+3075
-0
未找到文件。
war/.gitignore
浏览文件 @
0491279d
...
...
@@ -4,7 +4,6 @@ work
# Node
node/
node_modules/
npm-debug.log
# Generated JavaScript Bundles
jsbundles
war/pom.xml
浏览文件 @
0491279d
...
...
@@ -42,7 +42,7 @@ THE SOFTWARE.
<contextPath>
/jenkins
</contextPath>
<!-- context path during test -->
<port>
8080
</port>
<!-- HTTP listener port -->
<node.version>
6.10.2
</node.version>
<
npm.version>
3.10.10
</npm
.version>
<
yarn.version>
0.24.5
</yarn
.version>
</properties>
<dependencies>
...
...
@@ -582,103 +582,6 @@ THE SOFTWARE.
See https://github.com/tfennelly/jenkins-js-builder#maven-integration
-->
<!--
Manually download node and NPM for the frontend plugin so it gets cached in the local maven repo.
Otherwise frontend will be downloading it all the time on the CI servers. The download-maven-plugin
caches it's downloads in the local maven repo.
-->
<profile>
<id>
node-classifier-linux
</id>
<activation><os><family>
Linux
</family><arch>
amd64
</arch></os></activation>
<properties>
<node.download.file>
node-v${node.version}-linux-x64.tar.gz
</node.download.file>
<node.download.classifier
/>
</properties>
</profile>
<profile>
<id>
node-classifier-linux-32
</id>
<activation><os><family>
Linux
</family><arch>
i386
</arch></os></activation>
<properties>
<node.download.file>
node-v${node.version}-linux-x86.tar.gz
</node.download.file>
<node.download.classifier
/>
</properties>
</profile>
<profile>
<id>
node-classifier-mac
</id>
<activation><os><family>
mac
</family></os></activation>
<properties>
<node.download.file>
node-v${node.version}-darwin-x64.tar.gz
</node.download.file>
<node.download.classifier
/>
</properties>
</profile>
<profile>
<id>
node-classifier-windows
</id>
<activation><os><family>
windows
</family><arch>
x64
</arch></os></activation>
<properties>
<node.download.file>
win-x64/node.exe
</node.download.file>
<node.download.classifier>
/x64
</node.download.classifier>
</properties>
</profile>
<profile>
<id>
node-classifier-windows-amd64
</id>
<activation><os><family>
windows
</family><arch>
amd64
</arch></os></activation>
<properties>
<node.download.file>
win-x64/node.exe
</node.download.file>
<node.download.classifier>
/win-x64
</node.download.classifier>
</properties>
</profile>
<profile>
<id>
node-classifier-windows-x86
</id>
<activation><os><family>
windows
</family><arch>
x86
</arch></os></activation>
<properties>
<node.download.file>
win-x86/node.exe
</node.download.file>
<node.download.classifier
/>
</properties>
</profile>
<profile>
<id>
node-download
</id>
<activation>
<file>
<exists>
package.json
</exists>
</file>
</activation>
<build>
<plugins>
<plugin>
<groupId>
com.googlecode.maven-download-plugin
</groupId>
<artifactId>
download-maven-plugin
</artifactId>
<version>
1.3.0
</version>
<executions>
<execution>
<id>
get-node
</id>
<phase>
initialize
</phase>
<goals>
<goal>
wget
</goal>
</goals>
<configuration>
<url>
https://nodejs.org/dist/v${node.version}/${node.download.file}
</url>
<unpack>
false
</unpack>
<outputDirectory>
${project.build.directory}/frontend/v${node.version}${node.download.classifier}
</outputDirectory>
</configuration>
</execution>
<execution>
<id>
get-npm
</id>
<phase>
initialize
</phase>
<goals>
<goal>
wget
</goal>
</goals>
<configuration>
<url>
http://registry.npmjs.org/npm/-/npm-${npm.version}.tgz
</url>
<unpack>
false
</unpack>
<outputDirectory>
${project.build.directory}/frontend/
</outputDirectory>
<outputFileName>
npm-${npm.version}.tgz
</outputFileName>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>
gulp-execution
</id>
<activation>
...
...
@@ -716,27 +619,28 @@ THE SOFTWARE.
<execution>
<phase>
initialize
</phase>
<id>
install node and
npm
</id>
<id>
install node and
yarn
</id>
<goals>
<goal>
install-node-and-
npm
</goal>
<goal>
install-node-and-
yarn
</goal>
</goals>
<configuration>
<nodeVersion>
v${node.version}
</nodeVersion>
<
npmVersion>
${npm.version}
</npm
Version>
<
!-- Use the pre-download node and npm packages. See download-maven-plugin config above. --
>
<
downloadRoot>
${project.baseUri}target/frontend/
</downloadRoot
>
<
yarnVersion>
v${yarn.version}
</yarn
Version>
<
nodeDownloadRoot>
https://repo.jenkins-ci.org/nodejs-dist/
</nodeDownloadRoot
>
<
!-- tried to create a mirror for yarnDownloadRoot but it did not work --
>
</configuration>
</execution>
<execution>
<phase>
initialize
</phase>
<id>
npm
install
</id>
<id>
yarn
install
</id>
<goals>
<goal>
npm
</goal>
<goal>
yarn
</goal>
</goals>
<configuration>
<!-- Note that this may not be omitted lest maven-release-plugin be confused (frontend-maven-plugin #109): -->
<arguments>
install
</arguments>
<!-- ensure only one concurrent 'yarn install' -->
<!-- when yarn cache is empty, multiple yarns performing network fetches frequently results in opaque errors -->
<arguments>
--mutex network
</arguments>
</configuration>
</execution>
...
...
war/yarn.lock
0 → 100644
浏览文件 @
0491279d
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录