Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Andrey Shilov
Ngx Bootstrap
Commits
08cc36e6
Unverified
Commit
08cc36e6
authored
4 years ago
by
Dmitriy Danilov
Committed by
GitHub
4 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #5886 from valor-software/dev-1
Add support for building ngx-bootstrap on Windows
parents
da5d82fd
9d588b6c
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+5
-0
README.md
package.json
+4
-1
package.json
scripts/build-modules.js
+7
-0
scripts/build-modules.js
with
16 additions
and
1 deletion
+16
-1
README.md
View file @
08cc36e6
...
...
@@ -152,6 +152,11 @@ First time:
-
`npm install`
-
`npm run build`
If you're using Windows, run:
-
`npm run build.windows`
instead of
`npm run build`
-
You will have to install
[
cwRsync
](
https://en.wikipedia.org/wiki/CwRsync
)
because one of
the scripts requires
`rsync`
To update your fork and prepare it for local usage:
-
`git pull upstream development`
-
`rm -rf node_modules`
...
...
This diff is collapsed.
Click to expand it.
package.json
View file @
08cc36e6
...
...
@@ -24,10 +24,13 @@
"flow.changelog"
:
"conventional-changelog -i CHANGELOG.md -s -p angular"
,
"flow.github-release"
:
"conventional-github-releaser -p angular"
,
"build"
:
"run-s build.modules build:schematics build.sass"
,
"build.windows"
:
"run-s build-modules.windows build:schematics build.sass"
,
"build.latest"
:
"run-s build-modules.latest build:schematics build.sass"
,
"dist-to-modules"
:
"cp -R ./dist/. ./node_modules/ngx-bootstrap"
,
"dist-to-modules"
:
"cp -R ./dist/. ./node_modules/ngx-bootstrap"
,
"dist-to-modules.windows"
:
"mkdir .
\\
node_modules
\\
ngx-bootstrap & xcopy .
\\
dist
\\
. .
\\
node_modules
\\
ngx-bootstrap /s /y"
,
"dist-to-modules.deploy"
:
"rsync -R ./dist/. ./node_modules/ngx-bootstrap"
,
"build.watch"
:
"node scripts/build-modules --watch"
,
"build-modules.windows"
:
"node scripts/build-modules --windows"
,
"build-modules.latest"
:
"node scripts/build-modules --latest"
,
"build:schematics"
:
"node scripts/schematics/build"
,
"build.modules"
:
"node scripts/build-modules"
,
...
...
This diff is collapsed.
Click to expand it.
scripts/build-modules.js
View file @
08cc36e6
...
...
@@ -41,6 +41,7 @@ const cli = meow(`
Options
--watch Rebuild on source change
--latest required for Latest & Next Env
--windows for development with OS Windows
`
,
{
flags
:
{
watch
:
{
...
...
@@ -48,6 +49,9 @@ const cli = meow(`
},
latest
:
{
type
:
'
boolean
'
},
windows
:
{
type
:
'
boolean
'
}
}
});
...
...
@@ -69,8 +73,11 @@ async function buildModules(modules) {
for
(
let
module
of
modules
)
{
console
.
log
(
'
Building
'
,
module
,
'
module
'
);
await
execa
.
shell
(
`rimraf
${
dist
}
/
${
module
}
&& node scripts/ng-packagr/api ../../src/
${
module
}
/package.json`
);
if
(
flags
.
latest
)
{
await
execa
.
shell
(
`npm run dist-to-modules.deploy`
);
}
if
(
flags
.
windows
)
{
await
execa
.
shell
(
`npm run dist-to-modules.windows`
);
}
else
{
await
execa
.
shell
(
`npm run dist-to-modules`
);
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help