mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
Set CI environment variable to NODE_ENV=production during linting (#73)
This commit is contained in:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -25,11 +25,11 @@ jobs:
|
||||
- name: 🚧 Install Node dependencies
|
||||
run: cd client/web && npm install
|
||||
|
||||
- name: 👷 Build Graphite web client
|
||||
- name: 🌐 Build Graphite web code
|
||||
run: cd client/web && npm run build
|
||||
|
||||
- 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
|
||||
run: cargo fmt --all -- --check
|
||||
|
||||
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@@ -26,6 +26,9 @@
|
||||
],
|
||||
"vetur.format.options.useTabs": true,
|
||||
"eslint.format.enable": true,
|
||||
"eslint.workingDirectories": [
|
||||
"./client/web"
|
||||
],
|
||||
"files.eol": "\n",
|
||||
"html.format.wrapLineLength": 200,
|
||||
"vetur.validation.interpolation": false,
|
||||
|
||||
@@ -29,7 +29,7 @@ export default defineComponent({
|
||||
methods: {
|
||||
async greet() {
|
||||
const { greet } = await wasm;
|
||||
console.log(greet("Graphite"));
|
||||
greet("Graphite");
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
@@ -328,7 +328,8 @@ export default defineComponent({
|
||||
select_tool(toolName);
|
||||
},
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user