This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
Replace Grunt-based build system with simple scripts - #12410
Merged
Merged
Conversation
...as we don't need that function to be reusable anymore. We can always extract it later if needed.
We need to do this so we can transpile everything in place, but then we should be able to run electron-packager directly on this directory.
...and use the same versions found on the root package.json.
nathansobo
force-pushed
the
ns-modernize-build
branch
from
August 25, 2016 14:23
a20819b to
f3d05f9
Compare
# Conflicts: # build/tasks/build-task.coffee
as-cii
force-pushed
the
ns-modernize-build
branch
from
August 29, 2016 08:40
ebf68e7 to
9ee9db4
Compare
added 7 commits
August 29, 2016 11:41
Contributor
|
📈 🎆 ❗ |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Our existing Grunt-based build system is really difficult to follow, so this PR replaces it with a simpler approach involving plain old JavaScript.
The
builddirectory is deleted, and instead thescriptdirectory takes on an expanded role, getting its ownpackage.jsonandlibdirectories to support an overhauled version ofscript/bootstrap,script/build, andscript/test. Instead of relying on Grunt, we do everything via functions defined in thescript/libdirectory.Build script
The basic structure of the new build script is as follows:
atom/out/appout/appis a valid Electron app that doesn't require transpilation support to run.electron-packageronout/appto package it into a distributable application on the current platform.This is all designed to run only on third-party build providers (CircleCI for macOS, Travis for Linux, and AppVeyor on Windows). We've put zero effort into making these scripts run on internal Janky boxes.
Release publishing plan
We deliberately omit the artifact uploading step, because our plan is to orchestrate release publishing outside of the build. We'll rely on the build services to store artifacts associated with all builds, and when we're ready to release we'll have a script download these artifacts from Circle, Travis, and AppVeyor and upload them to the releases API and S3. This will help to ensure that all artifacts stay in sync based on a specific commit SHA.
Tasks
--installflag.debpackage.rpmpackagescript/lint