Swap out parel with browserify
It's so much faster!
This commit is contained in:
parent
1c63a94f14
commit
5442ae1cce
3 changed files with 407 additions and 6537 deletions
6934
package-lock.json
generated
6934
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -7,9 +7,9 @@
|
|||
},
|
||||
"author": "Jake Howard <git@theorangeone.net>",
|
||||
"devDependencies": {
|
||||
"browserify": "16.2.2",
|
||||
"eslint-config-dabapps": "github:dabapps/eslint-config-dabapps#v3.0.0",
|
||||
"markdown-spellcheck": "1.3.1",
|
||||
"parcel-bundler": "1.9.7",
|
||||
"sass-lint": "1.12.1",
|
||||
"yaml-lint": "1.2.4"
|
||||
},
|
||||
|
|
|
@ -7,8 +7,7 @@ source ./scripts/common.sh
|
|||
rm -rf $OUTPUT_DIR
|
||||
rm -rf $STATIC_BUILD
|
||||
rm -rf $BASEDIR/resources
|
||||
mkdir -p $STATIC_BUILD/js $STATIC_BUILD/scss
|
||||
hugo gen chromastyles --style=tango > $STATIC_BUILD/scss/highlight.scss
|
||||
mkdir -p $STATIC_BUILD/js
|
||||
cp -r $BASEDIR/node_modules/lightgallery/dist/fonts $STATIC_BUILD
|
||||
cp -r $STATIC_SRC/img $STATIC_BUILD/img
|
||||
cp -r $BASEDIR/node_modules/lightgallery/dist/img/* $STATIC_BUILD/img
|
||||
|
@ -19,8 +18,9 @@ cp $BASEDIR/node_modules/lg-thumbnail/dist/lg-thumbnail.min.js $STATIC_BUILD/js/
|
|||
cp $BASEDIR/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js $STATIC_BUILD/js/bootstrap.min.js
|
||||
cp $BASEDIR/node_modules/mermaid/dist/mermaid.min.js $STATIC_BUILD/js/mermaid.min.js
|
||||
|
||||
parcel build $STATIC_SRC/js/index.js -d $STATIC_BUILD/js/ -o app.js
|
||||
cp -r $STATIC_SRC/scss/* $STATIC_BUILD/scss/
|
||||
browserify $STATIC_SRC/js/index.js -o $STATIC_BUILD/js/app.js
|
||||
cp -r $STATIC_SRC/scss $STATIC_BUILD/scss
|
||||
hugo gen chromastyles --style=tango > $STATIC_BUILD/scss/highlight.scss
|
||||
|
||||
hugo -vDEF --stepAnalysis --gc $HUGO_ARGS
|
||||
|
||||
|
|
Loading…
Reference in a new issue