Skip to content

Commit

Permalink
⬆️ update node, webpack and css styles
Browse files Browse the repository at this point in the history
  • Loading branch information
annashamray committed Jan 30, 2024
1 parent 012c290 commit 8ec6477
Show file tree
Hide file tree
Showing 16 changed files with 6,705 additions and 9,551 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
python-version: '3.10'
- uses: actions/setup-node@v2-beta
with:
node-version: '12'
node-version: '18'

- name: Install system packages
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate-postman-collection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '12'
node-version: '18'
- name: Install dependencies
run: npm install -g openapi-to-postmanv2
- name: Create tests folder
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate-sdks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '12'
node-version: '18'
- name: Install dependencies
run: npm install -g @openapitools/openapi-generator-cli
- name: Determing oas path
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-oas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '12'
node-version: '18'
- name: Install spectral
run: npm install -g @stoplight/spectral@5
- name: Run OAS linter
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
38 changes: 11 additions & 27 deletions build/paths.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
var path = require('path');
var fs = require('fs');
const fs = require('fs');


/** Parses package.json */
var pkg = JSON.parse(fs.readFileSync('./package.json', 'utf-8'));
const pkg = JSON.parse(fs.readFileSync('./package.json', 'utf-8'));

/** Name of the sources directory */
var sourcesRoot = 'src/' + pkg.name + '/';
/** Src dir */
const sourcesRoot = 'src/' + pkg.name + '/';

/** Name of the static (source) directory */
var staticRoot = sourcesRoot + 'static/';
/** "Main" static dir */
const staticRoot = sourcesRoot + 'static/';


/**
Expand All @@ -19,32 +18,23 @@ module.exports = {
// Parsed package.json
package: pkg,

// Path to the sass (sources) directory
sassSrcDir: sourcesRoot + 'sass/',
// Path to the scss entry point
scssEntry: sourcesRoot + 'scss/screen.scss',

// Path to the sass (sources) entry point
sassSrc: sourcesRoot + 'sass/**/*.scss',

// Path to the (transpiled) css directory
cssDir: staticRoot + 'css/',

// Path to the fonts directory
fontsDir: staticRoot + 'fonts/',
// Path to the scss (sources) directory
scssSrcDir: sourcesRoot + 'scss/',

// Path to the js entry point (source)
jsEntry: sourcesRoot + 'js/index.js',

// Path to the js (sources) directory
jsSrcDir: sourcesRoot + 'js/',

// Path to js (sources)
jsSrc: sourcesRoot + 'js/**/*.js',

// Path to the js (sources) directory
jsSrcDir: sourcesRoot + 'js/',

// Path to the (transpiled) js directory
jsDir: staticRoot + 'js/',
jsDir: staticRoot + 'bundles/',

// Path to js spec (test) files
jsSpec: sourcesRoot + 'jstests/**/*.spec.js',
Expand All @@ -54,10 +44,4 @@ module.exports = {

// Path to js code coverage directory
coverageDir: 'reports/jstests/',

// Path to HTML templates directory
htmlTemplatesDir: sourcesRoot + 'templates/views',

// Path to HTML includes directory
htmlIncludesDir: sourcesRoot + 'templates/components/'
};
Loading

0 comments on commit 8ec6477

Please sign in to comment.