Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v0.109.0 #141

Merged
merged 28 commits into from
Aug 25, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
8cbee5b
[cli] Upgrade yarn to 0.27.5
rexxars Aug 14, 2017
c346e0b
[cli] Fix issue where command group roots would not list commands (#109)
rexxars Aug 14, 2017
421b2b9
[client] Use uncredentialed requests unless `withCredentials` or `tok…
rexxars Aug 16, 2017
1fa017e
[base] Use credentialed requests in studio (#115)
rexxars Aug 16, 2017
2a011dc
[vision] Move vision into monorepo (#90)
Aug 16, 2017
ee1a4dd
[base] Include props.children in sCU equality check (#116)
bjoerge Aug 17, 2017
cf8b00e
[form-builder] Minor: fix misleading error messsage
bjoerge Aug 17, 2017
9d96954
[core] Skip system documents when exporting a dataset (#120)
rexxars Aug 18, 2017
d6ea940
[base] A fix + example schema demonstrating named reference types (#117)
bjoerge Aug 18, 2017
9c14ccf
[observable] Add publishReplay operator (#121)
bjoerge Aug 18, 2017
31d9ecd
[state-router] Support programmatical intent navigation (#123)
bjoerge Aug 21, 2017
e083695
[form-builder] Expose the withDocument HOC (#126)
bjoerge Aug 22, 2017
67fc4ee
[client] Include error message in stack (#129)
rexxars Aug 23, 2017
c385c1c
[components] Only render children of collapsable fieldsets when open …
bjoerge Aug 23, 2017
b991d9b
[schema] Guess preview config based on raw schema def instead of pars…
bjoerge Aug 23, 2017
e5c6182
[development] Separate example-studio and test-studio and organize te…
bjoerge Aug 24, 2017
56b4bd3
[base] Fix code style issue (#135)
rexxars Aug 24, 2017
275cc61
[components] Fix onBlur error (#137)
bjoerge Aug 24, 2017
4cfbfe5
[base] Expose client as CommonJS (#133)
rexxars Aug 24, 2017
d993c75
[plugin-loader] Allow overriding config parts (#134)
rexxars Aug 24, 2017
8aa0915
[core] Add `sanity exec` command that registers part loader + babel (…
rexxars Aug 24, 2017
38279a1
[infrastructure] Upgrade lerna (#136)
bjoerge Aug 24, 2017
6d78637
[components] Support disabled prop on ToggleButton
skogsmaskin Aug 24, 2017
7282a6f
[test-studio] Change project ID
bjoerge Aug 24, 2017
02309e5
[components] Add a top margin on Image input fieldset with highlighte…
bjoerge Aug 24, 2017
7b96182
[test-studio] Fix reference to nonexistent type
bjoerge Aug 24, 2017
234615c
[form-builder] Fix an issue with arrays and anonymous objects (#140)
bjoerge Aug 25, 2017
46baa73
[release] Add changelog
bjoerge Aug 25, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

# v0.109.0

Author | Message | Commit
------------ | ------------- | -------------
rexxars | [cli] Upgrade yarn to 0.27.5 | 8cbee5b
rexxars | [cli] Fix issue where command group roots would not list commands (#109) | c346e0b
rexxars | [client] Use uncredentialed requests unless `withCredentials` or `tok… … | 421b2b9
rexxars | [base] Use credentialed requests in studio (#115) | 1fa017e
kristofferj | [vision] Move vision into monorepo (#90) | 2a011dc
bjoerge | [base] Include props.children in sCU equality check (#116) | ee1a4dd
bjoerge | [form-builder] Minor: fix misleading error messsage | cf8b00e
rexxars | [core] Skip system documents when exporting a dataset (#120) | 9d96954
bjoerge | [base] A fix + example schema demonstrating named reference types (#117) | d6ea940
bjoerge | [observable] Add publishReplay operator (#121) | 9c14ccf
bjoerge | [state-router] Support programmatical intent navigation (#123) | 31d9ecd
bjoerge | [form-builder] Expose the withDocument HOC (#126) | e083695
rexxars | [client] Include error message in stack (#129) | 67fc4ee
bjoerge | [components] Only render children of collapsable fieldsets when open (#… … | c385c1c
bjoerge | [schema] Guess preview config based on raw schema def instead of pars… … | b991d9b
bjoerge | [development] Separate example-studio and test-studio and organize te… … | e5c6182
rexxars | [base] Fix code style issue (#135) | 56b4bd3
bjoerge | [components] Fix onBlur error (#137) | 275cc61
rexxars | [base] Expose client as CommonJS (#133) | 4cfbfe5
rexxars | [plugin-loader] Allow overriding config parts (#134) | d993c75
rexxars | [core] Add `sanity exec` command that registers part loader + babel (#… … | 8aa0915
bjoerge | [infrastructure] Upgrade lerna (#136) | 38279a1
skogsmaskin | [components] Support disabled prop on ToggleButton | 6d78637
bjoerge | [test-studio] Change project ID | 7282a6f
bjoerge | [components] Add a top margin on Image input fieldset with highlighte… … | 02309e5
bjoerge | [test-studio] Fix reference to nonexistent type | 7b96182
bjoerge | [form-builder] Fix an issue with arrays and anonymous objects (#140) | 234615c


50 changes: 41 additions & 9 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,40 @@ const through = require('through2')
const chalk = require('chalk')
const childProcess = require('child_process')

const scripts = './packages/@sanity/*/src/**/*.js'
const assets = './packages/@sanity/*/src/**/*'
const scripts = ['./packages/@sanity/*/src/**/*.js', './packages/sanity-plugin-*/src/**/*.js']
const assets = ['./packages/@sanity/*/src/**/*', './packages/sanity-plugin-*/src/**/*']
const srcOpts = {base: 'packages'}

let srcEx
let srcRootEx
let libFragment

if (path.win32 === path) {
srcEx = /(@sanity\\[^\\]+)\\src\\/
srcRootEx = /(sanity-plugin-[^\\]+)\\src\\/
libFragment = '$1\\lib\\'
} else {
srcEx = new RegExp('(@sanity/[^/]+)/src/')
srcRootEx = /(sanity-plugin-[^/]+)\/src\//
libFragment = '$1/lib/'
}

const mapToDest = orgPath => orgPath.replace(srcEx, libFragment)
const dest = 'packages/@sanity'
const mapToDest = orgPath => {
const outPath = orgPath
.replace(srcEx, libFragment)
.replace(srcRootEx, libFragment)

return outPath
}

const dest = 'packages'

gulp.task('default', ['build'])

gulp.task('build', () => {
const assetFilter = filter(['**/*.js'], {restore: true})

return gulp.src(assets)
return gulp.src(assets, srcOpts)
.pipe(plumber({errorHandler: err => gutil.log(err.stack)}))
.pipe(newer({map: mapToDest}))
.pipe(assetFilter)
Expand All @@ -51,11 +62,11 @@ gulp.task('build', () => {
})

gulp.task('watch-js', () => {
return gulp.src(scripts)
return gulp.src(scripts, srcOpts)
.pipe(plumber({errorHandler: err => gutil.log(err.stack)}))
.pipe(through.obj((file, enc, callback) => {
file._path = file.path
file.path = file.path.replace(srcEx, libFragment)
file.path = mapToDest(file.path)
callback(null, file)
}))
.pipe(newer(dest))
Expand All @@ -68,12 +79,12 @@ gulp.task('watch-js', () => {
})

gulp.task('watch-assets', () => {
return gulp.src(assets)
return gulp.src(assets, srcOpts)
.pipe(filter(['**/*.*', '!**/*.js']))
.pipe(plumber({errorHandler: err => gutil.log(err.stack)}))
.pipe(through.obj((file, enc, callback) => {
file._path = file.path
file.path = file.path.replace(srcEx, libFragment)
file.path = mapToDest(file.path)
callback(null, file)
}))
.pipe(newer(dest))
Expand Down Expand Up @@ -103,6 +114,27 @@ gulp.task('dev', ['watch-js', 'watch-assets'], cb => {
gulp.start('watch-assets')
})

const projectPath = path.join(__dirname, 'packages', 'test-studio')
const npmPath = path.join(projectPath, 'node_modules', '.bin')
const proc = childProcess.spawn('sanity', ['start', '--host', '0.0.0.0'], {
cwd: projectPath,
env: Object.assign({}, process.env, {
PATH: [npmPath].concat(process.env.PATH.split(path.delimiter)).join(path.delimiter)
})
})

proc.stdout.pipe(process.stdout)
proc.stderr.pipe(process.stderr)
})
gulp.task('example', ['watch-js', 'watch-assets'], cb => {
watch(scripts, {debounceDelay: 200}, () => {
gulp.start('watch-js')
})

watch(assets, {debounceDelay: 200}, () => {
gulp.start('watch-assets')
})

const projectPath = path.join(__dirname, 'packages', 'example-studio')
const npmPath = path.join(projectPath, 'node_modules', '.bin')
const proc = childProcess.spawn('sanity', ['start', '--host', '0.0.0.0'], {
Expand Down
2 changes: 2 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"packages": [
"packages/@sanity/*",
"packages/example-studio",
"packages/test-studio",
"packages/sanity-plugin-vision",
"packages/storybook"
],
"version": "0.108.13"
Expand Down
Loading