mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-12-23 10:11:54 +00:00
Set CI environment variable to NODE_ENV=production during linting (#73)
This commit is contained in:
parent
e3be55d4e2
commit
fcc4c1874b
4 changed files with 8 additions and 4 deletions
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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue