Skip to content

Commit

Permalink
perf(node18): update core features to support node 18+ #66
Browse files Browse the repository at this point in the history
  • Loading branch information
irma-kurnia-phtn authored and blackfalcon committed Apr 21, 2023
1 parent 0acfa5d commit 9f2fd99
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 31 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/testPublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
node-version: [14.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand All @@ -24,12 +24,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build:sass:component
- run: npm run postCss:component
- run: npm run sass:render
- run: npm run distJS
- run: npm run bundler
- run: npm test
- run: npm run build

release:
# Only release on push to master
Expand All @@ -42,13 +37,9 @@ jobs:
persist-credentials: false
- uses: actions/setup-node@v3
with:
node-version: 14
node-version: 18
- run: npm ci
- run: npm run build:sass:component
- run: npm run postCss:component
- run: npm run sass:render
- run: npm run distJS
- run: npm run bundler
- run: npm run build
- uses: cycjimmy/semantic-release-action@v3
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/.husky/pre-commit → .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm test
./node_modules/.bin/npm-run-all linters test
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 7 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"main": "index.js",
"license": "Apache-2.0",
"engines": {
"node": ">=12.22.6"
"node": ">=18.15.0"
},
"dependencies": {
"chalk": "^4.1.2",
Expand Down Expand Up @@ -98,37 +98,28 @@
]
},
"scripts": {
"build": "npm-run-all build:sass sass:render cssLint dist:js bundler postinstall build:api types",
"apiBuild": "wca analyze 'src/**/auro-*.js' --outFiles docs/api.md",
"build": "npm-run-all build:sass sass:render cssLint dist:js bundler postinstall build:api",
"build:dev:assets": "npm-run-all build:sass:component postCss:component sass:render",
"build:api": "wca analyze 'src/auro-badge.js' --outFiles docs/api.md",
"build:watch": "nodemon -e scss,js --watch src --exec npm run build:dev:assets",
"bundler": "rollup -c",
"bundle:test": "rollup -c -w",
"postinstall": "node packageScripts/postinstall.js",
"cssLint": "stylelint './src/*.css'",
"dev": "concurrently --kill-others 'npm run build:watch' 'npm run serve'",
"distJS": "copyfiles -u 1 -V './src/**/*.js' ./dist",
"dist:js": "copyfiles -u 1 -V './src/**/*.js' ./dist",
"sass:render": "sass-render src/*.css -t ./scripts/staticStyles-template.js",
"sweep": "rm -rf ./temp ./demo/css ./demo/fonts ./dist ./src/tokens | rm ./src/*.css ./src/*-css.js",
"esLint": "./node_modules/.bin/eslint src/auro-*.js",
"lint": "npm-run-all cssLint esLint",
"linters": "npm-run-all cssLint esLint",
"test": "wtr --coverage",
"test:watch": "wtr --watch",
"test:ci": "npm-run-all test lint",
"ciBuild": "npm-run-all build:sass sass:render cssLint distJS bundler postinstall apiBuild",
"build:sass": "npm-run-all build:sass:component postCss:component sass:render",
"build:sass:dev": "npm-run-all build:sass:component postCss:component sass:render",
"build:sass:demo": "sass ./demo/sass/ --output ./demo/css/",
"build:sass:component": "sass --no-source-map src:src",
"build:sass:watch": "nodemon -e scss --watch src --exec npm run build:sass:dev",
"postCss:component": "node ./scripts/postCss.js",
"serve": "web-dev-server --open demo/ --node-resolve --watch",
"demo:rmBuild": "rm -rf ./build",
"demo:newBuild": "mkdir ./build && mkdir ./build/css && mkdir ./build/demo",
"demo:copyDemo": "copyfiles -u 1 -V './demo/demo.md' ./build/demo",
"demo:copyAlaska": "copyfiles -u 1 -V './demo/alaska.md' ./build/demo",
"demo:copyIndex": "copyfiles -u 1 -V './demo/index.html' ./build",
"demo:copyAlaskaIndex": "copyfiles -u 1 -V './demo/alaska.html' ./build",
"demo:updateIndex": "node ./scripts/prepForBuild",
"demo:build": "npm-run-all ciBuild demo:rmBuild demo:newBuild demo:copyIndex demo:copyAlaskaIndex demo:copyDemo demo:copyAlaska demo:updateIndex",
"prepare": "husky install",
"types": "tsc"
},
Expand Down

0 comments on commit 9f2fd99

Please sign in to comment.