Commit graph

1742 commits

Author SHA1 Message Date
Ray Schamp
0e189183e0 feat(package): expose src/index as browser entry point 2018-05-31 19:35:09 -04:00
Ray Schamp
1a0b35f56a
Merge pull request from mzgoddard/dependents-no-boiler
Use src/index as browser entry point
2018-05-31 17:09:39 -04:00
Michael "Z" Goddard
b7e7d6d9b9
chore(package): expose src/index as browser entry point
Downstream webpack will need any dependencies src/ depends on so it can
successfully build. Also if multiple packages being built into a larger
script share a common dependency version range, they can share the
dependency instead of duplicating it. This will save built file size,
execution time, and memory.
2018-05-09 10:07:02 -04:00
Ray Schamp
000dad7780
Merge pull request from mzgoddard/arraybuffer-loader
chore(build): replace binary-loader with arraybuffer-loader
2018-05-08 16:54:08 -04:00
Ray Schamp
2af9ec2542
Merge pull request from mzgoddard/babel-preset-env
chore(build): replace babel-preset-es2015 with babel-preset-env
2018-05-08 16:51:01 -04:00
Ray Schamp
314ec1b14e
Merge pull request from mzgoddard/webpack-4
chore(build): update to webpack 4
2018-05-08 16:03:29 -04:00
Ray Schamp
665793471c chore: pin file-loader 2018-05-08 13:00:23 -04:00
Ray Schamp
7b3d3adff6 chore: bump Travis Node version 2018-05-08 12:10:31 -04:00
Michael "Z" Goddard
3babdb028d
chore(build): replace binary-loader with arraybuffer-loader 2018-05-07 13:36:09 -04:00
Michael "Z" Goddard
6ecbde5a2c
chore(build): replace babel-preset-es2015 with babel-preset-env 2018-05-07 13:35:38 -04:00
Michael "Z" Goddard
a0ab19326b
chore(build): update to webpack 4 2018-05-07 13:33:18 -04:00
Chris Willis-Ford
fe93eaedae
Merge pull request from wdr-data/fix-404-handling
Skip to next source if a source responds with 404
2018-04-27 08:08:31 -07:00
Marcus Weiner
98d7bd9fce fix: skip to next source on 404 response
Whenever there is more than one source configured, the storage should be able to test for existence on each source and resolve to the first that responds sucessfully. This commit will only pass the data of the HTTP request if it resolves with a HTTP status code starting with 2
2018-04-27 10:17:41 +02:00
Ray Schamp
f4cd8b8ce9
Merge pull request from rschamp/commitlint
Use commitlint to ensure the creation of new versions
2018-02-13 16:39:14 -05:00
Ray Schamp
1af8a54dc8 chore(semver): lint commits with Travis as well 2018-02-13 15:51:15 -05:00
Ray Schamp
97f30d23d0 chore(semver): use commitlint to lint commits! 2018-02-13 15:49:31 -05:00
Chris Willis-Ford
fb7f973065
chore(scripts): Merge pull request from aeons/unqualified-paths
Use unqualified paths in package.json scripts
2018-01-24 15:40:03 -08:00
Christopher Willis-Ford
21ee33a374 feat(api): Version bump for encodeTextData
I forgot to format the commit correctly; hopefully this will satisfy
`semantic-release`.
2018-01-23 10:34:10 -08:00
Chris Willis-Ford
5794418f0d
Merge pull request from cwillisf/encodeTextData
Add a method to encode text into asset data
2018-01-12 12:46:12 -08:00
Christopher Willis-Ford
3a4ce16d7d Add a method to encode text into asset data
This new method encodes JS text into UTF-8 then sets the asset's data to
the encoded text.
2018-01-09 14:47:32 -08:00
Eric Rosenbaum
be2b38d797
Merge pull request from ericrosenbaum/feature/add-mp3-support
Add mp3 to data formats
2017-12-08 11:41:26 -05:00
Eric Rosenbaum
47b1aa66dc Add mp3 to data formats 2017-11-14 11:55:48 -05:00
Ray Schamp
77a7dacfdb
Merge pull request from rschamp/feature/cache-api
Expose builtinHelper.cache to storage API
2017-11-02 15:47:57 -04:00
Ray Schamp
171cff568e feat(api): Expose builtinHelper.cache to storage API 2017-11-02 09:28:32 -04:00
Ray Schamp
99115ae130 Merge pull request from rschamp/readme/cz
docs(semver): Add instructions for commit format
2017-10-13 12:23:56 -04:00
Ray Schamp
50137c1479 docs(semver): Add instructions for commit format 2017-10-13 12:23:10 -04:00
Paul Kaplan
cbd4634c3e fix(dependencies): Replace crypto with js-md5 package 2017-10-13 12:22:19 -04:00
Chris Willis-Ford
9fce982582 Merge pull request from cwillisf/fix-web-build
Don't use separate web entry point: let UMD do it
2017-10-03 11:38:49 -07:00
Christopher Willis-Ford
c1f66ce132 Don't use separate web entry point: let UMD do it
Using UMD for the web build conflicts with the old `index-web.js` file,
since they both try to do roughly the same thing. This change should
have been part of the recent switch to UMD output for `dist/web`.
2017-09-26 00:39:03 -04:00
Bjørn Madsen
19673d14cc Use unqualified paths in package.json scripts
This allows stuff like yarn workspaces to function with node_modules hoisted.
2017-09-22 11:45:32 +02:00
Chris Willis-Ford
762bc0526e Merge pull request from cwillisf/use-nets
Use nets
2017-09-18 12:49:50 -07:00
Christopher Willis-Ford
07841c0496 Use UMD for browser output; add "browser" field
Using UMD makes the build output more flexible and adds a very small
amount of overhead.
The "browser" field is one of the key features we've been missing and
should solve many of our build frustrations. See here for details on the
"browser" field in `project.json`:
https://github.com/defunctzombie/package-browser-field-spec
2017-09-13 11:31:33 -07:00
Paul Kaplan
4e7ceff816 Merge pull request from paulkaplan/fix-b64-encoding
Use base64 package instead of toString('base64')
2017-09-11 15:13:27 -04:00
Geng Shenghong
d05faba7fd fix code style issues, make travis-ci happy 2017-09-08 15:43:29 +08:00
Geng Shenghong
6fc4832f97 replace 'got' with 'nets' and fix the 'web+commonjs2' and 'node+commonjs2' targets in webpack.config.js 2017-09-08 15:08:26 +08:00
Paul Kaplan
25dd0ca406 Use base64 package instead of toString 2017-09-07 11:09:39 -04:00
Ray Schamp
58f45be54e Merge pull request from rschamp/install
Install in install step
2017-06-02 08:53:26 -04:00
Ray Schamp
414f14e392 Install in install step
`npm update` didn't install eslint on 238734818
2017-06-02 08:52:45 -04:00
Ray Schamp
cf940e3aeb Merge pull request from cwillisf/override-data-format
feat(load): Allow caller to specify data format for an asset fetch
2017-06-02 08:44:37 -04:00
Christopher Willis-Ford
19f4699ac4 feat(load): Allow caller to specify data format for an asset fetch
When calling `load`, you may now explicitly state a data format / file extension. If you don't
specify one, the default for that asset type will be used.

Resolves 
2017-05-24 16:31:53 -07:00
Ray Schamp
106b4ae0b8 Merge pull request from rschamp/feature/cached-assets
Cache loaded assets with BuiltinHelper
2017-05-11 12:36:36 -04:00
Ray Schamp
8dddd1f8e2 Set record ids when caching default assets 2017-05-11 02:04:53 -04:00
Ray Schamp
1af20ad4a1 Don't cache projects when loaded
Because the project ID doesn't indicate its contents, it should not be cached when it's loaded. Additionally the id should not be calculated from its contents.
2017-05-11 02:03:44 -04:00
Ray Schamp
15b6a16af3 Add docstrings 2017-05-11 01:57:16 -04:00
Ray Schamp
a00562cbca feat(encoding): Memoize base64 encoding of assets
New assets are returned from BuiltinHelper.get, but we should only have to serialize the data once per asset.
2017-05-04 14:04:48 -04:00
Ray Schamp
69fd146ab7 feat(loading): Cache all loaded assets with BuiltinHelper
- Add `cache` method to BuiltinHelper, to store retrieved assets
- Cache assets retrieved with other helpers with BuiltinHelper
- Flatten the BuiltinHelper cache structure, so only the md5 is needed to retrieve an asset. A collision between two types would be interesting but unlikely
- Add a synchronous `get` method to ScratchStorage that passes through to the BuiltinHelper for cached assets
- Fix WebHelper, so it sets the dataFormat on the Asset it returns
2017-05-04 14:03:38 -04:00
Chris Willis-Ford
8d0d3ea315 Merge pull request from cwillisf/semantic-release
Prepare to use semantic-release
2017-05-03 13:07:13 -07:00
Christopher Willis-Ford
1476bc80ea CI: Rearrange testing steps around build step
The build output is used by the tests, so we can't gate building on
successful test results.
2017-05-03 11:14:31 -07:00
Christopher Willis-Ford
8115105ee6 Remove prerelease npm script, refine CI scripts
Since we publish through Travis CI there's no need for a `prepublish`
script in our `package.json` file -- in fact it complicates efficient
building and testing through CI. This change removes our `prepublish`
script in favor of developers running `npm run build` (or `npm run
watch`, etc.) locally and including an explicit build step in our CI
script.
2017-05-03 11:02:17 -07:00
Christopher Willis-Ford
265378f03b Prepare to use semantic-release
Install and configure:
- `commitizen` & `cz-conventional-changelog`
- `semantic-release`
2017-05-01 12:40:47 -07:00