Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLEANUP] Rename build folders #543

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[TASK] Move JavaScript from build/Source to Resources/Private
extcode committed Jun 21, 2024
commit 99c9c5e780c4ec5f549f8665d2bc82f5b4800a64
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -43,11 +43,11 @@ jobs:

- name: Install modules based on package-lock.json
run: npm install
working-directory: ./build/Sources
working-directory: ./

- name: Run ESLint
run: npm run lint
working-directory: ./build/Sources
working-directory: ./

coding-guideline:
runs-on: ubuntu-latest
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -17,5 +17,5 @@ vendor/
phpunit.coverage.xml
phpunit.report.xml

build/Sources/node_modules
node_modules/
package-lock.json
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions build/Sources/package.json → package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"scripts": {
"build": "esbuild JavaScript/add_to_cart.js JavaScript/change_be_variant.js JavaScript/prevent_multi_submit.js JavaScript/update_country.js JavaScript/update_currency.js JavaScript/update_payment_shipping.js --bundle --outdir=../../Resources/Public/JavaScript",
"lint": "./node_modules/.bin/eslint JavaScript/"
"build": "node_modules/.bin/esbuild Resources/Private/JavaScript/add_to_cart.js Resources/Private/JavaScript/change_be_variant.js Resources/Private/JavaScript/prevent_multi_submit.js Resources/Private/JavaScript/update_country.js Resources/Private/JavaScript/update_currency.js Resources/Private/JavaScript/update_payment_shipping.js --bundle --outdir=../Resources/Public/JavaScript",
"lint": "node_modules/.bin/eslint Resources/Private/JavaScript"
},
"devDependencies": {
"@eslint/eslintrc": "^3.0.2",
3 changes: 3 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -4,6 +4,8 @@
}:

let
nodejs = pkgs.nodejs_20;

php = pkgs.${phpVersion}.buildEnv {
extensions = { enabled, all }: enabled ++ (with all; [
xdebug
@@ -92,6 +94,7 @@ in pkgs.mkShell {
buildInputs = [
php
composer
nodejs
projectInstall
projectCgl
projectCglFix
Loading