Skip to content

Commit

Permalink
Remove dist folder, closes #820
Browse files Browse the repository at this point in the history
  • Loading branch information
zenflow committed Jan 21, 2018
1 parent 439abe9 commit 58cd3ac
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 7,046 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
bower_components
package-lock.json
dist
23 changes: 15 additions & 8 deletions config/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ const banner = require('./banner.js')
const fs = require('fs')
const uglify = require('uglify-js')
const css = require('rollup-plugin-css-only')
const pify = require('pify')
const mkdirp = require('mkdirp')

const mkdirpAsync = pify(mkdirp)

const toUpper = (_, c) => {
return c ? c.toUpperCase() : ''
Expand All @@ -26,15 +30,18 @@ const write = (dest, code) => {

const packageRollup = (options) => {
const moduleId = classify(pack.name)
return rollup({
input: options.entry || 'src/sweetalert2.js',
plugins: [
css({ output: false }),
babel({
exclude: 'node_modules/**'
return mkdirpAsync('./dist')
.then(() => {
return rollup({
input: options.entry || 'src/sweetalert2.js',
plugins: [
css({ output: false }),
babel({
exclude: 'node_modules/**'
})
]
})
]
})
})
.then((bundle) => {
return bundle.generate({
format: options.format,
Expand Down
1,931 changes: 0 additions & 1,931 deletions dist/sweetalert2.all.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/sweetalert2.all.min.js

This file was deleted.

0 comments on commit 58cd3ac

Please sign in to comment.