Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose services on public interface #8

Merged
merged 6 commits into from
Oct 24, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules/
docs/build/
.DS_Store
dist
lib
5 changes: 5 additions & 0 deletions build/scripts/compile-clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

set -e

rm -rf dist lib
30 changes: 0 additions & 30 deletions build/scripts/compile-components.sh

This file was deleted.

47 changes: 47 additions & 0 deletions build/scripts/compile-eui.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/bin/bash

set -e

compile_lib() {
local color_green="\033[0;32m"
local color_reset="\033[0m"

mkdir -p lib/components lib/services

# We use tput below to save the cursor position, then restore it later in
# order to overwrite "processing" messages.

tput sc
echo -n " Compiling src/components " >&2
babel --quiet --out-dir=lib/components --ignore "**/*.test.js" src/components
tput rc
echo -e "${color_green}✔ Finished compiling lib/components${color_reset}" >&2

tput sc
echo -n " Compiling src/services " >&2
babel --quiet --out-dir=lib/services --ignore "**/*.test.js" src/services
tput rc
echo -e "${color_green}✔ Finished compiling lib/services${color_reset}" >&2

# Also copy over SVGs. Babel has a --copy-files option but that brings over
# all kinds of things we don't want into the lib folder.
mkdir -p lib/components/icon/assets
for SVG in $(cd src && find components -name \*.svg); do
cp "src/$SVG" "lib/$SVG"
done

echo -e "${color_green}✔ Finished copying SVGs${color_reset}" >&2
}

compile_bundle() {
mkdir -p dist

echo -e "\nBuilding bundle...\n" >&2
webpack --config=src/webpack.config.js

echo -e "\nBuilding minified bundle...\n" >&2
NODE_ENV=production webpack --config=src/webpack.config.js
}

compile_lib
compile_bundle
1 change: 0 additions & 1 deletion components.js

This file was deleted.

23 changes: 0 additions & 23 deletions dist/components/accessibility/index.js

This file was deleted.

131 changes: 0 additions & 131 deletions dist/components/accessibility/keyboard_accessible.js

This file was deleted.

194 changes: 0 additions & 194 deletions dist/components/accessibility/keyboard_accessible.test.js

This file was deleted.

34 changes: 0 additions & 34 deletions dist/components/accessibility/screen_reader.js

This file was deleted.

42 changes: 0 additions & 42 deletions dist/components/accessibility/screen_reader.test.js

This file was deleted.

Loading