-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use
npm
for managing js packages
- Loading branch information
Showing
19 changed files
with
72 additions
and
155 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,9 +49,9 @@ jobs: | |
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.node-version' | ||
cache: 'yarn' | ||
- run: yarn install | ||
- run: yarn run format-check | ||
cache: 'npm' | ||
- run: npm ci | ||
- run: npm run format-check | ||
|
||
rubocop: | ||
permissions: | ||
|
@@ -79,24 +79,6 @@ jobs: | |
# how many fail) | ||
fail-fast: false | ||
matrix: | ||
js_package_manager: | ||
- name: npm | ||
installer: npm | ||
- name: yarn_berry | ||
installer: yarn | ||
linker: pnp | ||
- name: yarn_berry | ||
installer: yarn | ||
linker: node-modules | ||
- name: yarn_berry | ||
installer: yarn | ||
linker: pnpm | ||
- name: yarn_classic | ||
installer: yarn | ||
- name: pnpm | ||
installer: pnpm | ||
- name: bun | ||
installer: bun | ||
variant: | ||
- name: defaults | ||
config_path: 'ackama_rails_template.config.yml' | ||
|
@@ -173,8 +155,8 @@ jobs: | |
with: | ||
node-version-file: '.node-version' | ||
|
||
- name: install package manager | ||
run: npm i -g ${{ matrix.js_package_manager.installer }} | ||
- name: Install latest version of npm | ||
run: npm i -g npm | ||
|
||
# We don't cache gems or JS packages because we are actually testing how | ||
# installation and setup works in this project so, while caching would | ||
|
@@ -192,8 +174,7 @@ jobs: | |
git config --global user.email "[email protected]" | ||
git config --global user.name "Your Name" | ||
# prettier-ignore | ||
- run: ./ci/bin/create-fake-js-package-managers ${{ matrix.js_package_manager.installer }} | ||
- run: ./ci/bin/create-fake-js-package-managers npm | ||
|
||
- name: Run CI script | ||
env: | ||
|
@@ -207,7 +188,4 @@ jobs: | |
PGUSER: postgres | ||
PGPASSWORD: postgres | ||
PGHOST: localhost | ||
PACKAGE_JSON_FALLBACK_MANAGER: ${{ matrix.js_package_manager.name }} | ||
PACKAGE_JSON_YARN_BERRY_LINKER: | ||
${{ matrix.js_package_manager.linker }} | ||
run: ./ci/bin/build-and-test |
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
source_paths.unshift(File.dirname(__FILE__)) | ||
|
||
yarn_add_dependencies %w[@types/bootstrap] | ||
add_js_dependencies %w[@types/bootstrap] | ||
|
||
rename_js_file_to_ts "app/frontend/js/bootstrap" |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.