зеркало из https://github.com/mozilla/email-tabs.git
fix ga build script
This commit is contained in:
Родитель
85415e5494
Коммит
30055b8389
|
@ -43,7 +43,7 @@
|
|||
"lint:styles": "stylelint ./addon/*.css",
|
||||
"build": "npm-run-all build:*",
|
||||
"build:deps": "mkdir -p addon/build/ && cp node_modules/react/umd/react.production.min.js node_modules/react-dom/umd/react-dom.production.min.js node_modules/react-dom/umd/react-dom-server.browser.production.min.js addon/build/ && babel --retain-lines addon/popup.jsx > addon/build/popup.js && babel --retain-lines addon/emailTemplates.jsx > addon/build/emailTemplates.js",
|
||||
"build:ga": "mkdir -p addon/build && cp $(node -e 'console.log(require.resolve(\"testpilot-ga\"))') addon/build/testpilot-ga.js",
|
||||
"build:ga": "mkdir -p addon/build && cp node_modules/testpilot-ga/dist/index.js addon/build && mv addon/build/index.js addon/build/testpilot-ga.js",
|
||||
"build:manifest": "node -e 'let input = JSON.parse(fs.readFileSync(\"package.json\")); input.version = input.version.slice(0, -1) + Math.floor((Date.now() - new Date(new Date().getFullYear().toString()).getTime()) / 3600000); input.version_name = `${input.version} ${process.env.NODE_ENV === \"prod\" ? \"release\" : \"dev\"}`; console.log(JSON.stringify(input))' | mustache - addon/manifest.json.tmpl > addon/manifest.json",
|
||||
"build:web-ext": "web-ext build --source-dir=addon --overwrite-dest --ignore-files '*.tmpl' --ignore-files '*.jsx'",
|
||||
"package": "NODE_ENV=prod npm run build && cp web-ext-artifacts/`ls -t1 web-ext-artifacts | head -n 1` addon.xpi",
|
||||
|
|
Загрузка…
Ссылка в новой задаче