Deduplicate shrinkwrap file and add file-saver library
This commit changes shrinkwrap file format to use deduplication feature and to avoid random errors on npm 3.x. file-saver library was added. Spec was adjusted for deduplicated shrinkwrap. Implement blueprint ui-custom-graph Change-Id: Id1a4a56c3f7eb16070b7f574a3417fbafc1792fd
This commit is contained in:
parent
90de7ef447
commit
8072cc6df6
File diff suppressed because it is too large
Load Diff
|
@ -29,6 +29,7 @@
|
|||
"exports-loader": "0.6.2",
|
||||
"expose-loader": "0.7.0",
|
||||
"file-loader": "0.8.4",
|
||||
"file-saver": "1.3.2",
|
||||
"gulp": "3.8.11",
|
||||
"gulp-filter": "2.0.1",
|
||||
"gulp-jison": "1.2.0",
|
||||
|
|
|
@ -22,13 +22,12 @@ Nailgun UI package
|
|||
%prep
|
||||
%setup -cq -n %{name}-%{version}
|
||||
|
||||
cp -pr /usr/lib/node_modules %{_builddir}/%{name}-%{version}/node_modules
|
||||
cp -pr /usr/lib/node_modules/.bin %{_builddir}/node_modules/
|
||||
cp -pr /opt/nodejs-nailgun/lib/node_modules %{_builddir}/%{name}-%{version}/node_modules
|
||||
|
||||
%build
|
||||
cd %{_builddir}/%{name}-%{version} && %{_builddir}/%{name}-%{version}/node_modules/.bin/gulp build --static-dir=compressed_static
|
||||
[ -n %{_builddir} ] && rm -rf %{_builddir}/%{name}-%{version}/static
|
||||
mv %{_builddir}/%{name}-%{version}/compressed_static %{_builddir}/%{name}-%{version}/static
|
||||
./node_modules/.bin/gulp build --static-dir=compressed_static
|
||||
rm -rf static
|
||||
mv compressed_static static
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}/usr/share/nailgun
|
||||
|
@ -40,5 +39,3 @@ rm -rf $RPM_BUILD_ROOT
|
|||
%files
|
||||
%defattr(0755,root,root)
|
||||
/usr/share/nailgun
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue