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

docs(build): fix reloading of examples sources #3075

Merged
merged 2 commits into from
Aug 7, 2018
Merged

Conversation

layershifter
Copy link
Member

Title is obvious.


const filename = path.resolve(__dirname, '..', 'exampleSources.json')

const getExampleSources = () => JSON.parse(fs.readFileSync(filename))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

require() will cache an object, so it will not changed on after rebuild.

@@ -15,7 +15,8 @@ const { paths } = config
const g = loadPlugins()
const { log } = g.util

const handleWatchChange = e => log(`File ${e.path} was ${e.type}, running tasks...`)
const handleWatchChange = filename =>
log(`File ${path.basename(filename)} was changed, running tasks...`)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gulp's API was changed, now message works ^_^

@codecov-io
Copy link

Codecov Report

Merging #3075 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3075   +/-   ##
=======================================
  Coverage   99.92%   99.92%           
=======================================
  Files         163      163           
  Lines        2739     2739           
=======================================
  Hits         2737     2737           
  Misses          2        2

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aae3bff...b03ccc1. Read the comment docs.

@layershifter layershifter merged commit 4d3c82c into master Aug 7, 2018
@layershifter layershifter deleted the fix-sources branch September 5, 2018 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants