mergify[bot]
a8fa47ebef
build: reliable asset building in production (backport #18133 ) ( #18136 )
* build: move all devDependencies to Dependencies
These are real dependencies without which you can't locally build apps.
(cherry picked from commit 06aaaaaedf
)
* fix: fail code when build fails in production
In production it is useful to fail with proper exit code. To avoid
silently pushing bad assets in built pipelines.
(cherry picked from commit 1ba99396bc
)
Co-authored-by: Ankush Menat <ankush@frappe.io>
пре 2 година
Ankush Menat
727adb1054
fix(DX): reduce retry count for esbuild-redis
closes https://github.com/frappe/frappe/issues/17976
пре 2 година
Ankush Menat
5d6b24f0b1
style: format JS files with prettier
(cherry picked from commit 40f27f908a
)
пре 2 година
Gavin D'souza
ef234da171
fix: Don't retry asset caching in CI or developer_mode
пре 2 година
Suraj Shetty
eeeef86ae3
fix: Replace node-sass with dart-sass
пре 3 година
Faris Ansari
93169e054d
chore: set esbuild output target to es2017
пре 3 година
Rushabh Mehta
0b8a2edee7
fix(build): separate assets.json and assets-rtl.json to fix concurrency issue
пре 3 година
Suraj Shetty
ccb4475411
build: Pass watchFiles list to auto trigger rebuild process on template change
пре 3 година
Suraj Shetty
24f3123552
build: Use @frappe/esbuild-plugin-postcss2 to auto-trigger rebuild on scss file changes
пре 3 година
Pruthvi Patel
30452c8b9c
style: use `const` instead of `let`
пре 3 година
Pruthvi Patel
c648346742
refactor: a better way to cleanup older assets when newer ones are built
пре 3 година
Sagar Vora
28fce91673
fix: consistent description for Live Reload ( #14554 )
пре 3 година
Pruthvi Patel
3cec476cbc
fix: add whitespace
пре 3 година
Pruthvi Patel
d99403393a
fix: rename `auto-reload` to `live-reload`
пре 3 година
Ankush Menat
e6bbc698d0
ci: fail CI if asset bundling fails ( #14364 )
* ci: fail CI if asset bundling fails
* chore: formatting
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
пре 3 година
Sagar Vora
01d69b67c7
feat: automatically reload web pages whenever JS/CSS assets are rebuilt
пре 3 година
Faris Ansari
f58254db78
fix: poor man's hot reload
пре 3 година
Suraj Shetty
70e4b8a459
fix: Use different key for RTL assets
пре 3 година
Suraj Shetty
6df9fd2bf8
fix: Build asset file from results sequentially
пре 3 година
Suraj Shetty
4ddf8c18d8
feat: Execute separate build command for style files
- Execute style build twice (one for LTR and one for RTL) because rtlcss is dependant on comments and esbuild strips all comments so we cannot run rtlcss on built css files.
пре 3 година
Suraj Shetty
40dd522796
feat: Auto generate RTL styles using rtlcss
https://github.com/MohammadYounes/rtlcss
пре 4 година
Faris Ansari
d20cf5c02f
fix: Check if folder exists before cleaning
If folder doesn't exist, an exception is thrown in node 16
пре 4 година
Faris Ansari
23406d031a
fix: Store assets.json directly in assets folder
assets.json stores assets of all apps, so doesn't make sense to put it in frappe folder
пре 4 година
Faris Ansari
c5c50c290e
fix: redis createClient call
пре 4 година
Faris Ansari
807070282c
fix: Abort redis retries only for esbuild
пре 4 година
Faris Ansari
e711ada61c
fix: build should work even when redis is down
пре 4 година
Faris Ansari
4b39f7f699
fix: Print rebuilt files in watch mode
пре 4 година
Faris Ansari
41d9bc64e1
fix: Run build command only in bench build
пре 4 година
Faris Ansari
555ba2818e
style: sider fixes
пре 4 година
Faris Ansari
fa236fd9c5
style: sider issues
пре 4 година
Faris Ansari
4ea74b24cf
fix: Run build command for apps
пре 4 година
Faris Ansari
f0f43e01c0
fix: Ability to build only specified files
Command:
node esbuild --files frappe/desk.bundle.js
Update only changed keys in assets.json instead of overwriting
пре 4 година
Faris Ansari
9f4edaedbb
fix: bench build command
- Add --apps option
- Add --production option
- Add --apps option for bench watch command
- Add --skip_frappe in esbuild
пре 4 година
Faris Ansari
b175490849
fix: Update assets_json instead of overwriting
When you run build for specific apps, it should remove the entries of other apps
пре 4 година
Faris Ansari
f02ae58105
fix: Remove unused file
пре 4 година
Faris Ansari
0f0f90fe56
fix: index file
пре 4 година
Faris Ansari
ad116c385a
fix: Exit redis after setting value so that process can exit
пре 4 година
Faris Ansari
b22a4ddb08
fix: Rename esbuild/index -> esbuild
пре 4 година
Faris Ansari
adc236e35d
feat: Notify build events to browser
- Update assets_json directly from node
- Show error overlay or success message
- Open file in editor from error overlay
пре 4 година
Faris Ansari
86c0f7f9d6
fix: Use yargs for cli argument parsing
пре 4 година
Faris Ansari
b2cddf73d7
fix: Wrap html templates in template literals
пре 4 година
Faris Ansari
dd69f1ab43
fix: Hash based file naming
- For better HTTP caching and cache busting
- assets.json is created under [app]/dist folder which contains the map
of input file and output file name, this is used to get the correct path for
bundled assets
пре 4 година
Faris Ansari
e20355c798
fix: Common sass_options
пре 4 година
Faris Ansari
62bd7858d7
fix: Rename html plugin
пре 4 година
Faris Ansari
09f5e904a9
fix: Pretty CLI Output
пре 4 година
Faris Ansari
d81340e04b
fix: Build files with a single esbuild call
пре 4 година
Faris Ansari
0076e99ae1
fix: more features
- basic watch mode
- Node paths include all app node_modules and app folders
- rename output directory to "dist"
- output files in flat directories: dist/js and dist/css
пре 4 година
Faris Ansari
4172e1ff97
fix: Compile ts, css, scss, sass, less, styl files
- add support for multiple file types
пре 4 година
Faris Ansari
a0a8f5cb42
fix: Build for all apps
пре 4 година
Faris Ansari
226ad1d91a
feat: New Build System based on esbuild
- Deprecate use of build.json
- *.bundle.js files placed anywhere in the public folder are bundled
- Built files are created in public/build folder which is gitignored
WIP
пре 4 година