Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🏗️ Adding JS stack for complex admin UI
- Loading branch information
1 parent
ecf2313
commit 1cc202c
Showing
10 changed files
with
3,899 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"comments":false, | ||
"compact":true, | ||
"presets":[ | ||
"@babel/preset-env" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
const gulp = require('gulp'); | ||
const { sass } = require('./sass'); | ||
const { js } = require('./js'); | ||
|
||
gulp.task('build', sass); | ||
exports.build = sass; | ||
const build = gulp.parallel(sass, js); | ||
|
||
gulp.task('build', build); | ||
exports.build = build; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
'use strict'; | ||
var gulp = require('gulp'); | ||
var webpack = require('webpack-stream'); | ||
var paths = require('../paths'); | ||
var webpackConfig = require('../../webpack.config.js'); | ||
|
||
|
||
/** | ||
* Js task | ||
* Run using "gulp js" | ||
* Runs webpack to compile javascript | ||
*/ | ||
function js() { | ||
return gulp.src(paths.jsEntryAdmin) | ||
.pipe(webpack(webpackConfig)) | ||
.on('error', function () { | ||
this.emit('end'); | ||
}) | ||
.pipe(gulp.dest(webpackConfig.output.path)); | ||
}; | ||
|
||
gulp.task('js', js) | ||
exports.js = js; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.