Gavin D'souza
d72aeca18f
chore!: Deprecate frappe.utils.minify
* Remove dead code from build.py
* Whitespaces & imports style fixes
3 years ago
Ankush Menat
121533cf13
refactor: remove chalk dependency
3 years ago
Sagar Vora
770bda8cc6
fix: use `cint`, as `os.environ` only contains string values
3 years ago
Pruthvi Patel
d99403393a
fix: rename `auto-reload` to `live-reload`
3 years ago
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 years ago
Gavin D'souza
d8020672b0
refactor(minor): Built Assets Management
3 years ago
Sagar Vora
01d69b67c7
feat: automatically reload web pages whenever JS/CSS assets are rebuilt
3 years ago
Gavin D'souza
3446026555
chore: Update header: license.txt => LICENSE
The license.txt file has been replaced with LICENSE for quite a while
now. INAL but it didn't seem accurate to say "hey, checkout license.txt
although there's no such file". Apart from this, there were
inconsistencies in the headers altogether...this change brings
consistency.
3 years ago
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 years ago
Gavin D'souza
e407b78506
chore: Drop dead and deprecated code
* Remove six for PY2 compatability since our dependencies are not, PY2
is legacy.
* Removed usages of utils from future/past libraries since they are
deprecated. This includes 'from __future__ ...' and 'from past...'
statements.
* Removed compatibility imports for PY2, switched from six imports to
standard library imports.
* Removed utils code blocks that handle operations depending on PY2/3
versions.
* Removed 'from __future__ ...' lines from templates/code generators
* Used PY3 syntaxes in place of PY2 compatible blocks. eg: metaclass
4 years ago
Gavin D'souza
8328e03d0d
fix: Unstrip better to handle multi line outputs in smaller
terminal sizes
4 years ago
Faris Ansari
f6cd91be58
fix: Show warning for incompatible node version
4 years ago
Gavin D'souza
7930b84b71
Revert "fix(build): Use NamedTemporaryFile from mktemp"
This reverts commit 085290630e
.
Breaks via https://github.com/frappe/frappe/pull/13145/checks?check_run_id=2573309928
4 years ago
Gavin D'souza
085290630e
fix(build): Use NamedTemporaryFile from mktemp
4 years ago
Gavin D'souza
6581ed886a
Revert "fix: Don't re-copy node_modules if public already has it"
This reverts commit 548eb079c8
.
Seems to break UI components. Learnt this from Cypress UI tests
ref: https://github.com/frappe/frappe/pull/13145/checks?check_run_id=2567366717
4 years ago
Gavin D'souza
098f1564f3
refactor: bench build
* Deprecate --make-copy and --restore options for build in favour of --hard-link
* Show feedback for linking/copying application assets
4 years ago
Gavin D'souza
548eb079c8
fix: Don't re-copy node_modules if public already has it
public folder already has a symlink to node_modules. So we can just
check if the realpath already exists and ignore copying it again if the
same exists
4 years ago
Gavin D'souza
e54b1d5835
refactor: Link static assets from apps to sites/assets
4 years ago
Gavin D'souza
b5a121a1cb
fix: Drop compatability code
* Use raw text for regex patterns to avoid Deprecation warnings
4 years ago
Faris Ansari
41d9bc64e1
fix: Run build command only in bench build
4 years ago
Gavin D'souza
0ad122421d
fix: Don't hide warnings unnecessarily
4 years ago
Faris Ansari
d290f41abd
fix: Support for built assets downloading
4 years ago
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 years ago
Suraj Shetty
358a9fabea
fix: max_old_space_size limit for node processes ( #12494 )
Co-authored-by: Gavin D'souza <gavin18d@gmail.com>
4 years ago
Aditya Hase
9614886fa5
perf: Remove requests from import tree
4 years ago
Gavin D'souza
f1cd3388ba
style: Black-ish + fixed typos + Optimized imports
4 years ago
Gavin D'souza
86dd74f277
perf: Maintain set of created paths to reduce path.exists calls
4 years ago
Gavin D'souza
f5e1cdc5ce
fix: Restore assets during bench init
4 years ago
Gavin D'souza
043e6804f4
chore: Add error message if something goes wrong
4 years ago
Gavin D'souza
7f61fa68fc
fix: Consistent spacing and cases for messages
4 years ago
Gavin D'souza
5cf3b2416c
chore: Drop dead code
4 years ago
Gavin D'souza
1fa5ca0ef7
fix: Use tarfile lib instead of tar UNIX tool
style: Fix UX to show more outputs
4 years ago
Gavin D'souza
1c3bc937d9
fix: Sider
4 years ago
Gavin D'souza
f975da1cbf
fix: URL Fixes and code restructure
4 years ago
Gavin D'souza
e9cba25b59
style: Black
4 years ago
Gavin D'souza
f53fe3e854
feat: Ship Built Assets
4 years ago
Gavin D'souza
3418e84466
refactor: updated variable name + style fixes
5 years ago
Gavin D'souza
04bc216966
fix: python 2 compatibility for symlink creation
5 years ago
Gavin D'souza
658fcac454
fix: avoid race condition to create symlinks
5 years ago
Gavin D'souza
49fc64618a
fix: bench build "Cannot link {assets} to {site assets}"
5 years ago
Nabin Hait
b0f9001c72
fix: Ignore symlinks during bench build ( #7162 )
6 years ago
Faris Ansari
41fafd8b5e
fix: Linting
6 years ago
Faris Ansari
c17758a378
fix: Import order
6 years ago
Faris Ansari
d5f2771cb1
fix: Dont symlink node_modules if no public folder
6 years ago
Faris Ansari
d3340ae5e9
fix(build): Symlink app node_modules in public folder
6 years ago
Charles-Henri Decultot
09cdb2f39b
[Fix] In-app documentation ( #6185 )
* In-app documentation correction
* In app images fix proposal
6 years ago
Faris Ansari
a70d56fd04
Website related fixes ( #5660 )
* bench build --app app_name
* Use highlight.js as npm package
* Add fenced-code-blocks to markdown compiler
* Support for next-prev links
7 years ago
Faris Ansari
55e5b473d0
Better messages for build commands ( #5117 )
* Better rollup messages in console
* Remove 'docs folder not found' warning
* Show production message
* fix codacy
7 years ago
Achilles Rasquinha
1e438a0fad
revert to npm if yarn doesnt exist ( #5058 )
7 years ago
Faris Ansari
55b012f1b4
Check for yarn before bench build ( #5047 )
7 years ago