56 Commits

Author SHA1 Message Date
Josh Lory
d329412507 Update npm test to run unit tests 2017-08-09 21:43:30 -07:00
greenkeeper[bot]
fab79df7c6 chore(package): update jsdoc to version 3.5.3 2017-07-14 02:54:14 +00:00
greenkeeper[bot]
5b1d8ba960 chore(package): update twgl.js to version 3.3.0
https://greenkeeper.io/
2017-04-27 18:04:38 +00:00
Christopher Willis-Ford
36dc89da1c Minor-pin Babel loaders 2017-04-20 19:32:14 -07:00
Christopher Willis-Ford
5344bebe1d Use minor-level semver (^) for babel & webpack 2017-04-20 10:32:20 -07:00
Christopher Willis-Ford
862940d2ac Audit dependency versions
All dependencies which impact the build output have been fixed at an
exact version. Dependencies which impact only the development experience
(including the playground) are marked with `^`. Two obsolete
dependencies have been removed.
2017-04-19 14:57:49 -07:00
Chris Willis-Ford
6a6c252a55 Merge pull request #125 from LLK/greenkeeper/twgl.js-3.2.2
Update twgl.js to the latest version 🚀
2017-04-19 14:16:33 -07:00
greenkeeper[bot]
93da44593f chore(package): update twgl.js to version 3.2.2
https://greenkeeper.io/
2017-03-17 12:37:53 +00:00
Christopher Willis-Ford
53147d7e39 Remove createSkinFromURL and related code
Changes:
- Removed the `createSkinFromURL` method.
- Removed `skin` property handling from `updateDrawableProperties`.
- Removed the URL-to-skin mapping cache.
- Removed `RenderConstants` items related to choosing a default skin.
- Removed `xhr` package dependency.
- `Drawable` now starts with a `null` skin instead of a default skin.
- `DrawThese` now skips any item with a `null` skin.
2017-03-09 09:59:16 -08:00
Christopher Willis-Ford
10db85594f Generate /playground from /src/playground
The playground now must be loaded with a URL that ends in "/playground/"
or "/playground/index.html"; loading at "/" will no longer work.

The /playground folder is now purely an output of the build process,
rather than being a mix of build output and static content. The static
content that was previously there (namely, index.html) has been moved
into /src/playground. The `contentBase` has been set to `false` to avoid
confusion between current, in-memory build output and stale, on-disk
build output.
2017-03-08 14:48:57 -08:00
Christopher Willis-Ford
f8c45d8552 Update to webpack-dev-server 2.4.1 2017-03-08 14:46:43 -08:00
Chris Willis-Ford
ded99a233f Merge branch 'develop' into greenkeeper/twgl.js-3.2.0 2017-03-08 13:56:03 -08:00
Andrew Sliwinski
530ab4ac81 Use ^ for all dev dependencies 2017-03-02 08:53:18 -05:00
greenkeeper[bot]
7470bebfbe chore(package): update tap to version 10.3.0
https://greenkeeper.io/
2017-03-02 03:50:15 +00:00
Andrew Sliwinski
f7ec23122b Merge branch 'develop' into greenkeeper/eslint-3.16.1 2017-03-01 15:48:53 -05:00
greenkeeper[bot]
2d97d21beb chore(package): update tap to version 10.2.2
https://greenkeeper.io/
2017-02-27 08:02:14 +00:00
greenkeeper[bot]
2116500ae1 chore(package): update twgl.js to version 3.2.0
https://greenkeeper.io/
2017-02-26 16:18:26 +00:00
Ray Schamp
05a70bcf41 Merge pull request #106 from LLK/greenkeeper/tap-10.2.1
Update tap to the latest version 🚀
2017-02-23 08:59:44 -05:00
Ray Schamp
9824d109b0 Merge pull request #102 from rschamp/jsdoc
Generate docs from src, publish to gh-pages
2017-02-23 08:42:10 -05:00
greenkeeper[bot]
293653bc4d chore(package): update babel-loader to version 6.3.2
Closes #91

https://greenkeeper.io/
2017-02-22 21:26:14 -08:00
Chris Willis-Ford
71135236f2 Merge pull request #107 from LLK/greenkeeper/twgl.js-3.0.2
chore(package): update twgl.js to version 3.0.2
2017-02-22 21:15:52 -08:00
greenkeeper[bot]
383838c921 chore(package): update tap to version 10.2.1
https://greenkeeper.io/
2017-02-23 04:07:48 +00:00
Chris Willis-Ford
dd74f5b6d2 Merge pull request #86 from LLK/greenkeeper/babel-core-6.23.1
Update babel-core to the latest version 🚀
2017-02-22 16:03:51 -08:00
greenkeeper[bot]
005786ad36 chore(package): update eslint to version 3.16.1
https://greenkeeper.io/
2017-02-22 22:28:56 +00:00
Ray Schamp
3c6511d94e Generate docs from src, publish to gh-pages
Fix any broken JSDoc syntax. Unfortunately there is no way to document tuples like `{[int, int]}` for a `[width, height]` array. We could possibly fix this and make the code more readable with `{width: number, height: number}` instead of tuples.

Remove single `@fileoverview` from Rectangle.js, since it was the only file with one and was weird to have that one module show up on the docs home page.

Add a `docs` script to `package.json`, run it from `npm test`, so invalid docs will cause tests to fail (eventually we may want to start using eslint-plugin-jsdoc to catch these errors with the linter alone).
2017-02-21 14:46:24 -05:00
Andrew Sliwinski
9f11d79bfd Merge pull request #98 from LLK/greenkeeper/xhr-2.4.0
Update xhr to the latest version 🚀
2017-02-20 17:52:38 -05:00
Andrew Sliwinski
7045005296 Merge pull request #99 from LLK/greenkeeper/tap-10.1.2
Update tap to the latest version 🚀
2017-02-20 17:52:13 -05:00
greenkeeper[bot]
a221d37e98 chore(package): update eslint to version 3.16.0
https://greenkeeper.io/
2017-02-20 16:38:19 +00:00
greenkeeper[bot]
b1401a1910 chore(package): update tap to version 10.1.2
https://greenkeeper.io/
2017-02-18 02:13:51 +00:00
greenkeeper[bot]
331009ccb4 chore(package): update xhr to version 2.4.0
https://greenkeeper.io/
2017-02-17 20:56:13 +00:00
greenkeeper[bot]
d6effaf567 chore(package): update twgl.js to version 3.0.2
Closes #88

https://greenkeeper.io/
2017-02-15 15:32:07 +00:00
greenkeeper[bot]
9e53d1c53d chore(package): update tap to version 10.1.1
https://greenkeeper.io/
2017-02-14 19:26:35 +00:00
greenkeeper[bot]
626369a5d9 chore(package): update babel-loader to version 6.3.0
https://greenkeeper.io/
2017-02-14 09:20:58 +00:00
greenkeeper[bot]
6950b67d37 chore(package): update babel-core to version 6.23.1
https://greenkeeper.io/
2017-02-14 02:23:22 +00:00
greenkeeper[bot]
549f596195 chore(package): update dependencies
https://greenkeeper.io/
2017-02-02 17:25:30 +00:00
Christopher Willis-Ford
5db860efed Use eslint-config-scratch, fix linting errors 2016-12-12 12:06:19 -08:00
Christopher Willis-Ford
47b46fb1aa Update Webpack config like scratch-storage
- Move build outputs into `dist/`
- Make build output file names more consistent
- Update `playground/index.html` for new output file name
- Explicitly specify target => Node output is much smaller
- Minor fixes / cleanup in `.gitignore` and `src/index*.js`
2016-12-12 12:06:05 -08:00
Tim Mickel
b35f684478 A start on SVG "quirks mode" (#56)
* Start of an SVG rendering quirks mode

* Provide font defaults in SVG quirks mode

* Remove svg-to-image dependency

* Remove fonts and use package fonts instead.

* try/finally for getBBox
2016-11-07 17:40:59 -05:00
Ray Schamp
662ba3c645 Replace Makefile with npm scripts
Allows Windows users to run what's currently in the Makefile
2016-10-17 09:56:32 -04:00
Tim Mickel
a62d52a2d0 Calculating tight bounding boxes for Drawables (#42) 2016-10-11 18:14:14 -04:00
Ray Schamp
053092c85b Alphabetize 2016-09-27 09:29:42 -04:00
Ray Schamp
d7d1f92a13 Remove empty dependencies field 2016-09-27 00:53:25 -04:00
Ray Schamp
59337ef8b5 Update version format for usage with semver
Tracking the version under one `-prerelease` channel allows other packages to depend on `^0.1.0-prerelease` for the most up to date version.

Track the git sha for the release in package.json

Reuse the json package needed for writing the sha to retrieve the package.json version field
2016-09-27 00:52:27 -04:00
Ray Schamp
09dc67fa83 Set playground as dev server content base
For consistency with scratch-vm.
The redirect from index to playground was already unnecessary.
2016-09-26 11:58:26 -04:00
Ray Schamp
9f26ab17eb Publish playground to gh-pages 2016-09-24 15:26:37 -04:00
Ray Schamp
d91ddf4158 Publish to NPM 2016-09-24 15:26:37 -04:00
Ray Schamp
a6c8be8226 Use path to webpack for postinstall 2016-09-20 16:25:24 -04:00
Ray Schamp
278cddf04e Build module to be imported
If another package wants to import `src/index.js`, it needs to replicate the loader config in `webpack.config.js`. To avoid this, package the module in `dist.js` and set that as the module to require.

I changed `main` to point to this so that other packages can just `require('scratch-blocks')`, but it would also work for our purposes to add `"webpack": "./dist.js"` if we want to keep `src/index.js` as `main`.
2016-09-20 09:13:35 -04:00
Andrew Sliwinski
92fc916b86 Synchronize with master branch 2016-08-08 14:58:35 -04:00
Andrew Sliwinski
894ada4960 Move development dependencies into “devDependencies” in package.json 2016-08-08 14:21:21 -04:00