forked from jorgecasar/flow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary:  Closes facebook#3498 Differential Revision: D4690749 Pulled By: mroch fbshipit-source-id: 06f246ae471cb86478c78cc60ef772be8a1273db
- Loading branch information
1 parent
3ca82ac
commit 360d6dc
Showing
245 changed files
with
10,891 additions
and
9,405 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
[ignore] | ||
<PROJECT_ROOT>/node_modules/bower | ||
|
||
[include] | ||
|
||
[libs] | ||
|
||
[options] | ||
suppress_comment=^\\( \\|\n\\)*\\$ExpectError\\(([^)]*)\\)?$ | ||
suppress_comment=^\\( \\|\n\\)*\\$DocIssue\\(([^)]*)\\)?$ | ||
esproposal.class_static_fields=enable | ||
esproposal.class_instance_fields=enable | ||
max_header_tokens=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
source 'https://rubygems.org' | ||
ruby RUBY_VERSION | ||
|
||
gem 'jekyll', '~>3.1' | ||
gem 'jekyll' | ||
gem 'jekyll-redirect-from' | ||
gem 'jekyll-paginate' | ||
gem 'octokit' | ||
gem 'crowdin-cli' | ||
gem 'kramdown', '~>1.11' # _plugins/jekyll_ext.rb messes with internals | ||
gem 'rouge', '<2' # rouge2 will require changes in _plugins/jekyll_ext.rb | ||
gem 's3_website' | ||
gem 'sprockets-es6' | ||
gem 'wdm', '>= 0.1.0' if Gem.win_platform? | ||
gem 'jekyll-assets', '~>2.2' | ||
gem 'sprockets-es6' | ||
gem 's3_website' | ||
gem 'octokit' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,80 @@ | ||
# Copyright (c) 2013-present, Facebook, Inc. | ||
# All rights reserved. | ||
|
||
all: | ||
.PHONY: start install serve build i18n-upload i18n-download | ||
|
||
clean: | ||
@rm -rf _assets/gen static/master _build _site node_modules .asset-cache | ||
ifeq ($(origin DEST), undefined) | ||
BUILD_FLAGS= | ||
else | ||
BUILD_FLAGS=-d $(DEST) | ||
endif | ||
|
||
_build/ruby_deps_installed: Gemfile Gemfile.lock | ||
bundle install | ||
@mkdir -p _build | ||
@touch $@ | ||
.DEFAULT_GOAL := start | ||
start: | ||
@make install | ||
@make serve | ||
|
||
_build/js_deps_installed: package.json yarn.lock | ||
yarn install --pure-lockfile | ||
@mkdir -p _build | ||
@touch $@ | ||
install: test-bundler test-yarn | ||
@yarn install | ||
@bundle install | ||
|
||
flow_js: | ||
(cd ..; make js) | ||
|
||
_assets/gen/master/flow.js: | ||
mkdir -p $(dir $@) | ||
ln -sf "../../../../bin/flow.js" $@ | ||
(cd $(dir $@); ln -sf "../../../../bin/flow.js" "flow.js") | ||
|
||
static/master/flowlib: | ||
mkdir -p $(dir $@) | ||
ln -sf "../../../lib" $@ | ||
|
||
deps: _build/ruby_deps_installed _build/js_deps_installed | ||
(cd $(dir $@); ln -sf "../../../lib" "flowlib") | ||
|
||
symlinks: _assets/gen/master/flow.js static/master/flowlib | ||
|
||
js: | ||
(cd ..; make js) | ||
serve: test-jekyll symlinks | ||
@bundle exec jekyll serve --host="::" --port=8080 | ||
|
||
build: test-jekyll symlinks | ||
bundle exec jekyll build $(BUILD_FLAGS) | ||
|
||
serve-production: test-jekyll flow_js symlinks | ||
@JEKYLL_ENV=production bundle exec jekyll serve --host="::" --port=8080 | ||
|
||
build-production: test-jekyll flow_js symlinks | ||
@JEKYLL_ENV=production bundle exec jekyll build $(BUILD_FLAGS) | ||
|
||
# crowdin-sync: test-crowdin | ||
# @crowdin-cli upload sources --auto-update -b master | ||
# @crowdin-cli download -b master | ||
|
||
### | ||
# Misc stuff: | ||
### | ||
|
||
BUNDLE_EXISTS := $(shell command -v bundle 2> /dev/null) | ||
YARN_EXISTS := $(shell command -v yarn 2> /dev/null) | ||
JEKYLL_EXISTS := $(shell command -v jekyll 2> /dev/null) | ||
# CROWDIN_EXISTS := $(shell command -v crowdin-cli 2> /dev/null) | ||
|
||
test-bundler: | ||
ifndef BUNDLE_EXISTS | ||
$(error bundler is not installed. Run `gem install bundler`) | ||
endif | ||
|
||
serve: deps symlinks js | ||
bundle exec jekyll serve | ||
test-yarn: | ||
ifndef YARN_EXISTS | ||
$(error yarn is not installed. Run `npm install yarn`) | ||
endif | ||
|
||
watch: deps symlinks js | ||
bundle exec jekyll serve -w | ||
test-jekyll: | ||
ifndef JEKYLL_EXISTS | ||
$(error Jekyll is not installed. Run `make install`) | ||
endif | ||
|
||
.SUFFIXES: | ||
.PHONY: all clean deps js symlinks serve watch | ||
# test-crowdin: | ||
# ifndef CROWDIN_EXISTS | ||
# $(error Crowdin is not installed. Run `make install`) | ||
# endif | ||
# ifndef CROWDIN_API_KEY | ||
# $(error CROWDIN_API_KEY is undefined) | ||
# endif |
Oops, something went wrong.