Skip to content
This repository has been archived by the owner on Sep 10, 2023. It is now read-only.

Commit

Permalink
Start working on Yard (Issue neard/neard#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-max committed Jun 17, 2017
0 parents commit 0770949
Show file tree
Hide file tree
Showing 16 changed files with 128 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Eclipse
/.settings
/.buildpath
/.project
/.jsdtscope
/*.launch

# Jetbrains
/*.iml

# Neard
/.dev
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

## r1 (2017/06/16)

* Initial version with release 0.24.6 (Issue #157)
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[![GitHub release](https://img.shields.io/github/release/crazy-max/neard-tool-yarn.svg?style=flat-square)](https://github.com/crazy-max/neard-tool-yarn/releases/latest)
![Total downloads](https://img.shields.io/github/downloads/crazy-max/neard-tool-yarn/total.svg?style=flat-square)

This a module of [Neard project](https://github.com/crazy-max/neard) involving Yarn.

## Documentation and downloads

http://neard.io/tools/yarn

## Issues

Issues must be reported on [Neard repository](https://github.com/crazy-max/neard/issues).
1 change: 1 addition & 0 deletions bin/yarn0.24.6/deps.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs = https://github.com/crazy-max/neard-modules-untouched/releases/download/yarn-r1/node-v6.11.0-x86.msi
4 changes: 4 additions & 0 deletions bin/yarn0.24.6/neard.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
yarnVersion = "0.24.6"
yarnExe = "yarn.bat"

bundleRelease = "@RELEASE_VERSION@"
1 change: 1 addition & 0 deletions bin/yarn0.24.6/nodejs/etc/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

5 changes: 5 additions & 0 deletions bin/yarn0.24.6/nodejs/etc/npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cache = ~NEARD_WIN_PATH~\tmp\npm-cache
globalconfig = ~NEARD_WIN_PATH~\tools\yarn\yarn0.24.6\nodejs\etc\npmrc
globalignorefile = ~NEARD_WIN_PATH~\tools\yarn\yarn0.24.6\nodejs\etc\.npmignore
init-module = ~NEARD_WIN_PATH~\tools\yarn\yarn0.24.6\nodejs\etc\.npm-init.js
userconfig = ~NEARD_WIN_PATH~\tools\yarn\yarn0.24.6\nodejs\etc\npmrc
5 changes: 5 additions & 0 deletions bin/yarn0.24.6/nodejs/etc/npmrc.nrd
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cache = ~NEARD_WIN_PATH~\tmp\npm-cache
globalconfig = ~NEARD_WIN_PATH~\tools\yarn\yarn0.24.6\nodejs\etc\npmrc
globalignorefile = ~NEARD_WIN_PATH~\tools\yarn\yarn0.24.6\nodejs\etc\.npmignore
init-module = ~NEARD_WIN_PATH~\tools\yarn\yarn0.24.6\nodejs\etc\.npm-init.js
userconfig = ~NEARD_WIN_PATH~\tools\yarn\yarn0.24.6\nodejs\etc\npmrc
1 change: 1 addition & 0 deletions bin/yarn0.24.6/nodejs/node_modules/npm/npmrc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions bin/yarn0.24.6/nodejs/node_modules/npm/npmrc.nrd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions bin/yarn0.24.6/nodejs/version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6.11.0
2 changes: 2 additions & 0 deletions bin/yarn0.24.6/yarn.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@ECHO OFF
"%~dp0\nodejs\node.exe" "%~dp0\bin\yarn.js" %*
2 changes: 2 additions & 0 deletions bin/yarn0.24.6/yarnpkg.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@ECHO OFF
"%~dp0\yarn.bat" %*
6 changes: 6 additions & 0 deletions build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
bundle.name = yarn
bundle.release = r1
bundle.type = tools
bundle.format = 7z

#build.path = C:/neard-build
69 changes: 69 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="neard-tool-yarn" basedir=".">

<dirname property="project.basedir" file="${ant.file.neard-tool-yarn}"/>
<property name="root.dir" location="${project.basedir}/.."/>
<property name="build.properties" value="${project.basedir}/build.properties"/>
<property file="${build.properties}"/>

<!-- Neard dev -->
<property name="neard-dev.path" location="${root.dir}/neard-dev"/>
<fail unless="neard-dev.path" message="Project 'neard-dev' not found in ${neard-dev.path}"/>
<echo message="Neard dev found in ${neard-dev.path}" level="debug"/>

<!-- Import build-commons.xml -->
<import file="${neard-dev.path}/build/build-commons.xml"/>
<!-- Import build-bundle.xml -->
<import file="${neard-dev.path}/build/build-bundle.xml"/>

<target name="release.build">
<basename property="bundle.folder" file="${bundle.path}"/>
<replaceproperty src="bundle.folder" dest="bundle.version" replace="${bundle.name}" with=""/>

<getmoduleuntouched name="${bundle.name}" version="${bundle.version}" propSrcDest="bundle.srcdest" propSrcFilename="bundle.srcfilename"/>
<assertfile file="${bundle.srcdest}/${bundle.srcfilename}"/>

<property name="msiextract.path" value="${bundle.srcdest}/extract"/>
<extractmsi file="${bundle.srcdest}/${bundle.srcfilename}" dest="${msiextract.path}"/>
<property name="bundle.srcfinal" value="${msiextract.path}/Yarn"/>
<assertfile file="${bundle.srcfinal}/bin/yarn.js"/>

<!-- Temp copy -->
<copy todir="${bundle.srcfinal}" overwrite="true">
<fileset dir="${bundle.path}" defaultexcludes="yes"/>
</copy>

<!-- Deps -->
<if>
<available file="${bundle.srcfinal}/deps.properties" type="file"/>
<then>
<property prefix="yarn" file="${bundle.srcfinal}/deps.properties"/>
<!-- nodejs -->
<if>
<isset property="yarn.nodejs"/>
<then>
<property name="nodejs.path" value="${bundle.srcdest}/nodejs"/>
<download url="${yarn.nodejs}" returnProperty="nodejs.dest"/>
<extractmsi file="${nodejs.dest}" dest="${nodejs.path}"/>
<assertfile file="${nodejs.path}/nodejs/node.exe"/>
<copy todir="${bundle.srcfinal}/nodejs" overwrite="true">
<fileset dir="${nodejs.path}/nodejs"/>
</copy>
</then>
</if>
<delete file="${bundle.srcfinal}/deps.properties"/>
</then>
</if>

<delete dir="${bundle.tmp.prep.path}/${bundle.folder}"/>
<mkdir dir="${bundle.tmp.prep.path}/${bundle.folder}"/>
<copy todir="${bundle.tmp.prep.path}/${bundle.folder}" overwrite="true">
<fileset dir="${bundle.srcfinal}"/>
</copy>
<copy todir="${bundle.tmp.prep.path}/${bundle.folder}" overwrite="true">
<fileset dir="${bundle.path}" defaultexcludes="yes" excludes="
deps.properties"
/>
</copy>
</target>
</project>
1 change: 1 addition & 0 deletions releases.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.24.6 = https://github.com/crazy-max/neard-tool-yarn/releases/download/r1/neard-yarn-0.24.6-r1.7z

0 comments on commit 0770949

Please sign in to comment.