mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-07-25 16:19:44 +02:00
Frontent build system is ready (#3)
* Frontent build system is ready * Set up linter for frontend part * move code to /src * update db * upd test * remove db * ignore .db
This commit is contained in:
parent
3762ea3791
commit
248558a11f
27 changed files with 3003 additions and 219 deletions
16
src/frontend/.postcssrc
Normal file
16
src/frontend/.postcssrc
Normal file
|
@ -0,0 +1,16 @@
|
|||
plugins:
|
||||
postcss-smart-import: {}
|
||||
postcss-custom-properties: {}
|
||||
postcss-apply: {}
|
||||
postcss-custom-media: {}
|
||||
postcss-media-minmax: {}
|
||||
postcss-custom-selectors: {}
|
||||
postcss-nested-ancestors: {}
|
||||
postcss-nesting: {}
|
||||
postcss-nested: {}
|
||||
postcss-color-mod-function: {}
|
||||
postcss-color-hex-alpha: {}
|
||||
postcss-font-family-system-ui: {}
|
||||
cssnano: {}
|
||||
autoprefixer:
|
||||
browsers: ['last 2 versions', '> 1%']
|
12
src/frontend/js/app.js
Normal file
12
src/frontend/js/app.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
// No inspection for unused var `css` because it's used for css bundle
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
import css from '../styles/main.pcss';
|
||||
|
||||
module.exports = class Docs {
|
||||
/**
|
||||
* @constructor
|
||||
*/
|
||||
constructor() {
|
||||
console.log('CodeX Docs initialized');
|
||||
}
|
||||
};
|
7
src/frontend/styles/main.pcss
Normal file
7
src/frontend/styles/main.pcss
Normal file
|
@ -0,0 +1,7 @@
|
|||
body {
|
||||
font-family: system-ui, Helvetica, Arial, Verdana;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #00B7FF;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue