File tree Expand file tree Collapse file tree 4 files changed +24
-3
lines changed
dash_bootstrap_components Expand file tree Collapse file tree 4 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 1717 "relative_package_path" : (
1818 "_components/dash_bootstrap_components.min.js"
1919 ),
20+ "external_url" : (
21+ "https://unpkg.com/dash-bootstrap-components@{}"
22+ "/dist/dash_bootstrap_components.min.js"
23+ ).format (__version__ ),
2024 "namespace" : "dash_bootstrap_components" ,
2125 }
2226]
Original file line number Diff line number Diff line change @@ -9,6 +9,17 @@ function cleanLib() {
99 return del ( [ 'lib/*' ] ) ;
1010}
1111
12+ function cleanDist ( ) {
13+ mkdirp . sync ( 'dist' ) ;
14+ return del ( [ 'dist/*' ] ) ;
15+ }
16+
17+ function copyDist ( ) {
18+ return src (
19+ 'dash_bootstrap_components/_components/dash_bootstrap_components.min.js'
20+ ) . pipe ( dest ( 'dist/' ) ) ;
21+ }
22+
1223function cleanComponents ( ) {
1324 return del ( [ 'dash_bootstrap_components/_components/*' ] ) ;
1425}
@@ -49,9 +60,15 @@ function addThemesToRNamespace() {
4960 . pipe ( dest ( '.' , { overwrite : true } ) ) ;
5061}
5162
52- exports . postPyBuild = series ( copyGeneratedFiles , cleanGeneratedFiles ) ;
53- exports . clean = parallel ( cleanGeneratedFiles , cleanComponents , cleanLib ) ;
63+ exports . postPyBuild = series ( copyDist , copyGeneratedFiles , cleanGeneratedFiles ) ;
64+ exports . clean = parallel (
65+ cleanGeneratedFiles ,
66+ cleanComponents ,
67+ cleanLib ,
68+ cleanDist
69+ ) ;
5470exports . postRBuild = series (
71+ copyDist ,
5572 copyGeneratedFiles ,
5673 cleanGeneratedFiles ,
5774 addThemesToRNamespace
Original file line number Diff line number Diff line change 2020 "test:watch" : " jest --watch"
2121 },
2222 "files" : [
23+ " dist/dash_bootstrap_components.min.js" ,
2324 " lib" ,
2425 " src" ,
2526 " LICENSE.txt" ,
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ var NODE_ENV = process.env.NODE_ENV || 'development';
1111var environment = JSON . stringify ( NODE_ENV ) ;
1212
1313var LIBRARY_NAME = 'dash-bootstrap-components' ;
14- var BUILD_PATH = path . join ( directories . ROOT , LIBRARY_NAME , '_components' ) ;
1514
1615/* eslint-disable no-console */
1716console . log ( 'Current environment: ' + environment ) ;
You can’t perform that action at this time.
0 commit comments