mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-29 19:58:11 +08:00
Set CI environment variable to NODE_ENV=production during linting (#73)
This commit is contained in:
@@ -25,11 +25,11 @@ jobs:
|
|||||||
- name: 🚧 Install Node dependencies
|
- name: 🚧 Install Node dependencies
|
||||||
run: cd client/web && npm install
|
run: cd client/web && npm install
|
||||||
|
|
||||||
- name: 👷 Build Graphite web client
|
- name: 🌐 Build Graphite web code
|
||||||
run: cd client/web && npm run build
|
run: cd client/web && npm run build
|
||||||
|
|
||||||
- name: 👕 Lint Graphite web formatting
|
- name: 👕 Lint Graphite web formatting
|
||||||
run: cd client/web && npm run lint
|
run: export NODE_ENV=production && cd client/web && npm run lint
|
||||||
|
|
||||||
- name: 🔬 Check Rust formatting
|
- name: 🔬 Check Rust formatting
|
||||||
run: cargo fmt --all -- --check
|
run: cargo fmt --all -- --check
|
||||||
|
|||||||
Vendored
+3
@@ -26,6 +26,9 @@
|
|||||||
],
|
],
|
||||||
"vetur.format.options.useTabs": true,
|
"vetur.format.options.useTabs": true,
|
||||||
"eslint.format.enable": true,
|
"eslint.format.enable": true,
|
||||||
|
"eslint.workingDirectories": [
|
||||||
|
"./client/web"
|
||||||
|
],
|
||||||
"files.eol": "\n",
|
"files.eol": "\n",
|
||||||
"html.format.wrapLineLength": 200,
|
"html.format.wrapLineLength": 200,
|
||||||
"vetur.validation.interpolation": false,
|
"vetur.validation.interpolation": false,
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ export default defineComponent({
|
|||||||
methods: {
|
methods: {
|
||||||
async greet() {
|
async greet() {
|
||||||
const { greet } = await wasm;
|
const { greet } = await wasm;
|
||||||
console.log(greet("Graphite"));
|
greet("Graphite");
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -328,7 +328,8 @@ export default defineComponent({
|
|||||||
select_tool(toolName);
|
select_tool(toolName);
|
||||||
},
|
},
|
||||||
async viewModeChanged(toolIndex: number) {
|
async viewModeChanged(toolIndex: number) {
|
||||||
console.log(`The view mode has been changed to index match the icon at index ${toolIndex}`);
|
function todo(_: number) { return _; }
|
||||||
|
todo(toolIndex);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|||||||
Reference in New Issue
Block a user