Skip to content

Commit

Permalink
Use Babel from BuildFiles
Browse files Browse the repository at this point in the history
Reduces the footprint of the working copy.
  • Loading branch information
nikosdion committed Nov 27, 2024
1 parent 266383d commit 2d204ce
Show file tree
Hide file tree
Showing 12 changed files with 68 additions and 3,002 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion .idea/dataSources.local.xml

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

2 changes: 1 addition & 1 deletion .idea/phing.xml

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

8 changes: 5 additions & 3 deletions .idea/watcherTasks.xml

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

64 changes: 34 additions & 30 deletions .idea/workspace.xml

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

25 changes: 23 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,28 @@
<exclude name="media/vendor/web-auth/webauthn-lib/LICENSE" />
</patternset>

<target name="XXXpackage-pkg" description="Installation package" depends="new-release, setup-properties, package-plugins">
<!-- Dependencies are enough -->
<target name="git" description="Makes only packages, not the documentation"
depends="new-release,setup-properties,compile-javascript,component-packages">
</target>

<target name="compile-javascript" description="Transpile and minify JavaScript files">
<exec executable="${dirs.root}/../buildfiles/node_modules/.bin/babel"
dir="${dirs.root}" checkreturn="true">
<env key="NODE_PATH" value="${dirs.root}/../buildfiles/node_modules" />

<arg value="plugins/system/passwordless/media/js" />

<arg value="--config-file" />
<arg value="${dirs.root}/.babelrc.json" />

<arg value="--out-dir" />
<arg value="plugins/system/passwordless/media/js" />

<arg value="--out-file-extension" />
<arg value=".min.js" />

<arg value="--source-maps" />
</exec>
</target>

</project>
Loading

0 comments on commit 2d204ce

Please sign in to comment.