Symlink everything in resource/ and chrome/content/zotero/xpcom/rdf/

This commit is contained in:
Dan Stillman 2019-03-20 04:39:33 -04:00
parent bf4deeff8f
commit 14d25d273a
2 changed files with 14 additions and 10 deletions

View file

@ -3,15 +3,10 @@
"retainLines": true,
"presets": [],
"ignore": [
"resource/require.js",
"chrome/content/zotero/include.js",
"chrome/content/zotero/xpcom/citeproc.js",
"resource/csl-validator.js",
"resource/jspath.js",
"resource/react.js",
"resource/react-dom.js",
"resource/bluebird.js",
"resource/bluebird/*.js",
"test/resource/*.js"
],
"plugins": [

View file

@ -3,16 +3,15 @@ const dirs = [
'chrome',
'components',
'defaults',
'resource',
'test',
'test/resource/chai',
'test/resource/chai-as-promised',
'test/resource/mocha'
];
// list of folders from which all files are symlinked
// list of folders that are symlinked
const symlinkDirs = [
'resource/tinymce',
'chrome/content/zotero/xpcom/rdf',
'styles',
'translators'
];
@ -25,7 +24,14 @@ const copyDirs = [
// list of files from root folder to symlink
const symlinkFiles = [
'chrome.manifest', 'install.rdf', 'update.rdf'
'chrome.manifest',
'install.rdf',
// React needs to be patched by babel-worker.js, so symlink all files in resource/ except for
// those. Babel transpilation for React is still disabled in .babelrc.
'resource/**/*',
'!resource/react.js',
'!resource/react-dom.js',
'update.rdf'
];
@ -54,7 +60,10 @@ const jsFiles = [
`{${dirs.join(',')}}/**/*.js`,
`{${dirs.join(',')}}/**/*.jsx`,
`!{${symlinkDirs.concat(copyDirs).join(',')}}/**/*.js`,
`!{${symlinkDirs.concat(copyDirs).join(',')}}/**/*.jsx`
`!{${symlinkDirs.concat(copyDirs).join(',')}}/**/*.jsx`,
// Special handling for React -- see note above
'resource/react.js',
'resource/react-dom.js',
];
const scssFiles = [