Set CI environment variable to NODE_ENV=production during linting (#73)

This commit is contained in:
Keavon Chambers 2021-04-14 01:27:01 -07:00 committed by GitHub
parent e3be55d4e2
commit fcc4c1874b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 4 deletions

View file

@ -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

View file

@ -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,

View file

@ -29,7 +29,7 @@ export default defineComponent({
methods: {
async greet() {
const { greet } = await wasm;
console.log(greet("Graphite"));
greet("Graphite");
},
},
});

View file

@ -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() {