Skip to content

Commit

Permalink
Update example build phases, upgrade dev tooling/tests, fix build (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
robatron authored Feb 28, 2024
1 parent 6553fd8 commit 4acdc8c
Show file tree
Hide file tree
Showing 23 changed files with 9,749 additions and 18,957 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e-test-bootstrap-apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [macos-latest, ubuntu-latest]
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}

Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
coverage/
node_modules/
node_modules/
package*.json
3 changes: 2 additions & 1 deletion bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ fi
if [ "$APPLE_CMD_LINE_TOOLS_INSTALLING" = "yes" ]; then
log "WAIT! Akinizer bootstrapping is ALMOST complete. Apple Command Line Tools needs to finish installing, then you can run 'gulp' in the same directory as your Akinizer gulpfile."
else
log "Akinizer bootstraping complete! Run 'gulp' in the same directory as your Akinizer gulpfile."
log "Akinizer bootstraping complete! Run 'gulp' in the same directory as your Akinizer gulpfile:"
log ". $HOME/.nvm/nvm.sh && cd $AK_INSTALL_ROOT/examples/ && gulp"
fi

cd examples/
4 changes: 2 additions & 2 deletions examples/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ createTaskTree(
require('./phases/installPython'),
require('./phases/installTerm'),
require('./phases/installDotfiles'),
require('./phases/installDocker'),
// require('./phases/installGUIApps')
// require('./phases/installDocker'),
require('./phases/installGUIApps'),
]),
exports,
);
12 changes: 1 addition & 11 deletions examples/phases/installDotfiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = definePhase('installDotfiles', ACTIONS.RUN_PHASES, [
// Clone the actual dotfiles
t('clone', {
actionCommands: [
`echo "👉 See ${dotfilesRepoUrl} for additional instructions"`,
`echo "👉👉👉 See ${dotfilesRepoUrl} for additional instructions"`,
`${yadmBin} clone ${dotfilesRepoUrl}`,
],
}),
Expand All @@ -40,16 +40,6 @@ module.exports = definePhase('installDotfiles', ACTIONS.RUN_PHASES, [
`${yadmBin} remote set-url origin ${dotfilesRepoUrlSSH}`,
],
}),

// Render alt files
t('renderAlts', {
actionCommands: [`${yadmBin} alt`],
}),

// Decrypt files
t('decrypt', {
actionCommands: [`${yadmBin} decrypt`],
}),
],
{
targetOpts: {
Expand Down
16 changes: 11 additions & 5 deletions examples/phases/installGUIApps.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@ module.exports = definePhase(
'installMacGuiApps',
ACTIONS.INSTALL_PACKAGES,
[
'deluge',
'google-chrome',
'homebrew/cask-drivers/logitech-options',
'iterm2',
// 'deluge',
// 'google-chrome',
// 'homebrew/cask-drivers/logitech-options',
// 'iterm2',

// Prevent the Mac from sleeping
'keepingyouawake',
'spectacle',

// Window management
'rectangle',

// Code editor
'visual-studio-code',
],
{
Expand Down
2 changes: 1 addition & 1 deletion examples/phases/installTerm.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = definePhase('installTerm', ACTIONS.INSTALL_PACKAGES, [
binDir: `${OMZ_DIR}/themes/`,
binSymlink: 'spaceship.zsh-theme',
cloneDir: SPACESHIP_THEME_DIR,
ref: 'c38183d654c978220ddf123c9bdb8e0d3ff7e455',
ref: 'be826cbe2bb11a0675dd71f548ff1396608da7ea',
repoUrl: 'https://github.com/denysdovhan/spaceship-prompt.git',
},
skipAction: () => fileExists(SPACESHIP_THEME_DIR),
Expand Down
4 changes: 4 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ module.exports = {
// A list of reporter names that Jest uses when writing coverage reports
coverageReporters: ['clover', 'json', 'lcov', 'text', 'text-summary'],

// Force jest to use a downgraded version of prettier
// See https://github.com/jestjs/jest/issues/14305
prettierPath: require.resolve('prettier-2'),

// An object that configures minimum threshold enforcement for coverage results
// coverageThreshold: undefined,

Expand Down
Loading

0 comments on commit 4acdc8c

Please sign in to comment.