Skip to content

Commit

Permalink
Prepare for deployment via GitHub Actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeFreq authored and CodeFreq committed Mar 7, 2020
1 parent b9832fb commit a117007
Show file tree
Hide file tree
Showing 194 changed files with 24 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[submodule "js/openspendingjs"]
path = js/openspendingjs
url = git://github.com/openspending/openspendingjs.git
[submodule "_staging"]
path = _staging
url = [email protected]:openoakland/openbudgetoakland-staging.git
24 changes: 24 additions & 0 deletions _src/_compile.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

# for the production site, we want production builds!
# this will include Google Analytics (and maybe other stuff?)
# NODE_ENV=production
#
# Summary: compile source files from root
pwd
# install Harp locally at root
npm install harp
npx harp -V
echo "Harp version"
# create build directory that will only exist on CI server
mkdir ./build
# get rid of the node_modules folder in _src
rm -rf ./_src/node_modules
ls -F ./_src
# use Harp to compile source files to build folder
npx harp compile ./_src ./build
ls -F ./build
# set this back to development so we don't go
# accidentally running prod code in dev environments
# NODE_ENV=development

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion _staging
Submodule _staging deleted from 62b2a6

0 comments on commit a117007

Please sign in to comment.