Symlink everything in resource/ and chrome/content/zotero/xpcom/rdf/
This commit is contained in:
parent
bf4deeff8f
commit
14d25d273a
2 changed files with 14 additions and 10 deletions
5
.babelrc
5
.babelrc
|
@ -3,15 +3,10 @@
|
||||||
"retainLines": true,
|
"retainLines": true,
|
||||||
"presets": [],
|
"presets": [],
|
||||||
"ignore": [
|
"ignore": [
|
||||||
"resource/require.js",
|
|
||||||
"chrome/content/zotero/include.js",
|
"chrome/content/zotero/include.js",
|
||||||
"chrome/content/zotero/xpcom/citeproc.js",
|
"chrome/content/zotero/xpcom/citeproc.js",
|
||||||
"resource/csl-validator.js",
|
|
||||||
"resource/jspath.js",
|
|
||||||
"resource/react.js",
|
"resource/react.js",
|
||||||
"resource/react-dom.js",
|
"resource/react-dom.js",
|
||||||
"resource/bluebird.js",
|
|
||||||
"resource/bluebird/*.js",
|
|
||||||
"test/resource/*.js"
|
"test/resource/*.js"
|
||||||
],
|
],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
|
|
|
@ -3,16 +3,15 @@ const dirs = [
|
||||||
'chrome',
|
'chrome',
|
||||||
'components',
|
'components',
|
||||||
'defaults',
|
'defaults',
|
||||||
'resource',
|
|
||||||
'test',
|
'test',
|
||||||
'test/resource/chai',
|
'test/resource/chai',
|
||||||
'test/resource/chai-as-promised',
|
'test/resource/chai-as-promised',
|
||||||
'test/resource/mocha'
|
'test/resource/mocha'
|
||||||
];
|
];
|
||||||
|
|
||||||
// list of folders from which all files are symlinked
|
// list of folders that are symlinked
|
||||||
const symlinkDirs = [
|
const symlinkDirs = [
|
||||||
'resource/tinymce',
|
'chrome/content/zotero/xpcom/rdf',
|
||||||
'styles',
|
'styles',
|
||||||
'translators'
|
'translators'
|
||||||
];
|
];
|
||||||
|
@ -25,7 +24,14 @@ const copyDirs = [
|
||||||
|
|
||||||
// list of files from root folder to symlink
|
// list of files from root folder to symlink
|
||||||
const symlinkFiles = [
|
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(',')}}/**/*.js`,
|
||||||
`{${dirs.join(',')}}/**/*.jsx`,
|
`{${dirs.join(',')}}/**/*.jsx`,
|
||||||
`!{${symlinkDirs.concat(copyDirs).join(',')}}/**/*.js`,
|
`!{${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 = [
|
const scssFiles = [
|
||||||
|
|
Loading…
Add table
Reference in a new issue