chore: workflows

This commit is contained in:
Mo
2022-06-12 20:41:38 -05:00
parent b46a229970
commit 6642dbad51
10 changed files with 14 additions and 15 deletions

View File

@@ -16,7 +16,7 @@ jobs:
with: with:
registry-url: 'https://registry.npmjs.org' registry-url: 'https://registry.npmjs.org'
- run: yarn install - run: yarn install
- run: yarn build:web:front - run: yarn build:web:all
- name: Compile Mac - name: Compile Mac
run: yarn run webpack --config desktop.webpack.prod.js run: yarn run webpack --config desktop.webpack.prod.js
- name: MacX64 - name: MacX64
@@ -48,7 +48,7 @@ jobs:
with: with:
registry-url: 'https://registry.npmjs.org' registry-url: 'https://registry.npmjs.org'
- run: yarn install - run: yarn install
- run: yarn build:web:front - run: yarn build:web:all
- name: Compile for AppImage - name: Compile for AppImage
run: yarn run webpack --config desktop.webpack.prod.js run: yarn run webpack --config desktop.webpack.prod.js
- name: AppImage - name: AppImage
@@ -116,7 +116,7 @@ jobs:
with: with:
registry-url: 'https://registry.npmjs.org' registry-url: 'https://registry.npmjs.org'
- run: yarn install - run: yarn install
- run: yarn build:web:front - run: yarn build:web:all
- run: yarn run webpack --config desktop.webpack.prod.js - run: yarn run webpack --config desktop.webpack.prod.js
- run: yarn run electron-builder --windows --x64 --ia32 --publish=never - run: yarn run electron-builder --windows --x64 --ia32 --publish=never

View File

@@ -20,10 +20,6 @@
"build:toast": "yarn workspace @standardnotes/toast build", "build:toast": "yarn workspace @standardnotes/toast build",
"build:styles": "yarn workspace @standardnotes/styles build", "build:styles": "yarn workspace @standardnotes/styles build",
"build:web": "yarn workspace @standardnotes/web build", "build:web": "yarn workspace @standardnotes/web build",
"build:web:front": "yarn build:icons && yarn build:toast && yarn build:styles && yarn build:components && yarn build:web",
"build:web:back": "yarn workspace @standardnotes/web-server build",
"build:web:all": "yarn build:web:front && yarn build:web:back",
"build:components": "yarn workspace @standardnotes/components-meta build",
"start:server:web": "lerna run start --scope=@standardnotes/web-server", "start:server:web": "lerna run start --scope=@standardnotes/web-server",
"start:server:web:localhost": "lerna run start:no-binding --scope=@standardnotes/web-server", "start:server:web:localhost": "lerna run start:no-binding --scope=@standardnotes/web-server",
"prepare": "husky install", "prepare": "husky install",

View File

@@ -8,7 +8,7 @@
] ]
}, },
"scripts": { "scripts": {
"build": "yarn workspaces foreach --parallel run build", "build": "echo BUILDING COMPONENTS && yarn workspaces foreach --parallel run build",
"lint": "yarn workspaces foreach --parallel run lint", "lint": "yarn workspaces foreach --parallel run lint",
"version": "node scripts/package-components.mjs && git add dist && git commit -m 'chore(release): components'" "version": "node scripts/package-components.mjs && git add dist && git commit -m 'chore(release): components'"
}, },

View File

@@ -15,7 +15,8 @@
}, },
"scripts": { "scripts": {
"build:remove-unpacked": "rimraf dist/{linux-*,mac,win-*}", "build:remove-unpacked": "rimraf dist/{linux-*,mac,win-*}",
"build": "yarn run webpack --config desktop.webpack.prod.js", "build": "echo BUILDING DESKTOP && yarn run webpack --config desktop.webpack.prod.js",
"build:desktop:all": "yarn workspaces foreach -ptR run build",
"change-version": "node scripts/change-version.mjs", "change-version": "node scripts/change-version.mjs",
"clean:build": "rimraf app/dist/", "clean:build": "rimraf app/dist/",
"clean:tests": "rimraf test/data/tmp/", "clean:tests": "rimraf test/data/tmp/",
@@ -88,7 +89,7 @@
"electronVersion": "17.4.2", "electronVersion": "17.4.2",
"appId": "org.standardnotes.standardnotes", "appId": "org.standardnotes.standardnotes",
"artifactName": "${name}-${version}-${os}-${arch}.${ext}", "artifactName": "${name}-${version}-${os}-${arch}.${ext}",
"afterSign": "scripts/afterSignHook.js", "afterSign": "scripts/notarizeMac.js",
"files": [ "files": [
"compiled/**/*", "compiled/**/*",
"dist/**/*", "dist/**/*",

View File

@@ -7,7 +7,7 @@
"scripts": { "scripts": {
"start": "webpack-dev-server --config webpack.config.js", "start": "webpack-dev-server --config webpack.config.js",
"watch": "webpack -w --config webpack.config.js", "watch": "webpack -w --config webpack.config.js",
"build": "webpack --config webpack.config.js && yarn run tsc", "build": "echo BUILDING ICONS && webpack --config webpack.config.js && yarn run tsc",
"tsc": "tsc --project ./tsconfig.json" "tsc": "tsc --project ./tsconfig.json"
}, },
"devDependencies": { "devDependencies": {

View File

@@ -8,7 +8,7 @@
"access": "public" "access": "public"
}, },
"scripts": { "scripts": {
"build": "webpack --mode='production' && yarn run tsc", "build": "echo BUILDING STYLES && webpack --mode='production' && yarn run tsc",
"start": "webpack --watch --mode='development'", "start": "webpack --watch --mode='development'",
"lint": "prettier --check *.js" "lint": "prettier --check *.js"
}, },

View File

@@ -4,7 +4,7 @@
"private": true, "private": true,
"main": "./dist/index.js", "main": "./dist/index.js",
"scripts": { "scripts": {
"build": "yarn tsc", "build": "echo BUILDING TOAST && yarn tsc",
"clean": "rm -fr dist", "clean": "rm -fr dist",
"prestart": "yarn clean", "prestart": "yarn clean",
"start": "tsc -p tsconfig.json --watch", "start": "tsc -p tsconfig.json --watch",

View File

@@ -12,7 +12,8 @@
"start": "bundle exec rails s -b 0.0.0.0", "start": "bundle exec rails s -b 0.0.0.0",
"start:no-binding": "bundle exec rails s", "start:no-binding": "bundle exec rails s",
"build:components": "cp -r ../../node_modules/@standardnotes/components/dist/. public/components/", "build:components": "cp -r ../../node_modules/@standardnotes/components/dist/. public/components/",
"build": "bundle install && yarn build:components && bundle exec rails assets:precompile" "build": "bundle install && yarn build:components && bundle exec rails assets:precompile",
"build:server:all": "yarn workspaces foreach -ptR run build"
}, },
"dependencies": { "dependencies": {
"@standardnotes/components-meta": "^0.2.0", "@standardnotes/components-meta": "^0.2.0",

View File

@@ -13,7 +13,8 @@
"watch": "webpack -w --config web.webpack.dev.js", "watch": "webpack -w --config web.webpack.dev.js",
"clean": "rm -fr dist", "clean": "rm -fr dist",
"prebuild": "yarn clean", "prebuild": "yarn clean",
"build": "webpack --config web.webpack.prod.js && yarn tsc", "build": "echo BUILDING WEB && webpack --config web.webpack.prod.js && yarn tsc",
"build:web:all": "yarn workspaces foreach -ptR run build",
"lint": "eslint src/javascripts", "lint": "eslint src/javascripts",
"tsc": "tsc --project tsconfig.json", "tsc": "tsc --project tsconfig.json",
"test": "jest --config jest.config.js --coverage", "test": "jest --config jest.config.js --coverage",