Skip to content

Commit

Permalink
Upgrade bundler.
Browse files Browse the repository at this point in the history
  • Loading branch information
obuchtala committed Sep 2, 2019
1 parent c8d39ed commit d18bee8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
17 changes: 10 additions & 7 deletions make.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* eslint-disable no-template-curly-in-string */
const b = require('substance-bundler')
const rollup = require('substance-bundler/extensions/rollup')

const DIST = 'dist/'
const TMP = 'tmp/'
Expand All @@ -20,7 +21,8 @@ b.task('default', ['publish'])
b.task('build', ['build:lib'])

b.task('build:lib', () => {
b.js('index.es.js', {
rollup(b, {
input: 'index.es.js',
output: [{
file: DIST + 'texture-xml-utils.js',
format: 'umd',
Expand All @@ -31,25 +33,26 @@ b.task('build:lib', () => {
}, {
file: DIST + 'texture-xml-utils.cjs.js',
format: 'cjs'
}, {
file: DIST + 'texture-xml-utils.es.js',
format: 'esm'
}],
external: [ 'substance' ]
})
b.minify(DIST + 'texture-xml-utils.js', {
debug: false
})
})

b.task('build:tests:browser', () => {
b.js('test/index.js', {
output: [{
rollup(b, {
input: 'test/index.js',
output: {
file: TMP + 'tests.js',
format: 'umd',
name: 'tests',
globals: {
'substance': 'substance',
'substance-test': 'substanceTest'
}
}],
},
external: [ 'substance', 'substance-test' ]
})
})
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@
"devDependencies": {
"esm": "3.0.47",
"nyc": "11.8.0",
"rollup": "^1.20.3",
"standard": "12.0.1",
"substance": "0.142.0",
"substance-bundler": "0.25.5",
"substance-bundler": "^0.27.1",
"substance-test": "0.13.2",
"tap-spec": "5.0.0",
"uglify-es": "3.3.9"
Expand Down

0 comments on commit d18bee8

Please sign in to comment.