Ankush Menat
121533cf13
refactor: remove chalk dependency
2021-10-20 12:46:05 +05:30
gavin
fbe925b42c
Merge pull request #14238 from resilient-tech/autoreload_on_build
...
feat: automatically reload web pages whenever JS/CSS assets are rebuilt
2021-10-19 14:13:04 +05:30
Sagar Vora
770bda8cc6
fix: use cint, as os.environ only contains string values
2021-10-19 04:04:00 +05:30
Pruthvi Patel
d99403393a
fix: rename auto-reload to live-reload
2021-10-18 17:52:33 +05:30
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>
2021-10-08 11:40:31 +05:30
Gavin D'souza
d8020672b0
refactor(minor): Built Assets Management
2021-09-21 16:20:15 +05:30
Sagar Vora
01d69b67c7
feat: automatically reload web pages whenever JS/CSS assets are rebuilt
2021-09-17 12:33:36 +05:30
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.
2021-09-03 12:02:59 +05:30
Gavin D'souza
4e7526066f
Merge branch 'develop' into drop-py2-code
2021-05-28 10:51:39 +05:30
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
2021-05-27 11:50:56 +05:30
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
2021-05-26 15:31:29 +05:30
Gavin D'souza
33ba6494f8
Merge branch 'develop' into deprecation-warnings
2021-05-19 13:18:13 +05:30
Gavin D'souza
8328e03d0d
fix: Unstrip better to handle multi line outputs in smaller
...
terminal sizes
2021-05-19 13:17:29 +05:30
Faris Ansari
f6cd91be58
fix: Show warning for incompatible node version
2021-05-18 16:47:38 +05:30
Faris Ansari
f8ca990a83
Merge remote-tracking branch 'upstream/develop' into esbuild
2021-05-16 11:26:43 +05:30
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
2021-05-13 12:28:22 +05:30
Gavin D'souza
085290630e
fix(build): Use NamedTemporaryFile from mktemp
2021-05-13 11:11:45 +05:30
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
2021-05-12 21:00:18 +05:30
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
2021-05-11 21:15:20 +05:30
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
2021-05-11 20:09:21 +05:30
Gavin D'souza
e54b1d5835
refactor: Link static assets from apps to sites/assets
2021-05-11 15:23:02 +05:30
Gavin D'souza
b5a121a1cb
fix: Drop compatability code
...
* Use raw text for regex patterns to avoid Deprecation warnings
2021-05-11 15:19:35 +05:30
Faris Ansari
41d9bc64e1
fix: Run build command only in bench build
2021-05-07 14:49:19 +05:30
Faris Ansari
add84065ad
Merge remote-tracking branch 'upstream/develop' into esbuild
2021-05-07 12:55:04 +05:30
Gavin D'souza
0ad122421d
fix: Don't hide warnings unnecessarily
2021-05-05 18:51:51 +05:30
Faris Ansari
d290f41abd
fix: Support for built assets downloading
2021-05-04 06:52:07 +05:30
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
2021-05-02 15:13:41 +05:30
Suraj Shetty
358a9fabea
fix: max_old_space_size limit for node processes ( #12494 )
...
Co-authored-by: Gavin D'souza <gavin18d@gmail.com>
2021-03-01 16:43:18 +05:30
Aditya Hase
9614886fa5
perf: Remove requests from import tree
2021-02-19 21:14:12 +05:30
Gavin D'souza
f1cd3388ba
style: Black-ish + fixed typos + Optimized imports
2020-11-17 16:29:54 +05:30
Gavin D'souza
86dd74f277
perf: Maintain set of created paths to reduce path.exists calls
2020-10-13 17:53:46 +05:30
Gavin D'souza
f5e1cdc5ce
fix: Restore assets during bench init
2020-10-13 17:25:05 +05:30
Gavin D'souza
043e6804f4
chore: Add error message if something goes wrong
2020-09-08 19:45:26 +05:30
Gavin D'souza
7f61fa68fc
fix: Consistent spacing and cases for messages
2020-09-08 16:01:59 +05:30
Gavin D'souza
5cf3b2416c
chore: Drop dead code
2020-09-08 15:30:09 +05:30
Gavin D'souza
1fa5ca0ef7
fix: Use tarfile lib instead of tar UNIX tool
...
style: Fix UX to show more outputs
2020-09-08 15:29:09 +05:30
Gavin D'souza
1c3bc937d9
fix: Sider
2020-09-07 17:05:28 +05:30
Gavin D'souza
f975da1cbf
fix: URL Fixes and code restructure
2020-09-07 16:55:43 +05:30
Gavin D'souza
e9cba25b59
style: Black
2020-09-07 15:15:46 +05:30
Gavin D'souza
f53fe3e854
feat: Ship Built Assets
2020-09-07 15:14:37 +05:30
Gavin D'souza
3418e84466
refactor: updated variable name + style fixes
2020-01-04 10:53:53 +05:30
Gavin D'souza
04bc216966
fix: python 2 compatibility for symlink creation
2020-01-02 10:10:55 +05:30
Gavin D'souza
658fcac454
fix: avoid race condition to create symlinks
2020-01-02 10:10:53 +05:30
Gavin D'souza
49fc64618a
fix: bench build "Cannot link {assets} to {site assets}"
2020-01-02 10:05:47 +05:30
Nabin Hait
b0f9001c72
fix: Ignore symlinks during bench build ( #7162 )
2019-03-29 20:05:16 +05:30
Faris Ansari
41fafd8b5e
fix: Linting
2019-03-02 14:07:12 +05:30
Faris Ansari
c17758a378
fix: Import order
2019-02-26 16:55:27 +05:30
Faris Ansari
d5f2771cb1
fix: Dont symlink node_modules if no public folder
2019-02-19 18:03:47 +05:30
Faris Ansari
d3340ae5e9
fix(build): Symlink app node_modules in public folder
2018-11-07 11:32:20 +05:30
Charles-Henri Decultot
09cdb2f39b
[Fix] In-app documentation ( #6185 )
...
* In-app documentation correction
* In app images fix proposal
2018-10-05 11:29:37 +05:30