Commit Graph

92 Commits

Author SHA1 Message Date
Bryan Housel
6a4a1d57a7 Make a separate build:legacy target that runs buble
- `iD.js` for most browsers, `iD.legacy.js` for IE11/PhantomJS
- Skip buble plugin during normal development for faster builds
2020-01-21 15:25:10 -05:00
Bryan Housel
e9a978082b Avoid eslint warning for console statements in build scripts 2019-12-16 21:33:07 -05:00
Bryan Housel
05b3d023ce pacify eslint 2019-11-07 17:16:45 -05:00
Bryan Housel
5da962a694 Just make the build steps sequential, build single target with buble 2019-11-07 17:16:45 -05:00
Bryan Housel
0bbe9dded1 Cleanup build_src script.. add emojis to build messages 2019-11-07 17:16:45 -05:00
Bryan Housel
263c3ad081 Modernize build scripts, working towards multiple rollup targets 2019-11-07 17:16:45 -05:00
Kushan Joshi
9b008a32a1 Separate build steps 2017-09-26 11:29:01 +05:30
Bryan Housel
2d583a9400 Comment out debugging code from #4376
use node v8
2017-09-26 11:28:59 +05:30
Bryan Housel
3d208311bd Change imagery Transifex to YAML, use translated name and description 2017-06-16 00:51:04 -04:00
Bryan Housel
7be29479af Download and merge imagery resource from Transifex 2017-06-15 16:17:14 -04:00
Bryan Housel
87850b3cb1 Don't need these symlinks anymore 2017-02-20 20:37:19 -05:00
Bryan Housel
7edef9ef67 const with for-of not actually ok in all version of node 4 2016-12-01 21:52:35 -05:00
Bryan Housel
2453c5c8b7 Eliminate symlinks in repository - shelljs/shx can make them
(closes #3545)
2016-11-30 17:06:33 -05:00
Gregor MacLennan
8ae68fbf57 Validate preset defaults at build step 2016-11-01 10:50:51 -07:00
Bryan Housel
8fb5f3a5a1 Degunk data sources by named-importing single toplevel key
See: https://github.com/openstreetmap/iD/issues/3403#issuecomment-245150454

This change drops the iD.js bundle size from 4.5MB to 3.4MB, and makes it
much more readable, which is nice for debugging.  This does not affect the
minified bundle size.
2016-10-26 16:29:49 -04:00
Bryan Housel
4f733e1b96 Don't include terms for non-serachable presets in translation source
(closes #3323)
2016-10-26 00:24:41 -04:00
Bryan Housel
810a1e59fb Remove more of the Makefile 2016-09-02 15:42:25 -04:00
Bryan Housel
15a522516f Merge pull request #3339 from McKaneAndrus/patch-json-schema
Fixed validate function
2016-08-16 08:53:08 -04:00
Tom MacWright
8819d3d061 Remove continued iD references (#3341)
* Remove continued iD references

* make build.js safe enough to dodge json plugin bug

* Package as an iife to avoid var name issue
2016-08-10 20:06:45 -07:00
Tom MacWright
6341d4e4b5 one-shot build (#3266)
* One-shot development

* Move jsonp to module
* Tooltip -> module
* Remove d3.jsonp
* Fix tooltip lint
* Load all libs but d3 itself with require
* Add top-level brfs

* Unformat intro graph
2016-08-10 15:25:19 -07:00
McKane
828c304685 Fix failing preset validation function 2016-08-10 14:48:33 -07:00
Bryan Housel
24af9e6404 Remove leading underscores from preset id parts
Introduced with 0d2f78c, but I don't want to break existing translations
2016-08-03 14:47:26 -04:00
Tom MacWright
604d1e2719 import lodash (#3257) 2016-07-19 12:04:16 -04:00
Bryan Housel
d34f9df1af Ignore name suggestions if there is no corresponding preset 2016-07-16 11:40:14 -04:00
Bryan Housel
6fdb86be04 Don't use multiline yaml, which breaks up comment lines
(closes #3198)
2016-06-27 11:40:37 -04:00
Bryan Housel
7cb8e5a00c Add left-hand-driving dataset
(For future use by turn lane editor)
2016-06-02 15:33:48 -04:00
Kushan Joshi
6ef52256f3 Migrating to lodash v4 2016-05-17 12:37:25 +05:30
Peter Dobratz
2d9327c5b9 phone placeholder from country being edited
Prefer to pull in phone placeholder text based on the country currently
being edited.  Fallback to using placeholder text based on user’s
locale settings.

rename phone placeholders to phone formats

add Germany example phone number

See [German Wikipedia article
E.123](https://de.wikipedia.org/wiki/E.123)

check for null in focus

check that input.node() is not null in i.focus()
2016-05-12 14:13:35 -04:00
Bryan Housel
84c98dacb7 Restore generated files in git and 4 space json
90cd412bbe (commitcomment-15780969)
2016-02-01 12:27:29 -05:00
Bryan Housel
90cd412bbe Don't check in as many data/ generated files, less agressive minification
(partial revert of c2833ba to help prevent merge conflicts)
2016-01-29 23:28:37 -05:00
Bryan Housel
c2833baba0 Generate smaller files 2016-01-19 22:56:36 -05:00
Bryan Housel
d5dcc1ff1a More cleanups to iD-sprite and styles, remove old png and json files 2015-10-29 23:18:21 -04:00
Bryan Housel
549a14fd55 Add actual tag values as comments for Transifex in presets.yaml
(re: #2646)
2015-05-29 23:50:16 -04:00
Michael Maier
a540637d4d fix: build.js tests wrong fields in validatePresetFields()
validatePresetFields() tested old fields from file, not newly aggregated ones
2015-04-30 02:36:51 +02:00
Sajjad Anwar
dffeedffc9 Moved area-keys to data, and process it during runtime 2014-10-23 15:52:29 -07:00
John Firebaugh
dd0e08b244 Write presets and imagery to standalone files 2014-10-23 15:52:29 -07:00
John Firebaugh
2edea8f5fd Add taginfo projects data
https://wiki.openstreetmap.org/wiki/Taginfo/Projects
2014-09-05 09:56:58 -07:00
John Firebaugh
9f00e465e9 Revert brand-related preset changes
I'm not convinced we shouldn't be encouraging simply tagging
`name=McDonald's`, `name=Shell`, etc., without `brand` or
`operator` at all.
2014-07-25 10:02:12 -07:00
Bryan Housel
4f141a153e name suggestions should set name and also brand (see #2300) 2014-07-22 14:44:25 -04:00
Christian Schwarz
81effc23cf Removed local countries.json 2014-06-05 20:33:38 +02:00
Christian Schwarz
b3acd56bbb Added support for localization of address fields 2014-06-03 22:49:42 +02:00
Bryan Housel
941ee1d88c Allow suggestion if preset with same name exists, pick suggestion w highest count..#2224 2014-05-28 13:17:48 -04:00
tyr
4de0c6cb4e do not write any data files if preset validation fails 2014-01-15 22:36:53 +01:00
tyr
80dbf3085e add consistency checks for fields of presets and presets in categories 2014-01-15 22:23:11 +01:00
John Firebaugh
e6af18800f Merge remote-tracking branch 'origin/quick-add' 2013-11-26 12:40:07 -08:00
Aaron Lidman
efd49c8f5b Simplify tag assignment
which reordered the tags as well :/
2013-11-26 09:57:46 -08:00
Aaron Lidman
dcb901e1c2 Added countThreshold to limit presets
Didn’t realize the presets would be so large, here’s a way of
throttling them based on the count property if we need to.
2013-11-25 16:39:39 -08:00
Aaron Lidman
3a3e601c33 Tags are now their own property 2013-11-25 14:50:59 -08:00
Aaron Lidman
3bbc5af92e Simplify suggestion preset building 2013-11-22 17:40:14 -08:00
Aaron Lidman
01b31896c4 Fixed dumb break 2013-11-21 18:37:54 -08:00