diff --git a/package.json b/package.json index e11706a..3bacb3e 100644 --- a/package.json +++ b/package.json @@ -1,59 +1,59 @@ -{ - "name": "selenium-ide-extension-boilerplate", - "version": "0.1.1", - "repository": "git@github.com:SeleniumHQ/selenium-ide.git", - "license": "MIT", - "private": true, - "scripts": { - "start": "webpack-dev-server --hot", - "build": "webpack", - "build:prod": "rm -rf build && env NODE_ENV=production yarn build", - "test": "jest", - "lint": "eslint webpack.config.babel.js src/ --ext .js --ext .jsx", - "version": "node scripts/version.js && git add src/manifest.json", - "release-prep": "yarn && yarn test && yarn build && yarn lint", - "release:firefox": "cd build && web-ext-submit", - "release:chrome": "cd build && webstore upload --auto-publish", - "postpublish": "yarn build:prod && npx ./gh-release.js" - }, - "jest": { - "testMatch": [ - "**/src/**/__test?(s)__/**/*.js?(x)" - ] - }, - "devDependencies": { - "@babel/core": "^7.6.2", - "@babel/plugin-proposal-class-properties": "^7.5.5", - "@babel/plugin-proposal-decorators": "^7.3.0", - "@babel/plugin-proposal-object-rest-spread": "^7.6.2", - "@babel/preset-env": "^7.6.2", - "@babel/preset-react": "^7.0.0", - "@babel/register": "^7.6.2", - "babel-eslint": "^10.0.1", - "babel-jest": "^26.0.0", - "babel-loader": "^8.1.0", - "chrome-webstore-upload-cli": "^1.2.0", - "copy-webpack-plugin": "^4.0.1", - "css-loader": "^0.28.7", - "eslint": "^4.15.0", - "eslint-plugin-class-property": "^1.1.0", - "eslint-plugin-jest": "^21.6.1", - "extract-text-webpack-plugin": "^3.0.0", - "file-loader": "^0.11.2", - "grizzly": "^4.0.1", - "html-webpack-plugin": "^2.30.1", - "jest": "^24.9.0", - "postcss-flexbugs-fixes": "^3.2.0", - "postcss-loader": "^2.0.6", - "putasset": "^4.3.2", - "style-loader": "^0.18.2", - "url-loader": "^0.5.9", - "web-ext-submit": "^3.1.1", - "webpack": "^3.5.6" - }, - "dependencies": { - "@seleniumhq/side-utils": "^3.16.0", - "ua-parser-js": "^0.7.19", - "webextension-polyfill": "https://github.com/corevo/webextension-polyfill#2cc27453b501e4426eb6741943fbb4041c0d18f5" - } -} +{ + "name": "selenium-ide-extension-boilerplate", + "version": "0.1.1", + "repository": "git@github.com:SeleniumHQ/selenium-ide.git", + "license": "MIT", + "private": true, + "scripts": { + "start": "webpack-dev-server --hot", + "build": "webpack", + "build:prod": "rm -rf build && env NODE_ENV=production yarn build", + "test": "jest", + "lint": "eslint webpack.config.babel.js src/ --ext .js --ext .jsx", + "version": "node scripts/version.js && git add src/manifest.json", + "release-prep": "yarn && yarn test && yarn build && yarn lint", + "release:firefox": "cd build && web-ext-submit", + "release:chrome": "cd build && webstore upload --auto-publish", + "postpublish": "yarn build:prod && npx scripts/gh-release.js" + }, + "jest": { + "testMatch": [ + "**/src/**/__test?(s)__/**/*.js?(x)" + ] + }, + "devDependencies": { + "@babel/core": "^7.6.2", + "@babel/plugin-proposal-class-properties": "^7.5.5", + "@babel/plugin-proposal-decorators": "^7.3.0", + "@babel/plugin-proposal-object-rest-spread": "^7.6.2", + "@babel/preset-env": "^7.6.2", + "@babel/preset-react": "^7.0.0", + "@babel/register": "^7.6.2", + "babel-eslint": "^10.0.1", + "babel-jest": "^26.0.0", + "babel-loader": "^8.1.0", + "chrome-webstore-upload-cli": "^1.2.0", + "copy-webpack-plugin": "^4.0.1", + "css-loader": "^0.28.7", + "eslint": "^4.15.0", + "eslint-plugin-class-property": "^1.1.0", + "eslint-plugin-jest": "^21.6.1", + "extract-text-webpack-plugin": "^3.0.0", + "file-loader": "^0.11.2", + "grizzly": "^4.0.1", + "html-webpack-plugin": "^2.30.1", + "jest": "^24.9.0", + "postcss-flexbugs-fixes": "^3.2.0", + "postcss-loader": "^2.0.6", + "putasset": "^4.3.2", + "style-loader": "^0.18.2", + "url-loader": "^0.5.9", + "web-ext-submit": "^3.1.1", + "webpack": "^3.5.6" + }, + "dependencies": { + "@seleniumhq/side-utils": "^3.16.0", + "ua-parser-js": "^0.7.19", + "webextension-polyfill": "https://github.com/corevo/webextension-polyfill#2cc27453b501e4426eb6741943fbb4041c0d18f5" + } +} diff --git a/gh-release.js b/scripts/gh-release.js similarity index 96% rename from gh-release.js rename to scripts/gh-release.js index 3b4d63b..330ea46 100644 --- a/gh-release.js +++ b/scripts/gh-release.js @@ -4,7 +4,7 @@ const putasset = require('putasset'); const token = process.env.GH_TOKEN; const owner = 'selenide'; const repo = 'selenide-for-selenium-ide'; -const manifest = require('./src/manifest.json'); +const manifest = require('../src/manifest.json'); const tag = 'v' + manifest.version; function log(message) {