Skip to content

Commit b5d54f3

Browse files
author
Luis de Dios Martín
committed
adjust package.json
1 parent 92bc00a commit b5d54f3

File tree

3 files changed

+25
-23
lines changed

3 files changed

+25
-23
lines changed

gulpfile.babel.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,26 @@ gulp.task('es6', () =>
2121
filename: 'bundle.min.js',
2222
},
2323
}, webpack))
24-
.pipe(babel({ presets: ['es2015'] })) // Transpile ES6+ into ES5
24+
.pipe(babel({ presets: ['es2015'] }))
2525
.pipe(uglify())
26-
.pipe(gulp.dest('dist/js')) // Copy to dist
26+
.pipe(gulp.dest('dist/js'))
2727
);
2828

2929
gulp.task('html', () =>
30-
gulp.src('src/index.html') // Take index.html
30+
gulp.src('src/index.html')
3131
.pipe(htmlReplace({
32-
css: 'css/bundle.min.css', // Replace the stylesheet links section with the link to the new styleshet
33-
js: 'js/bundle.min.js', // Replace the script links section with the link to the new script
32+
css: 'css/bundle.min.css',
33+
js: 'js/bundle.min.js',
3434
}))
35-
.pipe(gulp.dest('dist')) // Copy to dist
35+
.pipe(gulp.dest('dist'))
3636
);
3737

3838
gulp.task('css', () =>
39-
gulp.src('src/css/styles.css') // Take CSS files
40-
.pipe(rename('bundle.min.css')) // Concat
39+
gulp.src('src/css/app.css')
40+
.pipe(rename('bundle.min.css'))
4141
.pipe(postCSS([postCSSImport]))
42-
.pipe(cleanCSS()) // Minify
43-
.pipe(gulp.dest('dist/css')) // Copy to dist
42+
.pipe(cleanCSS())
43+
.pipe(gulp.dest('dist/css'))
4444
);
4545

4646
gulp.task('eslint', () =>
@@ -52,8 +52,8 @@ gulp.task('clean', () =>
5252
);
5353

5454
gulp.task('browser-sync', () => {
55-
browserSync.init(['dist/css/**.css', 'dist/js/**.js', 'dist/**.html'], { // Look for changes in dist directories
56-
server: 'dist', // Reload browser when any JS is modified or inject CSS when any stylesheet is modified
55+
browserSync.init(['dist/css/**.css', 'dist/js/**.js', 'dist/**.html'], {
56+
server: 'dist',
5757
});
5858
});
5959

@@ -63,4 +63,4 @@ gulp.task('default', ['html', 'css', 'es6', 'browser-sync'], () => {
6363
gulp.watch('src/*.html', ['html']);
6464
});
6565

66-
gulp.task('build', ['html', 'css', 'es6', 'size']);
66+
gulp.task('build', ['html', 'css', 'es6']);

package.json

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
11
{
2-
"name": "vanilla-js-example-project",
3-
"version": "1.0.0",
4-
"description": "A code example without using any framework",
2+
"name": "theremin",
3+
"version": "0.1.0",
4+
"description": "Theremin",
55
"main": "index.js",
66
"scripts": {
7-
"front": "gulp",
7+
"development": "gulp",
88
"lint": "eslint src/js/.",
9-
"clean": "rm -rf dist node_modules"
9+
"clean": "rm -rf dist node_modules",
10+
"release": "gulp build",
11+
"deploy": "git subtree push --prefix dist origin gh-pages"
1012
},
1113
"repository": {
1214
"type": "git",
13-
"url": "git+https://github.com/luisddm/vanilla-js-example-project.git"
15+
"url": "git+https://github.com/luisddm/theremin.git"
1416
},
15-
"author": "Luis",
17+
"author": "luisddm",
1618
"license": "MIT",
1719
"bugs": {
18-
"url": "https://github.com/luisddm/vanilla-js-example-project/issues"
20+
"url": "https://github.com/luisddm/theremin/issues"
1921
},
20-
"homepage": "https://github.com/luisddm/vanilla-js-example-project#readme",
22+
"homepage": "https://github.com/luisddm/theremin#readme",
2123
"devDependencies": {
2224
"babel-preset-es2015": "^6.24.0",
2325
"browser-sync": "^2.18.8",
@@ -32,7 +34,7 @@
3234
"gulp-uglify": "^2.1.0",
3335
"gulp-webpack": "^1.5.0",
3436
"postcss-import": "^9.1.0",
35-
"webpack": "^2.2.1"
37+
"webpack": "^2.3.3"
3638
},
3739
"babel": {
3840
"presets": [
File renamed without changes.

0 commit comments

Comments
 (0)