Skip to content

Commit

Permalink
ci: 👷 use NX | use LightingCSS | single Node script for entire build
Browse files Browse the repository at this point in the history
  • Loading branch information
daniil4udo committed Oct 8, 2023
1 parent c3828ac commit fb0350f
Show file tree
Hide file tree
Showing 33 changed files with 11,870 additions and 63,984 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@ test/output/
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
.pnp.*
.pnp.*

css
5 changes: 5 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
auto-install-peers=false
shamefully-hoist=true
enable-pre-post-scripts=true


# docker run -itd --rm --name verdaccio -p 4873:4873 verdaccio/verdaccio
# npm adduser --registry http://localhost:4873
registry=http://localhost:4873
41 changes: 16 additions & 25 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,18 @@
{
"version": "0.11.14",
"packages": ["packages/*"],
"npmClient": "pnpm",
"granularPathspec": false,
"command": {
"version": {
"allowBranch": ["master"],
"conventionalCommits": true,
"createRelease": "github",
"message": "release: 🔖 publish %s"
},
"publish": {
"npmClient": "npm"
}
},
"changelog": {
"labels": {
"feature": "New Feature",
"fix": "Bug Fix",
"docs": "Documentation",
"types": "Types",
"perf": "Performance",
"refactoring": "Refactor"
}
}
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"useNx": true,
"version": "0.11.23",
"npmClient": "pnpm",
"command": {
"version": {
"allowBranch": ["master", "new-ci"],
"conventionalCommits": true,
"message": "release: 🔖 publish %s"
},
"publish": {
"npmClient": "pnpm"
}
},
"changelog": true,
"concurrency": 2
}
25 changes: 25 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": ["watch", "compile"]
}
}
},
"targetDefaults": {
"watch": {
"outputs": ["{projectRoot}/css"]
},
"compile": {
"dependsOn": ["clean", "^compile"],
"outputs": ["{projectRoot}/css"]
}
},
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"sharedGlobals": [],
"production": ["default"]
}
}
44 changes: 19 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,55 +30,49 @@
],
"scripts": {
"prepare": "husky install",
"watch": "lerna run --parallel watch",
"version": "pnpm install && pnpm build",
"build": "lerna run build --stream",
"package:publish": "lerna run --parallel package:publish",
"package:release": "lerna version --no-push --no-commit-hooks",
"lint": "concurrently -c auto \"pnpm:lint:all:*\" ",
"prerelease": "lerna run compile",
"release": "lerna publish --no-push --yes",
"watch": "lerna run watch --stream --parallel",
"lint": "concurrently -c auto \"pnpm:lint:all:*\" ",
"lint:all:stylelint": "pnpm lint:stylelint \"packages/**/*.{sss,scss}\" --cache --cache-location .cache/.stylelintcache --rd --color",
"lint:all:variables": "fusv packages/",
"lint:prettier": "prettier --write --loglevel warn",
"lint:stylelint": "stylelint --fix",
"lint:all:variables": "fusv packages/",
"lint:all:stylelint": "pnpm lint:stylelint \"packages/**/*.{sss,scss}\" --cache --cache-location .cache/.stylelintcache --rd --color",
"test": "pnpm -r test",
"cz": "git cz"
},
"devDependencies": {
"@changesets/cli": "^2.26.2",
"@democrance/stylelint-config": "^0.11.1",
"@types/node": "^18.18.0",
"autoprefixer": "^10.4.16",
"@swc-node/register": "^1.6.8",
"@swc/core": "^1.3.90",
"@tsconfig/node18": "^18.2.2",
"@types/node": "^18.18.1",
"@types/rtlcss": "^3.5.2",
"commitizen": "^4.3.0",
"concurrently": "^8.2.1",
"cross-env": "^7.0.3",
"csso-cli": "^4.0.2",
"cz-conventional-changelog": "^3.3.0",
"cz-emoji": "1.3.1",
"find-unused-sass-variables": "^5.0.0",
"husky": "^8.0.3",
"lerna": "7.3.0",
"lerna": "^7.3.0",
"lightningcss": "^1.22.0",
"lightningcss-cli": "^1.22.0",
"lint-staged": "^14.0.1",
"postcss": "^8.4.31",
"postcss-cli": "^10.1.0",
"postcss-csso": "^6.0.1",
"postcss-sass": "^0.5.0",
"postcss-scss": "^4.0.9",
"prettier": "^3.0.3",
"release-it": "^16.2.1",
"rimraf": "^5.0.5",
"rtlcss": "^4.1.1",
"sass": "^1.68.0",
"stylelint": "^15.10.3",
"sugarss": "^4.0.1"
"sugarss": "^4.0.1",
"typescript": "^5.2.2"
},
"publishConfig": {
"access": "public"
},
"pnpm": {
"neverBuiltDependencies": [
"fsevents",
"level",
"node-gyp"
],
"overrides": {
"@npmcli/move-file": "npm:@npmcli/fs@latest"
}
}
}
6 changes: 3 additions & 3 deletions packages/buefy/banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import pkg from './package.json' assert { type: "json" };
const year = new Date().getFullYear()
const homepage = `(${pkg.homepage})` || ''

const bannerTxt = `/*!
export const bannerTxt = `/*!
* ${pkg.name} v${pkg.version} ${homepage}
* Copyright ${year} ${pkg.author.name} ${pkg.author.email}
* Licensed under MIT (https://github.com/daniil4udo/bulvar/blob/master/LICENSE)
*/\n`

process.stdout.write(bannerTxt)
process.stdin.pipe(process.stdout)
// process.stdout.write(bannerTxt)
// process.stdin.pipe(process.stdout)
3 changes: 0 additions & 3 deletions packages/buefy/buefy-rtl.sass

This file was deleted.

3 changes: 3 additions & 0 deletions packages/buefy/buefy-rtl.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@charset "utf-8";

@forward "buefy" with ($rtl: true);
7 changes: 0 additions & 7 deletions packages/buefy/buefy.sass

This file was deleted.

7 changes: 7 additions & 0 deletions packages/buefy/buefy.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@charset "utf-8";

@forward "../bulma/bulma";
@forward "scss/components";
@forward "scss/helpers";

/// @forward "themes/light"
Loading

0 comments on commit fb0350f

Please sign in to comment.