Commit Graph

33 Commits

Author SHA1 Message Date
Yangshun Tay a7a214fb3a ESLintify Part 3 (#846)
* ESLintify Part 3

* ESLintify Part 3

* ESLintify Part 3
2018-07-11 18:21:31 +08:00
Yangshun Tay e8e3f42685
ESLintify Part 1 (#837)
* ESLint-ify

* Allow empty try/catch

* Escape regexp
2018-07-08 09:13:18 -07:00
Endilie Yacop Sucipto e619884921 Open browser with correct baseurl (#819)
* open browser with correct baseurl

* nits
2018-07-01 09:42:52 -07:00
=^._.^= 62a2c7c1a5 Add option to disable live reload server during development (#766)
* add option to disable live reload server

* change live to watch, fix incorrect argument parsing code

* Update api-commands.md
2018-06-14 23:51:03 -07:00
Endilie Yacop Sucipto d28b864a59 Don't start server if versions.js is missing but versioning is enabled (#714)
* don't start server if versions.js missing but versioning is enabled

* refactor

* fix nits

* refactor & address review
2018-06-02 23:45:36 -07:00
artiebits 407636a4d9 Don't open a site in a new tab if it's already open (#698)
* Don't open a site in a new tab if it's already open

* Remove opn from dependencies
2018-05-24 20:47:01 -07:00
Amy Lam f9a09072e3 Add LiveReload (#663) 2018-05-17 16:17:56 -07:00
Yangshun Tay 1a6f2fc51c Add open in browser functionality (#643) 2018-05-07 09:46:14 -07:00
Christopher Chedeau 1d4e334a86 Restore the ability to use the --port command line argument (#588)
The behavior was changed in #516. With this change, both the command line argument and environment variable will work.
2018-04-20 09:25:12 -07:00
Yangshun Tay 1db939b119 Revert yarn prettier addition in yarn ci-check (#543) 2018-04-10 10:30:29 -07:00
Kaveh Khorram bbbe311004 Dynamic port switching (#516) 2018-04-10 08:48:44 -07:00
Henry Zhu cb2f0eda62 Also transform class properties and object rest spread (#419) 2018-01-26 10:47:09 -08:00
Joel Marcey d14dff7480 Prettier formatting fixes 2017-12-18 10:04:27 -08:00
Forbes Lindesay a49787a56e Rethrow promise errors (#296) 2017-12-18 10:03:02 -08:00
Kunall Banerjee c60131fdb4 cleanup startup logs (#291) 2017-12-16 16:51:52 -08:00
Héctor Ramos 65421db62e Add Prettier Formatting (#258)
* Add Prettier formatting to source files and example files, and check that Prettier formatting is maintained on PRs

* Remove trailing-comma as we are using Node 6 on Circle

* Use latest Node 6 LTS version in Circle

* Remove unused test
2017-12-04 19:21:02 -08:00
Joel Marcey d26d263bd0
Don't try to version files that have no metadata headers (#197) 2017-10-30 12:00:55 -07:00
Joel Marcey ae08fa31d6 Fix custom port number parsing... (#187)
* Fix custom port number parsing...

Checking if a port was in use raised a bug where the port coming in from the command line is a string and not an int. And that was causing the check to fail. Make the port an int from the get go

* Specifiy radix
2017-10-26 12:09:12 -07:00
Joel Marcey e0345bae86 Fix port check (#173)
Since the check is async, starting the server on the port was happening before the check finished. Thus even if the port wasn't being used, it would error out as if it was because the server would start it before the check was finished.
This way we only start the server after the check finishes.
2017-10-24 15:51:27 -07:00
Joel Marcey 7bad58022c Check if a port is in use
Test:

Ran a separate server on port 3000

```
Checking if port 3000 is free...
Extracting translateable strings from files...
Loading translation files...
Generating Metadata for Docs....
Generating Metadata for Docs....
server.js triggered...
Generating Metadata for Docs....
Extracting translateable strings from files...
listening on port: 3000
Open http://localhost:3000/
Port 3000 is in use
```

Fixes #124
2017-10-23 18:32:39 -07:00
Joel Marcey 77535d80f2 The complete move to MIT license (#115)
- headers in .js files
- update README and LICENSE year

Testing:

grep BSD, Patents, patents turned up nothing
2017-10-05 11:14:49 -07:00
Eric Nakagawa 3b5db4bbf8 2 bug fixes (#98)
* Merge fix

* Updating lock file.

* Bug fix for rss feed truncation...

* Fixes infinite recursive loop for #89

* Removed use of module cache invalidator from feed.js

* Replaced 'latest' babel presets with 'env'

* Ignore temp build folder

* Adding back new truncation logic for RSS

* Updating yarn lock
2017-09-28 14:46:29 -07:00
Frank Li 43ef3c8142 Add comments 2017-08-15 16:55:38 -07:00
Frank Li b256d2f8d9 Initial changes to error messages 2017-08-09 15:43:30 -07:00
Frank Li ac3cc01830 Change babel options 2017-08-09 13:10:04 -07:00
Frank Li d17daaf1c3 Fix babel errors 2017-08-09 13:03:46 -07:00
Frank Li c6503c4bfa Use template strings, update React components, and update package.json files 2017-07-28 16:59:41 -07:00
Frank Li 610b598827 Update start-server.js to ignore .babelrc files 2017-07-18 11:44:19 -07:00
Frank Li 72328ef4a9 Use flag for server port number 2017-07-13 13:40:24 -07:00
Frank Li 2d2f324c7d Add new translate functionality to dev server 2017-07-12 11:38:02 -07:00
Frank Li 0f6800df10 Allow server port to be chosen and update example 2017-07-11 14:48:57 -07:00
Frank Li fbae29b0ff Run Prettier 2017-07-10 16:38:35 -07:00
Joel Marcey e3139eea2f Initial commit 2017-07-07 10:28:29 -07:00