1
Fork 0

Replace browserify with parcel

The build is slightly smarter, and deals with weird things better, although it is a bit slower.
This commit is contained in:
Jake Howard 2019-11-01 22:41:11 +00:00
parent b3d7b64a3f
commit e7c9222801
Signed by: jake
GPG key ID: 57AFB45680EDD477
4 changed files with 6107 additions and 443 deletions

6544
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -7,10 +7,10 @@
},
"author": "Jake Howard <git@theorangeone.net>",
"devDependencies": {
"browserify": "16.5.0",
"envify": "4.1.0",
"eslint-config-dabapps": "4.0.0",
"markdown-spellcheck": "1.3.1",
"parcel-bundler": "1.12.4",
"sass-lint": "1.13.1",
"yaml-lint": "1.2.4"
},

View file

@ -19,9 +19,7 @@ cp $BASEDIR/node_modules/jquery/dist/jquery.min.js $STATIC_BUILD/js/jquery.js
cp $BASEDIR/node_modules/lightgallery/dist/js/lightgallery-all.min.js $STATIC_BUILD/js/lightgallery.js
cp $BASEDIR/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js $STATIC_BUILD/js/bootstrap.js
browserify $STATIC_SRC/js/index.js -o $STATIC_BUILD/js/app.js
browserify $STATIC_SRC/js/sentry.js -t envify -o $STATIC_BUILD/js/sentry.js
browserify $STATIC_SRC/js/mermaid.js -o $STATIC_BUILD/js/mermaid.js
parcel build -d $STATIC_BUILD/js/ $STATIC_SRC/js/app.js $STATIC_SRC/js/sentry.js $STATIC_SRC/js/mermaid.js
cp -r $STATIC_SRC/scss $STATIC_BUILD/scss
hugo gen chromastyles --style=monokai > $STATIC_BUILD/css/highlight.css