mirror of
https://github.com/dnote/dnote
synced 2026-03-15 06:55:49 +01:00
* Allow to add and edit notes * Implement search * Implement settings * Implement checkout page * Implement paywall * Fix inconsistent margin * Render mobile menu * Allow to logout * emails * Implement user migration * Always build standalone * Embed digest in email * Move browser extension * Fix test * Use system font * Add favicon and app icons * Make tabbar smaller * Initialize focus on editor * Fix various UI audit issues * Simplify asset serving * Register sw * Upgrade deps
28 lines
645 B
Bash
Executable file
28 lines
645 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -eux
|
|
|
|
basePath="$GOPATH/src/github.com/dnote/dnote"
|
|
appPath="$basePath"/web
|
|
rootUrl=$ROOT_URL
|
|
|
|
echo "here is $rootUrl"
|
|
|
|
(
|
|
cd "$appPath" &&
|
|
PUBLIC_PATH=$PUBLIC_PATH \
|
|
COMPILED_PATH=$COMPILED_PATH \
|
|
ASSET_BASE_URL=$ASSET_BASE_URL \
|
|
"$appPath"/scripts/setup.sh &&
|
|
|
|
BUNDLE_BASE_URL=$BUNDLE_BASE_URL
|
|
ASSET_BASE_URL=$ASSET_BASE_URL \
|
|
COMPILED_PATH=$COMPILED_PATH \
|
|
PUBLIC_PATH=$PUBLIC_PATH \
|
|
IS_TEST=true \
|
|
node "$appPath"/scripts/placeholder.js &&
|
|
|
|
ROOT_URL=$ROOT_URL \
|
|
"$appPath"/node_modules/.bin/webpack-dev-server\
|
|
--env.isTest="$IS_TEST"\
|
|
--config "$appPath"/webpack/dev.config.js
|
|
)
|