Skip to content

Commit 3b2635e

Browse files
committed
refactor: moved code to "src" and min.js to "dist"
1 parent 45b9677 commit 3b2635e

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

Gruntfile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = function(grunt) {
33

44
grunt.initConfig({
55
pkg: grunt.file.readJSON("package.json"),
6-
clean: ["dist"],
6+
clean: ["dist/*"],
77
uglify: {
88
options: {
99
preserveComments: "some",
@@ -13,9 +13,9 @@ module.exports = function(grunt) {
1313
},
1414
build: {
1515
expand: true,
16-
cwd: "js",
16+
cwd: "src",
1717
src: ["**/*.js", ["!**/*.min.js"]],
18-
dest: "js",
18+
dest: "dist",
1919
ext: ".min.js"
2020
}
2121
},
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bootstrap-switch-button.min.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/bootstrap-switch-button.min.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88
"description": "Bootstrap Switch Button is a bootstrap 4 plugin that converts checkboxes into switch button toggles.",
99
"homepage": "https://gitbrent.github.io/bootstrap-switch-button/",
1010
"license": "MIT",
11-
"main": "js/bootstrap-switch-button.js",
11+
"main": "dist/bootstrap-switch-button.min.js",
1212
"files": [
1313
"css/bootstrap-switch-button.css",
14-
"js/bootstrap-switch-button.js"
14+
"dist/bootstrap-switch-button.min.js",
15+
"dist/bootstrap-switch-button.min.js.map"
1516
],
1617
"keywords": [
1718
"bootstrap",

0 commit comments

Comments
 (0)