A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/bootstrap-vue/bootstrap-vue/commit/3828f59 below:

remove deprecated `es/` build (#3604) · bootstrap-vue/bootstrap-vue@3828f59 · GitHub

Expand file treeCollapse file tree 104 files changed

+395

-639

lines changed Original file line number Diff line number Diff line change

@@ -125,14 +125,13 @@

125 125 126 126

<aside class="alert alert-warning my-4">

127 127

<p class="mb-0">

128 -

<b-badge variant="warning" tag="strong">Deprecation Warning as of v2.0.0-rc.22:</b-badge>

128 +

<b-badge variant="warning" tag="strong">CHANGED as of v2.0.0:</b-badge>

129 129

Importing components, directives and plugins from

130 130

<code class="notranslate" translate="no">bootstrap-vue/es/*</code>

131 -

has been deprecated. All components, directives and plugins are now available as top-level named

131 +

has been removed. All components, directives and plugins are now available as top-level named

132 132

exports in the <code class="notranslate" translate="no">ESM</code> and

133 133

<code class="notranslate" translate="no">CommonJS</code> builds. The

134 -

<code class="notranslate" translate="no">es/</code> directory build will be removed in a future

135 -

release.

134 +

<code class="notranslate" translate="no">es/</code> directory build has been removed.

136 135

</p>

137 136

</aside>

138 137

</section>

@@ -144,6 +143,8 @@ import kebabCase from 'lodash/kebabCase'

144 143

import startCase from 'lodash/startCase'

145 144

import AnchoredHeading from './anchored-heading'

146 145 146 +

const importPath = 'bootstrap-vue'

147 + 147 148

export default {

148 149

name: 'BDVImportdoc',

149 150

components: { AnchoredHeading },

@@ -212,9 +213,8 @@ export default {

212 213

},

213 214

directiveImportCode() {

214 215

const firstDirective = this.directives[0]

215 -

const firstDirectiveImport = this.directiveImports[0]

216 216

return [

217 -

`import { ${firstDirective} } from '${firstDirectiveImport.importPath}'`,

217 +

`import { ${firstDirective} } from '${importPath}'`,

218 218

"// Note: Vue automatically prefixes the directive name with 'v-'",

219 219

`Vue.directive('${this.directiveName(firstDirective)}', ${firstDirective})`

220 220

].join('\n')

Original file line number Diff line number Diff line change

@@ -13,28 +13,20 @@ echo 'Done.'

13 13

echo ''

14 14 15 15

# Cleanup

16 -

rm -rf dist es esm

16 +

rm -rf dist esm

17 17 18 18

echo 'Compile JS...'

19 19

rollup -c scripts/rollup.config.js

20 20

echo 'Done.'

21 21

echo ''

22 22 23 -

echo 'Build ESM modules...'

23 +

echo 'Compiling ESM modular build...'

24 24

NODE_ENV=esm babel src --out-dir esm --ignore 'src/**/*.spec.js'

25 -

rm -f esm/legacy-es.js esm/browser.js

25 +

rm -f esm/browser.js

26 26

echo "${BV_BANNER}" | cat - esm/index.js > esm/tmp.js && mv -f esm/tmp.js esm/index.js

27 27

echo 'Done.'

28 28

echo ''

29 29 30 -

echo 'Build ES modules (deprecated)...'

31 -

NODE_ENV=es babel src --out-dir es --ignore 'src/**/*.spec.js'

32 -

rm -f es/index.js es/browser.js

33 -

echo "${BV_BANNER}" | cat - es/legacy-es.js > es/index.js

34 -

rm -f es/legacy-es.js

35 -

echo 'Done.'

36 -

echo ''

37 - 38 30

echo 'Minify JS...'

39 31

terser dist/bootstrap-vue.js \

40 32

--compress typeofs=false \

@@ -78,29 +70,16 @@ echo 'Done.'

78 70

echo ''

79 71 80 72

echo 'Copying types from src/ to esm/ ...'

81 -

# There must be a better way to do this

73 +

# This may no longer be needed, as all exports are at top level now.

82 74

#

83 -

# The following does not preserve the paths

84 -

# shopt -s globstar

85 -

# cp src/**/*.d.ts es

86 -

#

87 -

# So we resort to a find with exec

88 -

cd src

89 -

find . -type f -name '*.d.ts' -exec cp {} ../esm/{} ';'

90 -

cd ..

91 -

echo 'Done.'

92 -

echo ''

93 - 94 -

echo 'Copying types from src/ to es/ ...'

95 75

# There must be a better way to do this

96 -

#

97 76

# The following does not preserve the paths

98 77

# shopt -s globstar

99 78

# cp src/**/*.d.ts es

100 79

#

101 80

# So we resort to a find with exec

102 81

cd src

103 -

find . -type f -name '*.d.ts' -exec cp {} ../es/{} ';'

82 +

find . -type f -name '*.d.ts' -exec cp {} ../esm/{} ';'

104 83

cd ..

105 84

echo 'Done.'

106 85

echo ''

Original file line number Diff line number Diff line change

@@ -2,4 +2,3 @@ import Vue, { PluginFunction, PluginObject } from 'vue'

2 2

import { BvPlugin } from './'

3 3 4 4

export declare const BVConfigPlugin: BvPlugin

5 -

export default BVConfigPlugin

Original file line number Diff line number Diff line change

@@ -3,6 +3,4 @@

3 3

//

4 4

import { pluginFactory } from './utils/plugins'

5 5 6 -

const BVConfigPlugin = /*#__PURE__*/ pluginFactory()

7 - 8 -

export default BVConfigPlugin

6 +

export const BVConfigPlugin = /*#__PURE__*/ pluginFactory()

Original file line number Diff line number Diff line change

@@ -6,7 +6,6 @@ import { BvPlugin, BvComponent } from '../../'

6 6 7 7

// Plugin

8 8

export declare const AlertPlugin: BvPlugin

9 -

export default AlertPlugin

10 9 11 10

// Component: b-alert

12 11

export declare class BAlert extends BvComponent {

Original file line number Diff line number Diff line change

@@ -6,5 +6,3 @@ const AlertPlugin = /*#__PURE__*/ pluginFactory({

6 6

})

7 7 8 8

export { AlertPlugin, BAlert }

9 - 10 -

export default AlertPlugin

Original file line number Diff line number Diff line change

@@ -6,7 +6,6 @@ import { BvPlugin, BvComponent } from '../../'

6 6 7 7

// Plugin

8 8

export declare const BadgePlugin: BvPlugin

9 -

export default BadgePlugin

10 9 11 10

// Component: b-badge

12 11

export declare class BBadge extends BvComponent {}

Original file line number Diff line number Diff line change

@@ -6,5 +6,3 @@ const BadgePlugin = /*#__PURE__*/ pluginFactory({

6 6

})

7 7 8 8

export { BadgePlugin, BBadge }

9 - 10 -

export default BadgePlugin

Original file line number Diff line number Diff line change

@@ -6,7 +6,6 @@ import { BvPlugin, BvComponent } from '../../'

6 6 7 7

// Plugin

8 8

export declare const BreadcrumbPlugin: BvPlugin

9 -

export default BreadcrumbPlugin

10 9 11 10

// Component: b-breadcrumb

12 11

export declare class BBreadcrumb extends BvComponent {}

Original file line number Diff line number Diff line change

@@ -8,5 +8,3 @@ const BreadcrumbPlugin = /*#__PURE__*/ pluginFactory({

8 8

})

9 9 10 10

export { BreadcrumbPlugin, BBreadcrumb, BBreadcrumbItem, BBreadcrumbLink }

11 - 12 -

export default BreadcrumbPlugin

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4