sails-hook-shipwright 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js
CHANGED
|
@@ -50,6 +50,11 @@ module.exports = function defineShipwrightHook(sails) {
|
|
|
50
50
|
* Runs when this Sails app loads/lifts.
|
|
51
51
|
*/
|
|
52
52
|
initialize: async function () {
|
|
53
|
+
// Skip asset building if --dontLift is set
|
|
54
|
+
if (sails.config.dontLift) {
|
|
55
|
+
sails.log.info('shipwright: Skipping asset build due to dontLift flag')
|
|
56
|
+
return
|
|
57
|
+
}
|
|
53
58
|
const hook = this
|
|
54
59
|
const appPath = sails.config.appPath
|
|
55
60
|
const defaultConfigs = defineConfig({
|
|
@@ -136,7 +141,6 @@ module.exports = function defineShipwrightHook(sails) {
|
|
|
136
141
|
sails.on('lower', async () => {
|
|
137
142
|
await rsbuildDevServer.close()
|
|
138
143
|
})
|
|
139
|
-
sails.after('lifted', () => {})
|
|
140
144
|
}
|
|
141
145
|
sails.config.views.locals = {
|
|
142
146
|
shipwright: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sails-hook-shipwright",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "The modern asset pipeline for Sails",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"hookName": "shipwright"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@rsbuild/core": "^1.
|
|
33
|
+
"@rsbuild/core": "^1.2.15"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@commitlint/cli": "^19.
|
|
37
|
-
"@commitlint/config-conventional": "^19.
|
|
36
|
+
"@commitlint/cli": "^19.7.1",
|
|
37
|
+
"@commitlint/config-conventional": "^19.7.1",
|
|
38
38
|
"husky": "^9.1.7",
|
|
39
|
-
"lint-staged": "^15.
|
|
40
|
-
"prettier": "^3.4.
|
|
39
|
+
"lint-staged": "^15.4.3",
|
|
40
|
+
"prettier": "^3.4.2"
|
|
41
41
|
},
|
|
42
42
|
"lint-staged": {
|
|
43
43
|
"**/*": "prettier --write --ignore-unknown"
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|