-
Notifications
You must be signed in to change notification settings - Fork 22
Developer Workflow
Daniel Weck edited this page Aug 9, 2019
·
14 revisions
Note that a special branch and build system is required to integrate the Ace core components (i.e. this ace
mono-repository) into the Ace App project (ace-gui
repository). Please visit this dedicated wiki page to learn more.
-
cd MY_ACE_FOLDER
(choose your folder name / filesystem location) git clone https://github.com/daisy/ace.git
cd ace
-
git checkout master
(or any other suitable branch) -
yarn clean-node-modules
orrm -rf node_modules && rm -rf packages/*/node_modules
(this is really only needed ifyarn install
was already invoked) -
yarn clean-libs
orrm -rf packages/*/lib
(this is really only needed ifyarn build
was already invoked) -
rm yarn.lock
(advanced step: this is not normally necessary, and should only be used to upgrade NPM dependencies, use with caution!) -
yarn cache clean
(this step is optional, only necessary if the package cache is causing issues) -
yarn install
(this will automatically invokeyarn build
) -
git status && git --no-pager diff
(advanced step: this should showyarn.lock
changes ifrm yarn.lock
was previously called)
yarn test
yarn test-cli
yarn test-electron
yarn test-electron-cli
-
yarn build
: invoke this script any time the source code is modified, in order to ensure thelib
subfolders of each Ace package are re-generated. -
node packages/ace-cli/bin/ace.js -V -f -o "PATH_TO_OUTPUT_FOLDER" "PATH_TO_EPUB_FILE"
: this is just an example of how to run the locally-built Ace CLI.
-
ncu
is recommended to discover out of date NPM packages, and to subsequentlyyarn upgrade
orrm -rf node_modules && rm yarn.lock && yarn install
(which, in both cases, will updateyarn.lock
to match frozen versions of the latest available and approved dependencies).
Please visit this dedicated wiki page to learn more about how language resources are created and maintained.